Ubuntu under compile vim (for Python)

Source: Internet
Author: User

1, install the necessary lib,git and other software

sudo apt-get install Libncurses5-dev libgnome2-dev libgnomeui-dev \ libgtk2.0-dev Libatk1.0-dev libbonoboui2-dev \ Libcai Ro2-dev libx11-dev libxpm-dev libxt-dev python-dev \ Ruby-dev git

2, uninstall the original version of Vim

sudo apt-get remove vim vim-runtime gvim

3,gitbub download Vim source code, to compile

  CD ~ git clone https://github.com/vim/vim.git cd vim./configure--with-features=huge \--enable-multibyte \--ena BLE-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: Problems you may encounter:

Compile-time prompt 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. Workaround: Install ncurses sudo apt-get installation Libncurses5-dev

Ubuntu under compile vim (for Python)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.