mercredi 17 juillet 2013

Compile vim by yourself

Here is a short howto on compiling vim by yourself on an ubuntu os. You should have lua dev, python dev and ruby dev packages installed to support vim's lua, python and ruby integration.

~% mkdir src && cd src
~% hg clone https://vim.googlecode.com/hg/ vim
~% cd vim
~% hg pull
~% hg update

In ~/src/vim/src/Makefile here are the options I've uncommented:

CONF_OPT_GUI = --disable-gui
CONF_OPT_LUA = --enable-luainterp
CONF_OPT_PYTHON = --enable-pythoninterp
CONF_OPT_RUBY = --enable-rubyinterp
CONF_OPT_FEAT = --with-features=big
CONF_OPT_COMPBY = "--with-compiledby=inside"
CONF_OPT_X = --without-x

Then type:

~% make
~% sudo make install
    

If you change anything in the src/Makefile be sure to type:

~% make reconfig
    
in order to take changes into account.

2 commentaires:

inside a dit…

Installing libncurses-dev fixes this error:

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.

inside a dit…

Uncomment "prefix = $(HOME)" in src/Makefile if you want to install vim in your home directory.