V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
tracyone
V2EX  ›  Vim

静态编译 vim 带 Python 支持

  •  
  •   tracyone · 2017-06-16 22:31:11 +08:00 · 1840 次点击
    这是一个创建于 2504 天前的主题,其中的信息可能已经有所发展或是发生改变。

    求助。

    下面的 configure 不行:

    export LDFLAGS='-static'
     ./configure \
         --prefix="${HOME}/Work/Source/vim_src/vim_linux_package" \
         --with-features=huge \
         --with-compiledby="$(whoami)" \
         --enable-multibyte \
         --enable-pythoninterp \
         --enable-gpm \
         --enable-cscope \
         --enable-fontset \
         --disable-shared \
         --enable-fail-if-missing
    
    4 条回复    2017-07-21 13:17:18 +08:00
    SpaceVim
        1
    SpaceVim  
       2017-06-16 23:05:05 +08:00
    这个是我在 ubuntu 系统下编译 vim 的脚本
    ```
    #!/bin/sh

    ./configure \
    --with-features=huge \
    --with-compiledby="wsdjeg" \
    --enable-multibyte \
    --enable-gui=gtk2 \
    --enable-gpm \
    --prefix=/usr \
    --enable-cscope \
    --enable-fontset \
    --enable-sniff \
    --enable-xim \
    --enable-fail-if-missing \
    --enable-mzschemeinterp \
    --enable-perlinterp \
    --enable-luainterp \
    --enable-tclinterp\
    --enable-rubyinterp \
    --enable-pythoninterp \
    --with-python-config-dir=/usr/lib/python2.7/config-x86_64-linux-gnu \
    --enable-python3interp \
    --with-python3-config-dir=/usr/lib/python3.4/config-3.4m-x86_64-linux-gnu

    ```
    tracyone
        2
    tracyone  
    OP
       2017-06-17 08:12:31 +08:00 via iPhone
    @SpaceVim 你没看懂题目啊,关键是静态
    ryanzyy
        3
    ryanzyy  
       2017-07-21 13:16:24 +08:00
    ./configure \
    --prefix="${HOME}/Work/Source/vim_src/vim_linux_package" \
    --with-features=huge \
    --with-compiledby="$(whoami)" \
    --enable-multibyte \
    --enable-pythoninterp=yes \
    --with-python-config-dir=/usr/lib/python2.7/config-x86_64-linux-gnu \
    --enable-gpm \
    --enable-cscope \
    --enable-fontset \
    --enable-fail-if-missing
    ryanzyy
        4
    ryanzyy  
       2017-07-21 13:17:18 +08:00
    python3 的 static link 似乎有问题
    python2 没问题
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3223 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 14:22 · PVG 22:22 · LAX 07:22 · JFK 10:22
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.