Last active
May 14, 2016 20:12
-
-
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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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