Advertisement
atimholt

Compiling Vim

Mar 5th, 2014
287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.05 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. Make sure the dev packages for the scripting languages you want are all
  18. installed. The configure below assumes you want lua, python 2 & 3, perl, and
  19. ruby. You’ll know you missed something if the ./configure step stops early
  20. (due to the --enable-fail-if-missing option).
  21.  
  22. Also, you may have to adjust the python 2 & 3 config dirs if your installed
  23. versions are different. You need the directories containing the config.c
  24. file.
  25.  
  26. After having done this at least once before now:
  27. ================================================
  28. dpkg -r vim
  29.  
  30. cd ~/local_code/vim
  31. hg purge
  32. hg pull
  33. hg update -C
  34.  
  35. After whichever you did:
  36. ========================
  37. #except this next thing might be just doable the first time. May as well re-do.
  38.  
  39. ./configure --with-features=huge \
  40. --enable-rubyinterp \
  41. --enable-pythoninterp \
  42. --with-python-config-dir=/usr/lib/python2.7-config \
  43. --enable-python3interp \
  44. --with-python3-config-dir=/usr/lib/python3.3 \
  45. --enable-luainterp \
  46. --enable-perlinterp \
  47. --enable-gui=gtk2 \
  48. --enable-cscope \
  49. --prefix=/usr \
  50. --enable-fail-if-missing
  51. make VIMRUNTIMEDIR=/usr/share/vim/vim74
  52. sudo checkinstall
  53.  
  54. #no idea if these are necessary after 1st time, but it seems likely enough
  55. #dpkg -r would unset these.
  56. sudo update-alternatives --install /usr/bin/editor editor /usr/bin/vim 1
  57. sudo update-alternatives --set editor /usr/bin/vim
  58. sudo update-alternatives --install /usr/bin/vi vi /usr/bin/vim 1
  59. sudo update-alternatives --set vi /usr/bin/vim
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement