VPS侦探论坛

 找回密码
 注册
查看: 6876|回复: 2

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

[复制链接]
发表于 2014-9-24 11:10:55 | 显示全部楼层 |阅读模式

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.

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2014-9-24 12:00:01 | 显示全部楼层

我也是这个错误



顶一下哟,解决了的话,麻烦通知我一下。谢谢
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 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: *** [ext/dom/node.lo] 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
保存,再次安装也可以。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-11-15 22:36 , Processed in 0.026704 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表