编译安装vim的问题
vim吧
全部回复
仅看楼主
level 5
./configure --prefix=~/vim --enable-luainterp=yes --enable-perlinterp=yes --enable-pythoninterp=yes --enable-python3interp=yes -enable-rubyinterp=yes --enable-sniff -enable-multibyte --enable-xim --enable-fontset --enable-gui=gtk2 --with-x
make
sudo make install
可是:version一查,没有图形界面,没有python、lua、perl、ruby接口
这是问什么呢?
2013年11月10日 07点11分 1
level 11
用config的时候,看输出信息,界面需要的库没有安装的话,会自动屏蔽gui
2013年11月10日 13点11分 2
level 11
python perl之类要先安装,Linux的话装了config启用会自动认,你仔细看看你config后输出的信息
2013年11月10日 13点11分 3
level 12
需要安装相应的 dev 包,比如要编译 lua 5.2 接口的话需要 liblua5.2-dev,python 的话好像是 python-dev,别的没装过不知道
configure 输出太长不方便看,看 src/auto/config.log 就可以了
2013年11月11日 03点11分 4
level 5
config.log文件里lua和python3的部分
configure:5777: checking --enable-python3interp argument
configure:5786: result: yes
configure:5793: checking for python3
configure:5823: result: /usr/bin/python
configure:5836: checking Python version
configure:5845: result: 2.7
configure:5848: checking Python is 3.0 or better
configure:6071: result: too old
onfigure:4734: checking for lua
configure:4764: result: /usr/bin/lua
configure:4773: checking Lua version
configure:4780: result: 5.2
configure:4796: checking if lua.h can be found in /usr/include
configure:4802: result: no
configure:4804: checking if lua.h can be found in /usr/include/lua5.2
configure:4811: result: no
还有perl的
我能装的库都装上了啊,帮忙看一下还缺啥吧?
2013年11月11日 13点11分 5
level 1
楼主装了python、python3、lua(如5.1)、ruby外,还需要安装对应的
python-dev, python3-dev, liblua5.1-dev, ruby-dev
(如果需要perl,加一个libperl-dev)
详细配置
--enable-python3interp=yes --with-python3-config-dir=/usr/lib/python3.2/config \
--enable-pythoninterp=yes --with-python-config-dir=/usr/lib/python2.7/config \
--enable-perlinterp=yes \
--enable-luainterp=yes --with-lua-prefix=/usr \
--enable-rubyinterp=yes --with-ruby-command=/usr/bin/ruby
------------------------------------------------------
记住最好make distclean
prefix=/usr是指执行文件在对应的/bin里,如果可执行文件在在XXX/bin/里,改为XXX即可
--------------------------------------------------------
如果还有报错看看config对应报错的即可
别人的buildlog:
https://launchpadlibrarian.net/156622261/buildlog_ubuntu-raring-i386.vim_2%3A7.4.092-0~4314~ubuntu13.04.1_UPLOADING.txt.gz
可以看看里面的Build-Depends:
2013年11月23日 07点11分 6
感谢,我是因为以前编过,没有执行make distclean导致的。我一般是执行make [吐舌]clean
2018年03月22日 00点03分
level 6
2013年11月30日 07点11分 7
1