V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
LuckyJ0511
V2EX  ›  Python

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

  •  
  •   LuckyJ0511 · 2018-02-09 11:20:13 +08:00 · 5275 次点击
    这是一个创建于 2267 天前的主题,其中的信息可能已经有所发展或是发生改变。

    报错如下: [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

    cstj0505
        1
    cstj0505  
       2018-02-09 13:46:53 +08:00
    你问题都没搞清楚,是 vim 没有 python 支持
    ai277014717
        2
    ai277014717  
       2018-02-09 15:27:28 +08:00
    python 编译的有问题。提示都说了加上--enable-shared 重新编译试试,如果用 pyenv 管理 python 环境加上环境变量 PYTHON_CONFIGURE_OPTS="--enable-shared
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3236 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 13:41 · PVG 21:41 · LAX 06:41 · JFK 09:41
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.