Advertisement
atimholt

Compiling Vim (but it doesn’t work)

Mar 5th, 2014
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  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. #except this next thing might be just doable the first time. May as well re-do.
  29.  
  30. ./configure --with-features=huge \
  31. --enable-rubyinterp \
  32. --enable-pythoninterp \
  33. --enable-luainterp \
  34. --with-python-config-dir=/usr/lib/python2.7-config \
  35. --enable-perlinterp \
  36. --enable-gui=gtk2 \
  37. --enable-cscope \
  38. --prefix=/usr
  39. make VIMRUNTIMEDIR=/usr/share/vim/vim74
  40. sudo checkinstall
  41.  
  42. #no idea if these are necessary after 1st time, but it seems likely enough
  43. #dpkg -r would unset these.
  44. sudo update-alternatives --install /usr/bin/editor editor /usr/bin/vim 1
  45. sudo update-alternatives --set editor /usr/bin/vim
  46. sudo update-alternatives --install /usr/bin/vi vi /usr/bin/vim 1
  47. sudo update-alternatives --set vi /usr/bin/vim
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement