装软件时,到./configure这一步显示以下信息!
sh-3.00# ./configure
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... no
checking whether to enable maintainer-specific portions of Makefiles... no
checking for style of include used by make... none
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
英文意思是缺少编译器还是没设置编译器的环境变量?还是其他原因。若是缺少编译器,推荐一个。
最后一句看配置日志,到哪里看?


shengcheng 于 2009-12-08 17:23:35发表:
yum install gcc
yum install glibc-headers
yum install gcc-c++
linux有时候无法make的解决办法
no acceptable C compiler found in $PATH2009/06/20 09:48执行./configure 然后就出现以下提示 :
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking whether make sets $(MAKE)... yes
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH
执行make后,
提示:No targets specified and no makefile found.Stop.
执行make install后
提示:No rule to make target 'install'.Stop.
经过查阅资料,发现是因为没有安装GCC组件的原因;
我试着通过System settings中的Add/RemoveApplications来添加/删除组件(或添加删除应用程序-》开发工具中第一个组建),选中开发工具中相应的项,点击update,提示插入disk1,我插入光盘,但不起作用,不知是不是因为在虚拟机中的原因...没办法了,手动安装,我放入red hat 工具盘,拷出了gcc*.rpm,然后共享至虚拟机中的linux 中,安装,提示缺少其他一些组件,最后经过来回搜索与拷贝,GCC安装成功,所需文件有:
libf2c-3.3.2-1.i386.rpm
libstdc++-devel-3.3.2-1.i386.rpm
glibc-kernheaders-2.4-8.36.i386.rpm
glibc-headers-2.3.2-101.i386.rpm
glibc-devel-2.3.2-101.i386.rpm
gcc-objc-3.3.2-1.i386.rpm
binutils-2.14.90.0.6-3.i386.rpm
gcc-3.3.2-1.i386.rpm
gcc-c++-3.3.2-1.i386.rpm
automake14-1.4p6-7.noarch.rpm
安装比较简单:
#rpm -ivh rpm文件
OK,可以正常使用./configure 和make命令了.
原因:
没有gcc编译器
一米短绳 于 2009-12-08 14:28:56发表:
您啥都没有……