码迷,mamicode.com
首页 > 编程语言 > 详细

ubuntu下编译vim(for python)

时间:2016-07-03 23:00:06      阅读:208      评论:0      收藏:0      [点我收藏+]

标签:

1,安装必要的lib,git等软件

  sudo apt-get install libncurses5-dev libgnome2-dev libgnomeui-dev \ libgtk2.0-dev libatk1.0-dev libbonoboui2-dev \ libcairo2-dev libx11-dev libxpm-dev libxt-dev python-dev \ ruby-dev git

2,卸载原版本vim

  sudo apt-get remove vim vim-runtime gvim

3,gitbub上下载vim源码,进行编译

  cd ~ git clone https://github.com/vim/vim.git cd vim ./configure --with-features=huge \ --enable-multibyte \ --enable-rubyinterp \ --enable-pythoninterp \ --with-python-config-dir=/usr/lib/python2.7/config \ --enable-perlinterp \ --enable-luainterp \ --enable-gui=gtk2 --enable-cscope --prefix=/usr make VIMRUNTIMEDIR=/usr/share/vim/vim74 sudo make install

 --help:可能遇到的问题:

      编译时提示no terminal library found

      checking for tgetent in -lcurses… no  

      no terminal library found

      checking for tgetent()… configure: error: NOT FOUND!
          You need to install a terminal library; for example ncurses.
          Or specify the name of the library with –with-tlib.
  解决方法:
      安装ncurses
      sudo apt-get install libncurses5-dev

ubuntu下编译vim(for python)

标签:

原文地址:http://www.cnblogs.com/Rsean/p/5638845.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!