7
7

More than 5 years have passed since last update.

Mac で pecl install pecl_http で失敗する場合

Last updated at Posted at 2012-12-26

新しい iMac で PHP 環境を整えようと、sudo pecl install pecl_http で
拡張モジュールをインストールしようとしたら、

phpizeという処理?でエラー
Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable is set correctly and then rerun this script.

のようなエラーが出てインストールできない。
どうも、昔の Xcode が autoconf というものもインストールしてくれていたようで、
これがないためにエラーが発生した模様。
※新しい Xcode(/Developerにインストールされないヤツ)からの問題

というわけで、autoconf をインストールする。

から最新のものをダウンロード。(2.69をダウンロードした)
解凍したら、そのディレクトリまでターミナルで移動し、

./configure --prefix=/usr

終わったら、

make

終わったら、

sudo make install

最後に、問題となった

sudo pecl install pecl_http

を実行してみる。
特に問題が起きなければエラーが発生せずにインストールが完了する。

7
7
1

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
7