PHP动态编译出现Cannot find autoconf的解决方法,cannotautoconf
本文详细讲述了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
如果是UBUNTU的话,可以更简单:
复制代码 代码如下:
sudo apt-get install m4
sudo apt-get install autoconf
或者直接:
复制代码 代码如下:
sudo apt-get install autoconf
因为autoconf 依赖于m4,所以会自动下载解决这个依赖关系.
希望本文所述对大家的PHP程序设计有所帮助。
试试
yum install php-devel
yum install gcc gcc-c++
makefile文件的编译参数缺这个库
你可以LFLAG= -L -lxxx
cc $LFLAG 就好了
具体给个例子给你看看
IFLAG =-I./include -I/usr/include
LFLAG = -L$(LIB_TARGET) -lutil
$(CC) $(CFLAGS) -o $@ $? $(LFLAG)

Heiße KI -Werkzeuge

Undresser.AI Undress
KI-gestützte App zum Erstellen realistischer Aktfotos

AI Clothes Remover
Online-KI-Tool zum Entfernen von Kleidung aus Fotos.

Undress AI Tool
Ausziehbilder kostenlos

Clothoff.io
KI-Kleiderentferner

AI Hentai Generator
Erstellen Sie kostenlos Ai Hentai.

Heißer Artikel

Heiße Werkzeuge

MinGW – Minimalistisches GNU für Windows
Dieses Projekt wird derzeit auf osdn.net/projects/mingw migriert. Sie können uns dort weiterhin folgen. MinGW: Eine native Windows-Portierung der GNU Compiler Collection (GCC), frei verteilbare Importbibliotheken und Header-Dateien zum Erstellen nativer Windows-Anwendungen, einschließlich Erweiterungen der MSVC-Laufzeit zur Unterstützung der C99-Funktionalität. Die gesamte MinGW-Software kann auf 64-Bit-Windows-Plattformen ausgeführt werden.

Notepad++7.3.1
Einfach zu bedienender und kostenloser Code-Editor

WebStorm-Mac-Version
Nützliche JavaScript-Entwicklungstools

Dreamweaver Mac
Visuelle Webentwicklungstools

SublimeText3 Mac-Version
Codebearbeitungssoftware auf Gottesniveau (SublimeText3)