search
Homephp教程php手册PHP动态编译出现Cannot find autoconf的解决方法

这篇文章主要介绍了PHP动态编译出现Cannot find autoconf的解决方法,是PHP程序设计中经常会遇到的问题,需要的朋友可以参考下

本文详细讲述了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
# tar -zvxf m4-1.4.9.tar.gz
# cd m4-1.4.9/
# ./configure && make && make install
# cd ../
# wget
# tar -zvxf autoconf-2.62.tar.gz
# cd autoconf-2.62/
# ./configure && make && make install


如果是UBUNTU的话,可以更简单:

复制代码 代码如下:

sudo apt-get install m4
sudo apt-get install autoconf


或者直接:

复制代码 代码如下:

sudo apt-get install autoconf


因为autoconf 依赖于m4,所以会自动下载解决这个依赖关系.

希望本文所述对大家的PHP程序设计有所帮助。

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)