0
0

phpenvでphpをインストールする際のコマンドメモ

Posted at

anyenv経由でphpenvを導入後、phpバージョン8.2.9 phpenv install 8.2.9 が導入できず苦労したのでここに残します。

環境

  • Mac M2
  • Sonoma 14
  • shell: bash

実行してその度に足りないパッケージを追加していったところ以下のコマンドになりました。パッケージはすべてbrew経由で導入しています。

コマンド

PHP_BUILD_CONFIGURE_OPTS="--with-zlib-dir=$(brew --prefix zlib)\
--with-bz2=$(brew --prefix bzip2)\
--with-curl=$(brew --prefix curl)\
--with-iconv=$(brew --prefix libiconv)\
--with-libedit=$(brew --prefix libedit)\
--with--ssl=$(brew --prefix openssl@1.1)\
--with-tidy=$(brew --prefix tidy-html5)"\
phpenv install 8.2.9
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0