VPS侦探论坛

 找回密码
 注册
查看: 3435|回复: 5

LNMP1.4 安装多个php出现如下错误

[复制链接]
发表于 2017-8-1 10:04:46 | 显示全部楼层 |阅读模式

全新安装lnmp1.4顺利,php版本是7.1.7
想再增加一个php 5.6.31
利用 ./install.sh mphp 进行安装
就出现如下错误,安装不成功。
./upgrade php 进行安装也一样出现安装失败,php就没有了

本帖子中包含更多资源

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

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


+-------------------------------------------+
|    Manager for LNMP, Written by Licess    |
+-------------------------------------------+
|              https://lnmp.org             |
+-------------------------------------------+
Stoping LNMP...
Stoping nginx...  done
Shutting down MySQL. SUCCESS!
Gracefully shutting down php-fpm  done
Notice: php-5.6.31.tar.bz2 not found!!!download now...
--2017-08-01 09:53:18--  https://soft.vpser.net/web/php/php-5.6.31.tar.bz2
Resolving soft.vpser.net... 45.34.93.228, 2604:a880:1:20::5f9:4001
Connecting to soft.vpser.net|45.34.93.228|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 15028813 (14M) [application/octet-stream]
Saving to: “php-5.6.31.tar.bz2”


0% [                                       ] 0           --.-K/s              
0% [                                       ] 32,514      84.1K/s              
1% [                                       ] 196,354      318K/s              
3% [>                                      ] 474,882      559K/s              
6% [=>                                     ] 966,402      836K/s              
18% [======>                                ] 2,752,258   1.93M/s              
42% [===============>                       ] 6,389,506   3.85M/s              
67% [=========================>             ] 10,125,058  5.33M/s              
92% [===================================>   ] 13,876,994  6.50M/s              
100%[======================================>] 15,028,813  6.88M/s   in 2.1s   

2017-08-01 09:53:21 (6.88 MB/s) - “php-5.6.31.tar.bz2” saved [15028813/15028813]

[+] Installing php-5.6.31
Uncompress php-5.6.31.tar.bz2...
cd php-5.6.31...
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking how to run the C preprocessor... cc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking whether ln -s works... yes
checking for system library directory... lib
checking whether to enable runpaths... no
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking for gawk... gawk
checking for bison... bison -y
checking for bison version... 2.4 (ok)
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking whether to enable computed goto gcc extension with re2c... no
checking whether to force non-PIC code in shared modules... no
checking whether /dev/urandom exists... yes
checking for pthreads_cflags... -pthread
checking for pthreads_lib...

...........


checking how to run the C++ preprocessor... /lib/cpp
configure: error: in `/root/lnmp1.4/src/php-5.6.31':
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target `install'.  Stop.
Copy new php configure file...
Modify php.ini......
Install ZendGuardLoader for PHP 5.6...
Notice:  not found!!!download now...
--2017-08-01 09:53:42--  https://soft.vpser.net/web/zend/zend-loader-php5.6-linux-x86_64.tar.gz
Resolving soft.vpser.net... 45.34.93.228, 2604:a880:1:20::5f9:4001
Connecting to soft.vpser.net|45.34.93.228|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 671359 (656K) [application/octet-stream]
Saving to: “zend-loader-php5.6-linux-x86_64.tar.gz”


0% [                                       ] 0           --.-K/s              
9% [==>                                    ] 65,285      80.8K/s              
12% [===>                                   ] 81,669      70.7K/s              
34% [============>                          ] 229,125      165K/s              
78% [=============================>         ] 524,037      324K/s              
100%[======================================>] 671,359      387K/s   in 1.7s   

2017-08-01 09:53:44 (387 KB/s) - “zend-loader-php5.6-linux-x86_64.tar.gz” saved [671359/671359]

Write ZendGuardLoader to php.ini...
Creating new php-fpm configure file...
Copy php-fpm init.d file...
cp: cannot stat `/root/lnmp1.4/src/php-5.6.31/sapi/fpm/init.d.php-fpm': No such file or directory
chmod: cannot access `/etc/init.d/php-fpm5.6': No such file or directory
Add php-fpm5.6 service at system startup...
error reading information on service php-fpm5.6: No such file or directory
error reading information on service php-fpm5.6: No such file or directory
+-------------------------------------------+
|    Manager for LNMP, Written by Licess    |
+-------------------------------------------+
|              https://lnmp.org             |
+-------------------------------------------+
Starting LNMP...
Starting nginx...  done
Starting MySQL. SUCCESS!
Starting php-fpm  done
Failed to install php-5.6.31, you can download /root/install-mphp5.6.log from your server, and upload install-mphp5.6.log to LNMP Forum.
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2017-8-1 12:07:43 | 显示全部楼层

系统环境信息
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2017-8-1 14:12:32 | 显示全部楼层



原帖由 licess 于 2017-8-1 12:07 发表
系统环境信息

vutrl 512M的

centos 6.9 x64

后来卸载lnmp,重新安装php选择5.6.31  就能安装。

[ 本帖最后由 yehkgu 于 2017-8-1 14:14 编辑 ]
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2017-8-1 21:07:31 | 显示全部楼层

回复 4# 的帖子


可能有gcc-c++依赖包被卸载了,yum install glibc-headers gcc-c++ 看一下

军哥运维代购:http://shop63846532.taobao.com/

 楼主| 发表于 2017-8-2 21:08:39 | 显示全部楼层

原帖由 licess 于 2017-8-1 21:07 发表
可能有gcc-c++依赖包被卸载了,yum install glibc-headers gcc-c++ 看一下

谢谢,解决了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-9-25 15:26 , Processed in 0.027889 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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