vimplus icon indicating copy to clipboard operation
vimplus copied to clipboard

Ycm SHUT DOWN 之 ImportError: libtinfo.so.5

Open ghost opened this issue 7 years ago • 8 comments

安装vimplus后显示 The ycmd server SHUT DOWN (restart with ':YcmRestartServer') 详细内容如图所示 image 查看log内容显示 /t/ycmd_58463_stderr_u0d_6yl6.log 3 File "/home/XXX/.vim/plugged/YouCompleteMe/third_party/ycmd/ycmd/server_utils.py", line 96, in CompatibleWithCurrentCore 4 ycm_core = ImportCore() 5 File "/home/XXX/.vim/plugged/YouCompleteMe/third_party/ycmd/ycmd/server_utils.py", line 88, in ImportCore 6 import ycm_core as ycm_core 7 ### ImportError: libtinfo.so.5: cannot open shared object file: No such file or directory

系统 manjaro 17.1 python py3.7 python2 py2.7

ghost avatar Sep 06 '18 06:09 ghost

已解决 原因:libtinfo.so.5 文件名的文件不存在 解决: 查看系统中是否存在libtinfo.so文件 whereis libtinfo.so 找到 lib文件,建立软链接。命令如下 sudo ln -s /usr/lib/libtinfo.so.6 /usr/lib/libtinfo.so.5

ghost avatar Sep 06 '18 06:09 ghost

@好的,感觉使用vimplus,有什么问题都可以咨询!

chxuan avatar Sep 06 '18 11:09 chxuan

@shanghj01

chxuan avatar Sep 06 '18 11:09 chxuan

东西真的好东西有个问题是,在公司如果linux没有网络想安装你这个就麻烦了。能不能分成两个版本一个就是把下载所有的东西下载下来直接安装 每个插件的版本你可以定死。还有一个就是执行你强大的脚步一键安装

[email protected]

发件人: chxuan 发送时间: 2018-09-06 19:57 收件人: chxuan/vimplus 抄送: Subscribed 主题: Re: [chxuan/vimplus] Ycm SHUT DOWN 之 ImportError: libtinfo.so.5 (#74) @好的,感觉使用vimplus,有什么问题都可以咨询! — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

zhangzheng123 avatar Sep 06 '18 12:09 zhangzheng123

@zhangzheng123 你是用的邮件发的消息? 为什么还有这些?

image

chxuan avatar Sep 06 '18 13:09 chxuan

@zhangzheng123 目前还是没有打算弄绿色版,除了插件还有其他软件比如说gcc、cmake、python等都是需要联网安装的。

chxuan avatar Sep 06 '18 13:09 chxuan

同遇到这个问题。参考这里解决了,具体原因没有深究。@yelled1 错误log:

The ycmd server SHUT DOWN (restart with ':YcmRestartServer'). YCM core library not detected

解决方案:

cd ~/.vim/plugged/YouCompleteMe 
./install.py

参考:https://github.com/Valloric/YouCompleteMe/issues/914

thinkycx avatar Nov 02 '18 05:11 thinkycx

为什么我的错误的日志文件里面什么都没有?是个空文件

adrian-yehe avatar May 12 '22 11:05 adrian-yehe