vim8 在安装 YouCompleteMe 时出现问题,提示没有动态库(for Python )

2018-02-09 11:20:13 +08:00
 LuckyJ0511

报错如下: [root@web YouCompleteMe]# python install.py --clang-completer Searching Python 3.5 libraries... ERROR: found static Python library (/alidata/python3/lib/python3.5/config-3.5m/libpython3.5m.a) but a dynamic one is required. You must use a Python compiled with the --enable-shared flag. If using pyenv, you need to run the command: export PYTHON_CONFIGURE_OPTS="--enable-shared" before installing a Python version.

请教:到底时什么问题? im so crazy... python3 时源码安装的,机子上还有个 python2.7

5306 次点击
所在节点    Python
2 条回复
cstj0505
2018-02-09 13:46:53 +08:00
你问题都没搞清楚,是 vim 没有 python 支持
ai277014717
2018-02-09 15:27:28 +08:00
python 编译的有问题。提示都说了加上--enable-shared 重新编译试试,如果用 pyenv 管理 python 环境加上环境变量 PYTHON_CONFIGURE_OPTS="--enable-shared

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/429679

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX