PHP Dynamic compilation appears cannot find autoconf workaround, cannotautoconf_php tutorial

Source: Internet
Author: User

PHP Dynamic compilation appears cannot find autoconf workaround, cannotautoconf


This article describes in detail the solution to the cannot find autoconf in PHP dynamic compilation. Share to everyone for your reference. Here's how:

After installing PHP, you want to dynamically compile PHP's memcache extension library

Copy the Code Code 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 occurred while executing/usr/local/webserver/php/bin/phpize:

Copy the Code Code as follows: 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 are set correctly and then rerun this SC Ript.

On the internet search a pass, found this problem mention of people quite a lot, picked a paragraph down:
Copy the Code code 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 && 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
If it's Ubuntu, it can be simpler:
Copy the Code code as follows: sudo apt-get install M4
sudo apt-get install autoconf
or directly:
Copy the Code code as follows: sudo apt-get install autoconf
Because Autoconf relies on M4, it is automatically downloaded to resolve this dependency.

I hope this article is helpful to everyone's PHP programming.


Phpize compile, cannot find autoconf Please check your autoconf installation and the $PHP _autoconf

Give it a try
Yum Install Php-devel

Yum Install gcc gcc-c++

Hello, I look at you asked in Linux under the compilation of cannot find-lxxx, ask you how to solve?

The compiler parameter for the makefile file is missing this library
You can lflag=-l-lxxx.
CC $LFLAG just fine.
Let me give you a concrete example.

Iflag =-i./include-i/usr/include
Lflag =-l$ (lib_target)-lutil
$ (CC) $ (CFLAGS)-O $@ $? $ (Lflag)

http://www.bkjia.com/PHPjc/906668.html www.bkjia.com true http://www.bkjia.com/PHPjc/906668.html techarticle PHP Dynamic compilation appears cannot find autoconf solution, cannotautoconf This article details the PHP dynamic compilation appears cannot find autoconf solution. Share to everyone for your reference ...

  • 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.