當(dāng)前位置:博客首頁>>C/C++ >> 閱讀正文

安裝YouCompleteMe時報cmake_cxx_compiler no found的解決

作者: 鄭曉 分類: C/C++ 發(fā)布于: 2016-09-27 11:03 瀏覽:8,892 評論(1)


在Fedora中給Vim安裝YouCompleteMe插件時報錯no cmake_cxx_compiler could be found,首先確認(rèn)安裝完了cmake
使用

#yum install cmake

然后執(zhí)行如下命令設(shè)置環(huán)境變量CC和CXX


#export CC=/usr/bin/g++
#export CXX=/usr/bin/g++

之前由于不太了解,把CC和CXX設(shè)置成了gcc,解決依舊失敗,后來在stackoverflow才找到方法:

You try to use C compiler gcc as C++ one, which is wrong.
You need to install g++ or other C++ compiler.

現(xiàn)在再執(zhí)行./install.py –clang-completer就正常了~

? ? ? ?

本文采用知識共享署名-非商業(yè)性使用 3.0 中國大陸許可協(xié)議進(jìn)行許可,轉(zhuǎn)載時請注明出處及相應(yīng)鏈接。

本文永久鏈接: http://www.yjfs.org.cn/youcompleteme-cmake-cxx-compiler-nofound.html

安裝YouCompleteMe時報cmake_cxx_compiler no found的解決:目前有1 條留言

用戶評論頭像 激情的美女發(fā)表于 2016年09月29日 16:24[回復(fù)]

還不錯?。?!

發(fā)表評論

change vcode