1

From 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

And got the following error: (full dump: 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")`

General guide for Vim and Vundle: https://realpython.com/blog/python/vim-and-python-a-match-made-in-heaven/

Any ideas?

sudo bangbang
  • 27,127
  • 11
  • 75
  • 77
BluePython
  • 1,635
  • 3
  • 24
  • 35
  • 3
    That's just a warning, not an error. The real error is: `virtual memory exhausted: Cannot allocate memory`... You can try closing as many applications as possible and/or adding more swap space... – Martin Tournoij Mar 31 '16 at 04:55
  • Use that plugin's issue tracker. – romainl Mar 31 '16 at 06:31

1 Answers1

2

You're running out of RAM when trying to install YCM. The easiest way around it would be killing any other RAM-intensive processes. 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. 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.

Marcus Buffett
  • 1,289
  • 1
  • 14
  • 32