ubuntu下编译vim(for python)

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ubuntu下编译vim(for python)相关的知识,希望对你有一定的参考价值。

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)的主要内容,如果未能解决你的问题,请参考以下文章

Ubuntu16.04下编译安装vim8

ubuntu下编译webrtc for Android

ubuntu下编译webrtc for Android

ubuntu下编译boost

ubuntu下编译安装mysql记录

opencv系列之ubuntu系统下编译python版本的opencv(指定特定的ffmpeg)