Skip to content

Instantly share code, notes, and snippets.

@jerowe
Last active September 6, 2015 07:50
Show Gist options
  • Save jerowe/8d4960300b3e9a90c8f5 to your computer and use it in GitHub Desktop.
Save jerowe/8d4960300b3e9a90c8f5 to your computer and use it in GitHub Desktop.
Install vim7.4 from source with ruby and python
#!/bin/bash
#
# Install vim7.4 with fresh python2, python3, and ruby support
#
export INSTALLDIR=/opt/devtools
export BUILDDIR=/opt/devtools/build
mkdir -p $INSTALLDIR
mkdir -p $BUILDDIR
export PATH=$INSTALLDIR/bin:$PATH
export JOBS=32 # make it fast
#Use anyenv to install Ruby, Python, Perl, and Lua. Make sure to use Lua 5.1.5, and do a thingenv global VERSION, and do a rehash on each env
#Powerline requires this
wget https://bootstrap.pypa.io/ez_setup.py -O - | python
cd $BUILDDIR
wget ftp://ftp.vim.org/pub/vim/unix/vim-7.4.tar.bz2
tar xvjf vim-7.4.tar.bz2
cd vim74
make clean distclean; env LUA_PREFIX=${LUAENV_ROOT}/versions/5.1.5 \
./configure --with-features=huge -enable-multibyte \
--enable-rubyinterp --enable-luainterp \
--enable-cscope --disable-nls --prefix=$INSTALLDIR --enable-perlinterp \
--enable-pythoninterp=yes && make -j$JOBS install
export VIMRUNTIME=$INSTALLDIR/share/vim/vim74
# Use environment-modules to load it
#
#%Module1.0#######################################################################
## Vim 7.4 modulefile
##
#proc ModulesHelp { } {
#
# puts stderr "\tAdds the vim 7.4"
#}
#
#module-whatis "Adds the vim 7.4 compiled with python, perl, lua and ruby support"
#
#prepend-path PATH $INSTALLDIR/bin
#setenv VIMRUNTIME $INSTALLDIR/share/vim/vim74
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment