静态编译 vim 带 Python 支持

2017-06-16 22:31:11 +08:00
 tracyone

求助。

下面的 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
1852 次点击
所在节点    Vim
4 条回复
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
2017-06-17 08:12:31 +08:00
@SpaceVim 你没看懂题目啊,关键是静态
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
2017-07-21 13:17:18 +08:00
python3 的 static link 似乎有问题
python2 没问题

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

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

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

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

© 2021 V2EX