当前位置:博客首页>>C/C++ >> 阅读正文

安装YouCompleteMe时报cmake_cxx_compiler no found的解决

作者: 郑晓 分类: C/C++ 发布于: 2016-09-27 11:03 浏览:8,525 评论(1)


在Fedora中给Vim安装YouCompleteMe插件时报错no cmake_cxx_compiler could be found,首先确认安装完了cmake
使用

#yum install cmake

然后执行如下命令设置环境变量CC和CXX


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

之前由于不太了解,把CC和CXX设置成了gcc,解决依旧失败,后来在stackoverflow才找到方法:

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

现在再执行./install.py –clang-completer就正常了~

       

本文采用知识共享署名-非商业性使用 3.0 中国大陆许可协议进行许可,转载时请注明出处及相应链接。

本文永久链接: https://www.zh30.com/youcompleteme-cmake-cxx-compiler-nofound.html

安装YouCompleteMe时报cmake_cxx_compiler no found的解决:目前有1 条留言

用户评论头像 激情的美女发表于 2016年09月29日 16:24[回复]

还不错!!!

发表评论

change vcode