简体   繁体   English

YouCompleteMe不可用:dlopen ...(更多描述)

[英]YouCompleteMe unavailable: dlopen… (more in description)

This is the full error when running vim after compiling youCompleteMe for macvim: 在为macvim编译youCompleteMe之后运行vim时出现完整错误:

YouCompleteMe unavailable: dlopen(/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_io.so, 2): Symbol not 
found: __PyCodecInfo_GetIncrementalDecoder
  Referenced from: /usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_io.so
  Expected in: flat namespace

 in /usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_io.so

I'm not finding it anywhere else online so I'm hoping you all could help me. 我没有在网上找到它,所以我希望你们都能帮助我。

I had the same error trying to install YCM on MacVim. 尝试在MacVim上安装YCM时遇到同样的错误。 I'm going to be honest, I'm not quite sure which command fixed it (so much for the scientific method), but it was an error with brew and the permissions on /usr/local/. 我要说实话,我不太确定哪个命令修复了它(对于科学方法来说太多了),但是brew和/ usr / local /上的权限都是错误的。 Try the following commands in Terminal: 在终端中尝试以下命令:

brew prune
sudo chown -R "$USER":admin /usr/local
brew link --overwrite python

I think it's the last two commands that do the trick, fixing the permissions and any errors in Python's links. 我认为这是最后两个执行技巧的命令,修复Python链接中的权限和任何错误。

Had similar problem. 有类似的问题。 Turned out I hadn't link MacVim with vim. 原来我没有将MacVim与vim联系起来。 So after I linked it with ln -s /usr/local/bin/mvim vim , now YCM works! 所以在我将它与ln -s /usr/local/bin/mvim vim ,现在YCM正常工作!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM