萬盛學電腦網

 萬盛學電腦網 >> 網絡編程 >> php編程 >> PHP動態編譯出現Cannot find autoconf

PHP動態編譯出現Cannot find autoconf

   在安裝完PHP後,想動態編譯PHP的memcache擴展庫

  cd memcache-2.2.5/

  /usr/local/webserver/php/bin/phpize

  ./configure --with-php-config=/usr/local/webserver/php/bin/php-config

  但是執行/usr/local/webserver/php/bin/phpize時出現錯誤:

 Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20060613
Zend Extension Api No:   220060519
Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF  environment variable is set correctly and then rerun this script.

  在網上搜索一通,發現這個問題提的人還挺多,摘了一段下來:

  # wget http://ftp.gnu.org/gnu/m4/m4-1.4.9.tar.gz

  # tar -zvxf m4-1.4.9.tar.gz

  # cd m4-1.4.9/

  # ./configure && make && make install

  # cd ../

  # wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.62.tar.gz

  # tar -zvxf autoconf-2.62.tar.gz

  # cd autoconf-2.62/

  # ./configure && make && make install

copyright © 萬盛學電腦網 all rights reserved