詳解CentOS MAKE中出現(xiàn)的問題
在CentOS MAKE的使用中會出現(xiàn)很多的問題,這次,我就碰到了CentOS MAKE中的no acceptable C compiler found in $PATH因為沒有安裝GCC組件問題所導(dǎo)致的一系列失敗。經(jīng)過詢問和查閱資料,我找到了一種簡單的解決方法,給大家在使用CentOS MAKE時做為一個參考來使用。
執(zhí)行./configure 然后就出現(xiàn)以下提示 :
- 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
- 執(zhí)行CentOS MAKE后,
- 提示:No targets specified and no makefile found.Stop.
- 執(zhí)行make install后
- 提示:No rule to make target 'install'.Stop.
經(jīng)過查閱資料,發(fā)現(xiàn)是因為沒有安裝GCC組件的原因;
我試著通過System settings中的Add/RemoveApplications來添加/刪除組件(或添加刪除應(yīng)用程序-》開發(fā)工具中***個 組建),選中開發(fā)工具中相應(yīng)的項,點擊update,提示插入disk1,我插入光盤,但不起作用,不知是不是因為在虛擬機中的原因...沒辦法了,手動安裝,我放入red hat 工具盤,拷出了gcc*.rpm,然后共享至虛擬機中的linux 中,安裝,提示缺少其他一些組件,***經(jīng)過來回搜索與拷貝,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命令了.
【編輯推薦】