Linux下的PHP安装时出现了没有C++ compiler????、
本帖最后由 harstanber 于 2015-4-21 21:46 编辑一下是安装时出现的问题,怎么安装C++ compiler,是在配置安装时./configure --prefix=/opt/lamp/php --with-apxs2=/opt/lamp/apache/bin/apxs --with-mysql出现的特别请教,谢谢
Configuring libtool
checking build system type... i686-pc-linux-gnu
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking how to recognise dependent libraries... pass_all
checking for object suffix... o
checking for executable suffix... no
checking for c++... no
checking for g++... no
checking for gcc... gcc
checking whether the C++ compiler (gcc ) works... no
configure: error: installation or configuration problem: C++ compiler cannot create executa
JDK环境是否正确?先确认apache、mysql等环境配置正确,最后在安装PHP
应该不会有问题的
另外注意各程序的版本兼容问题 土土的豆豆 发表于 2015-4-22 10:10
JDK环境是否正确?先确认apache、mysql等环境配置正确,最后在安装PHP
应该不会有问题的
另外注意各程序 ...
最后我发现是跟jdk没关系是,缺失了两个与C++相关的RPM 包没安装
libstdc++-devel·················rpm
gcc-c++-.....................rpm
页:
[1]