LoginSignup
0

More than 5 years have passed since last update.

phpbrew install で Please reinstall the BZip2 distributionと出た時の対処法

Last updated at Posted at 2018-02-10

phpの環境構築をしていた時に

phpbrew install 5.6.23 +default +mysql  +openssl=$(brew --prefix openssl)

=> configure: error: Please reinstall the BZip2 distribution

のようなエラーが出たので、解決策を書いておきます。

解決策

xcode-select --install

これだけで解決します。

解説

上記のエラーはbzip2というものが、ないぞ!ってエラーなので、入れてあげつ必要があります。

bzip2とは何かの解説wiki

bzip2はもともとmacのOSに入っているものなので、

xcode-select --install

でインストールすることができます。
ちなみにこのコマンドはXcodeのコマンドラインツールをインストールするためのコマンドらしい

参考サイト

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