解決“configure: line 2747: -g: command not found”

 

下面這個錯誤是因爲沒有安裝g++

 
$ ./configure --prefix=/data1/mooon/run
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
./configure: line 2747: -g: command not found
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether the C++ compiler works... no
configure: error: in `/data1/mooon/src/common_library/src':
configure: error: C++ compiler cannot create executables
See `config.log' for more details

 
執行“$ sudo apt-get install g++”成功安裝後,問題即可解決

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章