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


Ubuntu14.04 自動升級到16.04的時候,vim突然沒了Python-support,

運行

vim --version |grep python

出現如下結果

+cryptv +linebreak -python +viminfo

-cscope +lispindent -python3 +vreplace

說明vim沒有python支持。於是clone了vim源碼,使用

 

./configure --enable-multibyte --enable-pythoninterp=yes

配置后重新安裝編譯

 中途出現了一個小插曲,發現

no terminal library found
checking for tgetent()… configure: error: NOT FOUND!
      You need to install a terminal library; for example ncurses.

發現其實是ncurses包沒有,在ubuntu下面只需要安裝即可

sudo apt-get install libncurses5-dev

 

reference:

 

http://stackoverflow.com/questions/20160902/how-to-solve-requires-python-2-x-support-in-linux-vim-and-it-have-python-2-6-6


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM