huachu 发表于 2014-9-24 11:10:55

CentOS-7.0-1406-x86_64安装lnmp1.1出错

Error: /usr/local/php not found!!!PHP install failed.
Sorry,Failed to install LNMP!
Please visit https://bbs.vpser.net/forum-25-1.html feedback errors and logs.
You can download /root/lnmp-install.log from your server,and upload lnmp-install.log to LNMP Forum.

boris11201217 发表于 2014-9-24 12:00:01

我也是这个错误

顶一下哟,解决了的话,麻烦通知我一下。谢谢

licess 发表于 2014-9-24 14:30:52

错误信息如下:
/root/lnmp1.1-full/php-5.2.17/ext/dom/node.c:1955:40: error: dereferencing pointer to incomplete type
   RETVAL_STRINGL((char *) buf->buffer->content, ret, 1);
                                        ^
/root/lnmp1.1-full/php-5.2.17/Zend/zend_API.h:472:14: note: in definition of macro 鈥榋VAL_STRINGL鈥?   char *__s=(s); int __l=l;\
            ^
/root/lnmp1.1-full/php-5.2.17/ext/dom/node.c:1955:5: note: in expansion of macro 鈥楻ETVAL_STRINGL鈥?   RETVAL_STRINGL((char *) buf->buffer->content, ret, 1);
   ^
make: *** Error 1

打一下这个补丁试试
cd /root/lnmp1.1-full/php-5.2.17/
wget https://mail.gnome.org/archives/xml/2012-August/txtbgxGXAvz4N.txt
patch -p0 < txtbgxGXAvz4N.txt
./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-pdo-mysql=/usr/local/mysql --with-iconv-dir --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --enable-discard-path --enable-magic-quotes --enable-safe-mode --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --enable-mbregex --enable-fastcgi --enable-fpm --enable-force-cgi-redirect --enable-mbstring --with-mcrypt --enable-ftp --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --without-pear --with-gettext --with-mime-magic
make ZEND_EXTRA_LIBS='-liconv'
试试看
也可以
lnmp1.1用户可以修改安装脚本,查找cd php-5.2.17 在这一行下面添加上
wget -c http://soft.vpser.net/lnmp/ext/php-5.2.17-xml.patch
patch -p0 < php-5.2.17-xml.patch
保存,再次安装也可以。
页: [1]
查看完整版本: CentOS-7.0-1406-x86_64安装lnmp1.1出错