LoginSignup
7
2

More than 5 years have passed since last update.

El CapitanとSierraでphpenv + php-buildのインストールに失敗する場合

Last updated at Posted at 2016-08-22

ライブラリが足りなかったり、openssl仕様が最近変わったりしてるのに対応

$ git clone https://github.com/CHH/phpenv.git
$ ./phpenv/bin/phpenv-install.sh
$ git clone git://github.com/php-build/php-build.git $HOME/.phpenv/plugins/php-build
$ echo 'export PATH="$HOME/.phpenv/bin:$PATH"' >> ~/.bash_profile
$ echo 'eval "$(phpenv init -)"' >> ~/.bash_profile
$ source ~/.bash_profile
$ brew install openssl libxml2 autoconf automake libjpeg libpng libmcrypt
$ PHP_BUILD_CONFIGURE_OPTS="--with-openssl=$(brew --prefix openssl) --with-libxml-dir=$(brew --prefix libxml2)" PHP_BUILD_EXTRA_MAKE_ARGUMENTS=-j4 phpenv install お好きなバージョン
7
2
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
7
2