安装youcompleteme 问题

在一台电脑上安装youcompleteme时,之前输入的变量都可以自动补全,但是结构体死活不出来,在Vim里面用

:YcmDebugInfo

查看,结果为:

Printing YouCompleteMe debug information...
-- Server has Clang support compiled in: False
-- Server running at: http://localhost:53299
-- Server process ID: 16226
-- Server logfiles:
--   /tmp/ycm_temp/server_53299_stdout.log
--   /tmp/ycm_temp/server_53299_stderr.log

使用YcmRestartServer 等了好久还是显示restarting,猜测是clang的问题,在.vim/bundle/YouCompleteMe中也生成了libclang.so 可不知道为什么不能正常运行。 于是采用系统clang库试试。

找到一篇帖子 https://github.com/Valloric/YouCompleteMe/issues/11

先确定系统中有libclang.so -> locate libclang.so ,然后./install.sh --clang-completer --system-libclang


The ycmd server SHUT DOWN (restart with :YcmRestartServer). Stderr (last 30 lines):

重启:

HTTPConnectionPool(host='localhost', p...error'>: [Errno 111] Connection refused


安装特定版本clang:

sudo add-apt-repository ppa:georgekola/clang  
sudo apt-get update  
sudo apt-get install clang-3.2 clang-3.2-doc

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-4.7 g++-4.7





你可能感兴趣的:(安装youcompleteme 问题)