Mac miniにAIエージェント向けWordPress開発環境を構築
Mac miniにインストールしたAIエージェント(Claude Code)がローカルでWordPressの開発ができるようにした時の覚書。 環境: Mac mini 2024 メモリ24GB, Tahoe 26.5.1 → Tahoe 26.5.2 1. PHP 8.3とwp-cliのインストール Homebrewで確認してインストール。 % brew update % brew search php % brew search wp-cli % brew install php@8.3 wp-cli 下記エラー ==> Running `brew cleanup php@8.3`... Disable this behaviour by setting `HOMEBREW_NO_INSTALL_CLEANUP=1`. Hide these hints with `HOMEBREW_NO_ENV_HINTS=1` (see `man brew`). Error: Your Command Line Tools are too outdated. Update them from Software Update in System Settings. If that doesn't show you any updates, run: sudo rm -rf /Library/Developer/CommandLineTools sudo xcode-select --install Alternatively, manually download them from: https://developer.apple.com/download/all/. You should download the Command Line Tools for Xcode 26.3. まずは システム設定 → 一般 → ソフトウェアアップデート でmacOSを最新(Tahoe 26.5.2)にした。 再起動後、App Storeで「Xcode」をインストール。 Xcodeを起動して、コンポーネントをインストール。 コンソールで下記実行。 % xcode-select --install xcode-select: note:...