Advertisement
atimholt

Compiling Vim (but it doesn’t work)

Mar 5th, 2014
356
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. On a new installation:
  2. ======================
  3. sudo apt-get install libncurses5-dev libgnome2-dev libgnomeui-dev \
  4. libgtk2.0-dev libatk1.0-dev libbonoboui2-dev \
  5. libcairo2-dev libx11-dev libxpm-dev libxt-dev python-dev ruby-dev mercurial
  6. sudo apt-get install checkinstall
  7.  
  8. sudo apt-get remove vim vim-runtime gvim
  9. sudo apt-get remove vim-tiny vim-common vim-gui-common
  10.  
  11. cd ~
  12. mkdir local_code
  13. cd local_code
  14. mkdir vim
  15. hg clone https://code.google.com/p/vim/
  16.  
  17. After having done this at least once before now:
  18. ================================================
  19. dpkg -r vim
  20.  
  21. cd ~/local_code/vim
  22. hg purge
  23. hg pull
  24. hg update -C
  25.  
  26. After whichever you did:
  27. ========================
  28.  
  29. ./configure --with-features=huge \
  30. --enable-rubyinterp \
  31. --enable-pythoninterp \
  32. --enable-luainterp \
  33. --with-python-config-dir=/usr/lib/python2.7-config \
  34. --enable-perlinterp \
  35. --enable-gui=gtk2 \
  36. --enable-cscope \
  37. --prefix=/usr
  38. make VIMRUNTIMEDIR=/usr/share/vim/vim74
  39. sudo checkinstall
  40.  
  41. #no idea if these are necessary after 1st time, but it seems likely enough
  42. #dpkg -r would unset these.
  43. sudo update-alternatives --install /usr/bin/editor editor /usr/bin/vim 1
  44. sudo update-alternatives --set editor /usr/bin/vim
  45. sudo update-alternatives --install /usr/bin/vi vi /usr/bin/vim 1
  46. sudo update-alternatives --set vi /usr/bin/vim
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement