Skip to content

Instantly share code, notes, and snippets.

@aminnj
Created July 9, 2018 01:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aminnj/b03a59a01888101f4e886e06d297b9f4 to your computer and use it in GitHub Desktop.
Save aminnj/b03a59a01888101f4e886e06d297b9f4 to your computer and use it in GitHub Desktop.
installing vim8.1 on slc7 computers

Execute the commands chunk by chunk because I haven't tested this as a whole

# setup environment
cd /cvmfs/cms.cern.ch/slc7_amd64_gcc630/cms/cmssw/CMSSW_10_2_0_pre6/ ; cmsenv ; cd -

# make containment folder somewhere and get vi
mkdir vim8
cd vim8
git clone https://github.com/vim/vim

# we need ncurses
# https://askubuntu.com/questions/158344/no-terminal-library-found-when-compiling-vim
version=ncurses-6.1
curl -O -L http://ftp.gnu.org/pub/gnu/ncurses/${version}.tar.gz
tar xvzf ${version}
cd ${version}
./configure --prefix=`pwd`
make -j10
make install
export NCURSLIB=`pwd`/lib

# back into vim folder and start configuring
cd ../vim

export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${NCURSLIB}
LDFLAGS=-L${NCURSLIB} ./configure --with-features=huge \
            --enable-multibyte \
            --enable-rubyinterp=yes \
            --enable-pythoninterp=yes \
            --enable-python3interp=yes \
            --enable-gui=gtk2 \
            --enable-perlinterp=yes \
            --enable-luainterp=yes \
            --enable-cscope \
            --prefix=`pwd`

make -j20
make install

# done!
# your vim should be in `vim/bin/`, so fire it up
./vim/bin

# put it on your path if things go well
@aminnj
Copy link
Author

aminnj commented Jul 9, 2018

Had to do
pip3 install greenlet==0.4.10 --user -U
to get deoplete to "work" (https://github.com/Shougo/deoplete.nvim)

"work" = not complain/crash, but still didn't get any useful completion out of it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment