Skip to content

Instantly share code, notes, and snippets.

@rbnvrw
Last active May 14, 2016 20:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rbnvrw/e78de68a956f6c3e69743260bf4c215f to your computer and use it in GitHub Desktop.
Save rbnvrw/e78de68a956f6c3e69743260bf4c215f to your computer and use it in GitHub Desktop.
Building Vim from source on Fedora 23 (see http://www.rubenverweij.nl/2016/05/building-vim-74-from-source-on-fedora-23.html for an explanation)
sudo dnf install -y ruby ruby-devel lua lua-devel luajit \
luajit-devel ctags git python python-devel \
python3 python3-devel tcl-devel \
perl perl-devel perl-ExtUtils-ParseXS \
perl-ExtUtils-XSpp perl-ExtUtils-CBuilder \
perl-ExtUtils-Embed
# symlink xsubpp (perl) from /usr/bin to the perl dir
sudo ln -s /usr/bin/xsubpp /usr/share/perl5/ExtUtils/xsubpp
git clone https://github.com/vim/vim.git vim-src
cd vim-src
CFLAGS+="-O -fPIC -Wformat" ./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=auto --enable-cscope --prefix=/usr
make VIMRUNTIMEDIR=/usr/share/vim/vim74
sudo make install
sudo update-alternatives --install /usr/bin/editor editor /usr/bin/vim 1
sudo update-alternatives --set editor /usr/bin/vim
sudo update-alternatives --install /usr/bin/vi vi /usr/bin/vim 1
sudo update-alternatives --set vi /usr/bin/vim
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.
warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
# warning _FORTIFY_SOURCE requires compiling with optimization (-O)
cc1: error: -Wformat-security ignored without -Wformat [-Werror=format-security]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment