Skip to content

Instantly share code, notes, and snippets.

@akolosov
Last active February 5, 2025 05:47
Show Gist options
  • Select an option

  • Save akolosov/cedaac86b333a4ced95f to your computer and use it in GitHub Desktop.

Select an option

Save akolosov/cedaac86b333a4ced95f to your computer and use it in GitHub Desktop.
vim 7.4 with lua+GUI on Ubuntu 14.04
#!/bin/sh
sudo apt-get remove --purge vim vim-runtime vim-gnome vim-tiny vim-common vim-gui-common
sudo apt-get install liblua5.1-dev luajit libluajit-5.1 python-dev ruby-dev libperl-dev mercurial libncurses5-dev libgnome2-dev libgnomeui-dev libgtk2.0-dev libatk1.0-dev libbonoboui2-dev libcairo2-dev libx11-dev libxpm-dev libxt-dev
sudo mkdir /usr/include/lua5.1/include
sudo ln -s /usr/include/luajit-2.0 /usr/include/lua5.1/include
cd ~
hg clone https://code.google.com/p/vim/
cd vim/src
make distclean
./configure --with-features=huge \
--enable-rubyinterp \
--enable-largefile \
--disable-netbeans \
--enable-pythoninterp \
--with-python-config-dir=/usr/lib/python2.7/config-x86_64-linux-gnu \
--enable-perlinterp \
--enable-luainterp \
--with-luajit \
--enable-gui=auto \
--enable-fail-if-missing \
--with-lua-prefix=/usr/include/lua5.1 \
--enable-cscope
make
sudo make install
cd ..
sudo mkdir /usr/share/vim
sudo mkdir /usr/share/vim/vim74
sudo cp -fr runtime/* /usr/share/vim/vim74/
@andyhome123

Copy link
Copy Markdown

thank you! it works

@pfraces

pfraces commented Sep 10, 2015

Copy link
Copy Markdown

Thank you!

update: vim moves to github

replace: hg clone https://code.google.com/p/vim/
with: git clone https://github.com/vim/vim.git

Also I had to skip make distclean command because it was giving me an error. But the installation worked
well anyway

@rocknrollMarc

Copy link
Copy Markdown

Did a fork wih the git url and yes works great thanks

@nathanleiby

Copy link
Copy Markdown

Thanks, worked great for me!

@manuphatak

Copy link
Copy Markdown

This script worked for me, thank you!

Also I had to skip make distclean command because it was giving me an error. But the installation worked
well anyway

I ran the make commands in the repo base directore -- ../vim instead of ../vim/src -- and everything worked!

@zhaopei0418

Copy link
Copy Markdown

thank you! it works

@kecaiwu

kecaiwu commented Jun 6, 2016

Copy link
Copy Markdown

debug

can you give me some advices about this error?

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