The solution to Cannot find autoconf in PHP dynamic compilation is cannotautoconf.
This article describes the solution to Cannot find autoconf in PHP dynamic compilation. Share it with you for your reference. The specific method is as follows:
After installing PHP, you want to dynamically compile the memcache extension library of PHP.
Copy codeThe Code is as follows: cd memcache-2.2.5/
/Usr/local/webserver/php/bin/phpize
./Configure -- with-php-config =/usr/local/webserver/php/bin/php-config
However, an error occurs when/usr/local/webserver/php/bin/phpize is executed:
Copy codeThe Code is as follows: Processing ing:
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.
I searched the internet and found that there were a lot of people asking this question. I picked it up for a while:
Copy codeThe Code is as follows: # 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 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 install
For UBUNTU, it can be simpler:
Copy codeThe Code is as follows: sudo apt-get install m4
Sudo apt-get install autoconf
Or directly:
Copy codeThe Code is as follows: sudo apt-get install autoconf
Because autoconf depends on m4, it will be automatically downloaded to solve this dependency.
I hope this article will help you with PHP programming.
Phpize compilation, Cannot find autoconf Please check your autoconf installation and the $ PHP_AUTOCONF
Try
Yum install php-devel
Yum install gcc-c ++
Hello, I have read that you have asked cannot find-lxxx when compiling in LINUX. How did you solve this problem?
This library is missing for the compilation parameters of the makefile file.
You can use LFLAG =-L-lxxx
Cc $ LFLAG.
Here is an example.
IFLAG =-I./include-I/usr/include
LFLAG =-L $ (LIB_TARGET)-lutil
$ (CC) $ (CFLAGS)-o $ @ $? $ (LFLAG)