The solution to Cannot find autoconf in PHP dynamic compilation is cannotautoconf.

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.