zhaofus 发表于 2012-06-26 17:14

编译php make: *** [install-sapi] 错误 1

libtool: install: warning: remember to run `libtool --finish /lamp/php-5.3.8/libs'
Warning!dlname not found in /usr/local/apache/modules/libphp5.la.
Assuming installing a .so rather than a libtool archive.
chmod 755 /usr/local/apache/modules/libphp5.so
chmod: 无法访问"/usr/local/apache/modules/libphp5.so": 没有那个文件或目录
apxs:Error: Command failed with rc=65536
.
make: *** 错误 1

貌似 apache里面就没有生成libphp5.so这个模块
apache编译
./configure --prefix=/usr/local/apache --enable-modules=so --enable-rewrite --enable-mods-shared=all --enable-ssl --with-ssl
php编译
./configure -–prefix=/usr/local/php '--with-gettext' '--with-apxs2=/usr/local/apache/bin/apxs' '--with-mysql=/usr/include/mysql/mysql.h' '--enable-safe-mode' '--with-gd' '--enable-ftp' '--disable-debug' '--with-jpeg-dir=/usr/lib' '--with-png-dir=/usr/lib' '--with-zlib-dir=/usr/lib''--with-freetype-dir=/usr/local/include/freetype2' '--enable-calendar' '--with-openssl' '--enable-exif' '--enable-gd-native-ttf' '--enable-mbstring' '--enable-exif' '--with-libxml-dir=/usr/include/libxml2/libxml' '--with-iconv' '--enable-sockets' '--with-mcrypt=/usr/local/libmcrypt’
--with-curl=/usr/include/curl
–with-config-file-path=/usr/local/php

zhaofus 发表于 2012-06-26 17:28

都说是 libtool 这个的版本不一样我复制到php里面还是不好用

maochanglu 发表于 2012-06-27 10:19

find / -iname libphp5.so 找找。

zhaofus 发表于 2012-06-27 10:53

嗯嗯 谢谢 问题解决了,就是libtool的vresion问题 可以看看/php-5/libtool--vresion看看版本区别 使用高版本的
页: [1]
查看完整版本: 编译php make: *** [install-sapi] 错误 1