[英]Error compiling YouCompleteMe for vim
From https://github.com/Valloric/YouCompleteMe#ubuntu-linux-x64 从https://github.com/Valloric/YouCompleteMe#ubuntu-linux-x64
I ran 我跑了
./install.py --clang-completer --omnisharp-completer --gocode-completer
I'm using Ubuntu Trusty 14 LTSS 我正在使用Ubuntu Trusty 14 LTSS
And got the following error: (full dump: http://sprunge.us/COVL ) 并得到以下错误:(完整转储: http : //sprunge.us/COVL )
/root/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/type_traits/detail/ice_eq.hpp:17:71: note: #pragma message: NOTE: Use of this header (ice_eq.hpp) is deprecated # pragma message("NOTE: Use of this header (ice_eq.hpp) is deprecated")`
/root/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/type_traits/detail/ice_eq.hpp:17:71:注意:#pragma消息:注意:此标头(ice_eq.hpp)的使用是不建议使用的#pragma消息(“注意:不建议使用此标头(ice_eq.hpp)”)
General guide for Vim and Vundle: https://realpython.com/blog/python/vim-and-python-a-match-made-in-heaven/ Vim和Vundle的一般指南: https ://realpython.com/blog/python/vim-and-python-a-match-made-in-heaven/
Any ideas? 有任何想法吗?
You're running out of RAM when trying to install YCM. 尝试安装YCM时,RAM用完了。 The easiest way around it would be killing any other RAM-intensive processes.
解决该问题的最简单方法是杀死所有其他占用大量RAM的进程。 If that doesn't work, you'll need to add swap space.
如果这不起作用,则需要添加交换空间。 Here's a good guide for adding swap space on Ubuntu, although the steps for other linux distributions are very similar.
这是在Ubuntu上添加交换空间的一个很好的指南 ,尽管其他Linux发行版的步骤非常相似。 In short:
简而言之:
sudo fallocate -l 4G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
You can verify it worked by running free -m
. 您可以通过运行
free -m
来验证它是否有效。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.