安哥网络 发表于 2013-9-15 00:37:40

详解CentOS MAKE中出现的问题

在CentOS MAKE的使用中会出现很多的问题,这次,我就碰到了CentOS MAKE中的no acceptable C compiler found in $PATH因为没有安装GCC组件问题所导致的一系列失败。经过询问和查阅资料,我找到了一种简单的解决方法,给大家在使用CentOS MAKE时做为一个参考来使用。
执行./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
执行CentOS 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 和CentOS MAKE命令了.
form:http://os.51cto.com/art/201003/191034.htm



页: [1]
查看完整版本: 详解CentOS MAKE中出现的问题