php安装出错
系统 center os 5.6 32位, 使用./cen... 安装方式发现php没有安装, php -v无版本提示,手动安装php,./configure没问题, 但是make, make all均提示出错.错误代码如下:
# make all
/bin/sh /root/soft/lnmp0.6-full/php-5.2.14/libtool --silent --preserve-dup-deps --mode=compile cc -I/root/soft/lnmp0.6-full/php-5.2.14/ext/pdo_sqlite/sqlite/src -DPDO_SQLITE_BUNDLED=1 -DSQLITE_OMIT_CURSOR -DTHREADSAFE=0 -I/root/soft/lnmp0.6-full/php-5.2.14/ext -Iext/pdo_sqlite/ -I/root/soft/lnmp0.6-full/php-5.2.14/ext/pdo_sqlite/ -DPHP_ATOM_INC -I/root/soft/lnmp0.6-full/php-5.2.14/include -I/root/soft/lnmp0.6-full/php-5.2.14/main -I/root/soft/lnmp0.6-full/php-5.2.14 -I/root/soft/lnmp0.6-full/php-5.2.14/ext/date/lib -I/usr/include/libxml2 -I/root/soft/lnmp0.6-full/php-5.2.14/TSRM -I/root/soft/lnmp0.6-full/php-5.2.14/Zend -I/usr/local/include -g -O2-c /root/soft/lnmp0.6-full/php-5.2.14/ext/pdo_sqlite/sqlite/src/parse.c -o ext/pdo_sqlite/sqlite/src/parse.lo
/bin/sh /root/soft/lnmp0.6-full/php-5.2.14/libtool --silent --preserve-dup-deps --mode=compile cc-Iext/standard/ -I/root/soft/lnmp0.6-full/php-5.2.14/ext/standard/ -DPHP_ATOM_INC -I/root/soft/lnmp0.6-full/php-5.2.14/include -I/root/soft/lnmp0.6-full/php-5.2.14/main -I/root/soft/lnmp0.6-full/php-5.2.14 -I/root/soft/lnmp0.6-full/php-5.2.14/ext/date/lib -I/usr/include/libxml2 -I/root/soft/lnmp0.6-full/php-5.2.14/TSRM -I/root/soft/lnmp0.6-full/php-5.2.14/Zend -I/usr/local/include -g -O2-c /root/soft/lnmp0.6-full/php-5.2.14/ext/standard/info.c -o ext/standard/info.lo
/root/soft/lnmp0.6-full/php-5.2.14/ext/standard/info.c: In function ?.hp_print_info?.
/root/soft/lnmp0.6-full/php-5.2.14/ext/standard/info.c:660: error: expected ?.?.before ?.UHOSIN_LOGO_GUID?
/root/soft/lnmp0.6-full/php-5.2.14/ext/standard/info.c:664: error: ?.UHOSIN_PATCH_VERSION?.undeclared (first use in this function)
/root/soft/lnmp0.6-full/php-5.2.14/ext/standard/info.c:664: error: (Each undeclared identifier is reported only once
/root/soft/lnmp0.6-full/php-5.2.14/ext/standard/info.c:664: error: for each function it appears in.)
make: *** Error 1
求解决方案.
回复 1# 的帖子
看提示应该是Suhosin有问题,可以把前面几步中的Suhosin打补丁的命令去掉再重新从php解压操作一般。操作前先删除php的解压目录。 请问Suhosin打补丁的命令具体是哪几项呢.回复 3# 的帖子
gzip -d ./suhosin-patch-5.2.14-0.9.7.patch.gzpatch -p 1 -i ../suhosin-patch-5.2.14-0.9.7.patch 上面的错误中并没有这些命令, 请问是在centos.sh中去掉吗?
回复 5# 的帖子
手动安装时去掉就行 我在操作./buildconf --force的时候提示# ./buildconf --forceForcing buildconf
buildconf: checking installation...
buildconf: autoconf version 2.59 (ok)
buildconf: Your version of autoconf likely contains buggy cache code.
Running vcsclean for you.
To avoid this, install autoconf-2.13.
Can't figure out your VCS, not cleaning.
rebuilding aclocal.m4
rebuilding configure
aclocal.m4:2150: PHP_PROG_LEX is expanded from...
rebuilding main/php_config.h.in
autoheader: WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot'
autoheader: WARNING: and `config.h.top', to define templates for `config.h.in'
autoheader: WARNING: is deprecated and discouraged.
autoheader:
autoheader: WARNING: Using the third argument of `AC_DEFINE' and
autoheader: WARNING: `AC_DEFINE_UNQUOTED' allows to define a template without
autoheader: WARNING: `acconfig.h':
autoheader:
autoheader: WARNING: AC_DEFINE(, 1,
autoheader: )
autoheader:
autoheader: WARNING: More sophisticated templates can also be produced, see the
autoheader: WARNING: documentation.
aclocal.m4:2150: PHP_PROG_LEX is expanded from...
意思是不是需要更换autoconf 的版本?
回复 7# 的帖子
嗯wget -c http://ftp.gnu.org/gnu/autoconf/autoconf-2.13.tar.gz
tar zxvf autoconf-2.13.tar.gz
cd autoconf-2.13/
./configure --prefix=/usr/local/autoconf-2.13
make && make install
cd ../
export PHP_AUTOCONF=/usr/local/autoconf-2.13/bin/autoconf
export PHP_AUTOHEADER=/usr/local/autoconf-2.13/bin/autoheader
回复 8# 的帖子
该问题完美解决, 谢谢军哥的帮助.
页:
[1]