alin
alin

Reputation: 45

Vim YouCompleteMe unavailable

I installed YCM but it says:

YouCompleteMe unavailable: requires Vim compiled with Python (2.6+ or 3.3+) support.

So I went to Google for help, and the result is that I have to

./configure --enable-pythoninterp=yes

But where is the ./configure script? I don't have it in my usr/share/vim/vim80 Please help

Upvotes: 0

Views: 10834

Answers (4)

saviour123
saviour123

Reputation: 1193

This is due to missing compiled youcompleteme

For mac- Install cmake

   brew install cmake
   cd ~/.vim/bundle/youcompleteme && ./install.sh 

This got mine fixed. This assumed you have clone/ or using vundle for vim plugins

Upvotes: 0

AmerllicA
AmerllicA

Reputation: 32747

By the evidence, you showed on the question post, I guess you used vim-plug, For having YouCompleteMe on vim-plug you should open the .vimrc file and then add below command inside it:

Plug 'ycm-core/YouCompleteMe', { 'do': './install.py --tern-completer' }

The second part { 'do': './install.py --tern-completer' } means after installing, some part of YouCompleteMe should be built with ./install.py --tern-completer command. If you just add the Plug 'https://github.com/ycm-core/YouCompleteMe' command in the .vimrc the file then you should make it manually:

cd ~/.vim/plugged/YouCompleteMe && ./install.py --tern-completer

Upvotes: 1

therealak12
therealak12

Reputation: 1326

The configure script is in the vim folder you clone from git. As the Ingo Karkat says you can follow the instructions provided there, just remember that you should omit the --with-python-config-dir= parameter because it's deprecated.

Upvotes: 0

thalesmello
thalesmello

Reputation: 3439

YouCompleteMe requires manual installation.

Take a look at the instructions

Upvotes: 3

Related Questions