configure編譯時,出現 configure: error: C compiler cannot create executables錯誤解決
我們在編譯軟體的時候,是不是經常遇到下面的錯誤資訊呢?
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details.
有很多人建議重灌GCC,但是確無濟於事。
這個錯誤產生的原因其實很簡單: 由於我們在編譯軟體之前,進行了export操作,改變了CFLAGS和LIBS的值。
這個時候只要講這個值清空就可以了。
在linux的命令列中,輸入下面的兩行,清空CFLAGS和LIBS的值:
export LIBS=
export CFLAGS=
然後,就再執行./configue 等時,就可以正常通過了。
相關推薦
configure編譯時,出現 configure: error: C compiler cannot create executables錯誤解決
我們在編譯軟體的時候,是不是經常遇到下面的錯誤資訊呢? checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking f
安裝pcre時出現configure: error: C compiler cannot create executables錯誤
1、./configure時出現以下錯誤:C compiler cannot create executables[[email protected] pcre-8.39]# ./configure checking for a BSD-compatible in
[PandoraBox SDK]交叉編譯libpcap提示configure: error: C compiler cannot create executables錯誤
環境:ArchLinux 原始碼:libpcap 下面開始編譯libpcap,先將toolchain和staging_dir加入環境變數中 [form@Felicity libpcap]$ export PATH=$PATH:/hom
protobuf編譯中遇到的c compiler cannot create executables錯誤解決方法
最近下載了最新的linux mint 16和ubuntu 12中分別嘗試編譯protobuf 2.5.0.但都是報c compiler cannot create executables的錯. 查過網上解決方案, 清一色都是export LIBS=之類的, 無法解決問題. 最終一個回帖啟發了我, 使用
解決configure: error: C++ compiler cannot create executables問題
./configure時報錯:configure: error: C++ compiler cannot create executables 。哎,今天重灌測試伺服器上的系統,設定好IP可以遠端訪問時就回來安裝軟體,在搭建PHP+Nginx環境時倒出現了問題。 問題出現在
編譯出現C compiler cannot create executables
Ubuntu14.04使用clang編譯Tengine時出現錯誤: make ... ... checking for gcc... clang checking whether the C compiler works... no configure: error: in
C compiler cannot create executables問題
今天在裝advancemame遊戲時遇到下面的問題,在網上搜索才知道是gcc沒有裝好,回想以前也有一些程式沒有裝好,是不是也是這個問題呢?於是試了一下以前一直沒有裝好的d4x,雖然現在熟悉了wget.雖然沒有裝上,不過情況有所好轉,跟以前報的錯誤不同了,應該是能
C compiler cannot create executables checking whether the C compiler works... no
checking for grep that handles long lines and -e… /bin/grep checking for egrep… /bin/grep -E checking for a sed that does not tru
Linux下基於opencv程式編譯時,出現undefined reference to `cv::SIFT::SIFT(int, int, double, double, double)
出現undefined reference to `cv::SIFT::SIFT(int, int,double, double, double)問題,和找不到類似的特徵描述子,還有和nonfree相關的函式,都是少裝了一個庫, 安裝如下: sudo add-apt-re
搭建go開發環境時,出現GoSublime error: MarGo build failed的問題
在安裝問go語言開發工具,Sublime Text Build 3083之後,再安裝gocode和margo時,在安裝margo那一步卡住了,出現了以下問題: GoSublime error: MarGo build failed | &g
編譯核心,出現gcc: error: elf_i386: No such file or directory
CC arch/x86/mm/mmio-mod.o LD arch/x86/mm/mmiotrace.o LD arch/x86/mm/built-in.o CC arch/x86/crypto/crc32c-inte
SpringMvc+ajax跨域請求時,出現options型別的請求並返回403的解決方案
在使用 [javascript] view plain copy $.ajax({ url:'http://127.0.0.1:8081/rest/ccxxx/xxxx', type:'POST',
由SDK "iphoneos" cannot be located引起的C compiler cannot create executablesou問題
命令列錯誤資訊,如下圖 出現在Xcode 專案build的過程中,錯誤提示Xcode路徑定位錯誤,那就通過命令列重新指定Xcode路徑,網上有人說是安裝過多個Xcode版本的緣故 sudo xcode-select --switch /Applications
由SDK "iphoneos" cannot be located引起的C compiler cannot create executablesou問題
命令列錯誤資訊,如下圖 出現在Xcode 專案build的過程中,錯誤提示Xcode路徑定位錯誤,那就通過命令列重新指定Xcode路徑,網上有人說是安裝過多個Xcode版本的緣故 sudo xco
編譯依賴於React Native0.46.4的React Native IOS工程時,出現錯誤“fatal error: 'React/RCTEventEmitter.h' file not found”
問題 clear solution str ack fat navi parallel avi 我的環境: WebStorm 2017.2Build #WS-172.3317.70, built on July 14, 2017 JRE: 1.8.0_152-release
unbuntu16.04安裝apache時,出現:configure failed for srclib/apr錯誤
查看了一下原來是錯誤開始於srclib/apr檔案,檢查gcc編譯器時提示沒發現並且在系統環境變數$PATH中沒有合適的c編譯器,以是使用yum -y install gcc來安裝gcc編譯器/或者用rpm包安裝,就可繼續安裝了.sudo apt install gcc
mysql導入大批量數據時,出現ERROR : (2006, 'MySQL server has gone away')
ng-click article con global art span allow oba 導入數據 mysql導入數據時,出現ERROR : (2006, ‘MySQL server has gone away‘) 解決方案:官方解釋是適當增大 max_al
在Linux上git pull線上倉庫代碼時,出現error: Your local changes to the following files would be overwritten by merge
chan 導致 系統權限 over local tar erro 關閉 oca 在Windows上工作時未出現過該問題,於是通過命令: git diff 查看差異,得到結果: diff --git a/start_crons.sh b/start_crons.sh o
configure: error: no acceptable C compiler found in $PATH 問題解決
gcc con acc compile div install all compiler ble 今天在百度雲的系統上安裝python3 編譯的時候提示 configure: error: no acceptable C compiler found in $PATH 問
C++:對結構體中字元陣列賦值時,出現表示式必須是可修改的左值的問題
問題描述: 在C++中為結構體中的字元陣列賦值時,出現”表示式必須是可修改的左值“的錯誤提醒,編譯報錯“不可指定資料型別”。 &n