亚洲国产第一_开心网五月色综合亚洲_日本一级特黄特色大片免费观看_久久久久久久久久免观看

Hello! 歡迎來(lái)到小浪云!


香港云服務(wù)器Cannot find a C compiler, aborting



香港云服務(wù)器在Red Hat系統(tǒng)安裝軟件的時(shí)候,突然提示“Cannot find a C compiler, aborting”。這是因?yàn)槿鄙賕cc編譯器導(dǎo)致的。

gcc編譯器是將源代碼處理為機(jī)器可認(rèn)識(shí)的二進(jìn)制文件的重要程序。換言之,如果沒(méi)有g(shù)cc編譯器,就不能通過(guò)源代碼方式來(lái)安裝程序。一般的系統(tǒng)默認(rèn)都會(huì)安裝之,但也有少量系統(tǒng)未安裝。

[root@localhost]# ./configure –prefix=/usr/local/axel

Cannot find a C compiler, aborting.

[root@localhost]# gcc –version //查看gcc版本

bash: gcc: command not found

我們可以自己下載gcc軟件包安裝,但因?yàn)間cc有大量的依賴包,因此推薦使用yum方式來(lái)安裝。

1,如果系統(tǒng)能連網(wǎng),直接執(zhí)行”yum install gcc*”安裝gcc即可

2,如果系統(tǒng)不能連網(wǎng),Red Hat安裝光盤(pán)里自帶了gcc軟件包及其相關(guān)依賴包,我們只要將本地光盤(pán)設(shè)置為yum更新源,然后再執(zhí)行”yum install gcc*”即可。

安裝完成以后的檢測(cè):

[root@localhost]# gcc –version //查看c編譯器的版本

gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-48)

Copyright (C) 2006 Free SoftwarFoundation, Inc.

This is free software; see the source for copying conditions. There is NO

warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[root@localhost]# g++ –version //查看c++編譯器的版本

g++ (GCC) 4.1.2 20080704 (Red Hat 4.1.2-48)

Copyright (C) 2006 Free Software Foundation, Inc.

This is free software; see the source for copying conditions. There is NO

warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

相關(guān)閱讀