gcc已安装,编译其他软件时提示c编译器无法创建可执行文件 操作系统是:redhat 5以上版本,具体忘了
系统内核是:Linux localhost.localdomain 2.6.32-358.el6.x86_64 #1 SMP Tue Jan 29 11:47:41 EST 2013 x86_64 x86_64 x86_64 GNU/Linux
安装nginx时,提示
[root@localhost nginx-1.4.1]# ./configure
checking for OS
+ Linux 2.6.32-358.el6.x86_64 x86_64
checking for C compiler ... not found
./configure: error: C compiler cc is not found
安装其他需要编译的程序时(譬如apache)提示c编译器无法使用
具体如下:
[root@localhost httpd-2.2.22]# ./configure
checking for chosen layout... Apache
checking for working mkdir -p... yes
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
Configuring Apache Portable Runtime library ...
checking for APR... reconfig
configuring package in srclib/apr now
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
Configuring APR library
Platform: x86_64-unknown-linux-gnu
checking for working mkdir -p... yes
APR Version: 1.4.5
checking for chosen layout... apr
checking for gcc... gcc
checking for C compiler default output file name...
configure: error: in `/usr/local/bjta/httpd-2.2.22/srclib/apr': configure: error: C compiler cannot create executables
See `config.log' for more details.
configure failed for srclib/apr
请问如何设置使gcc可用 ------解决方案-------------------- 他说你编译器CC没找到./configure: error: C compiler cc is not found
你./configure --help下,把CC设置设置成gcc ------解决方案--------------------