Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save michiomochi/9743293 to your computer and use it in GitHub Desktop.
Save michiomochi/9743293 to your computer and use it in GitHub Desktop.
lua有効のvim7.4をコンパイルインストールする
検証環境: CentOS6.4 64bit
インストール先
${HOME}/local/bin
luaソースファイル
http://www.lua.org/ftp/lua-5.2.3.tar.gz
UTF-8対応版?
https://github.com/satosystems/lua-5.2.2-utf8
vimソースファイル
http://ftp.vim.org/pub/vim/unix/vim-7.4.tar.bz2
================================
手順書
================================
--------------------------------
下準備
--------------------------------
mkdir -p ~/local/src
--------------------------------
luaインストール
--------------------------------
# luaのコンパイル&インストール
cd ~/local/src
wget http://www.lua.org/ftp/lua-5.2.3.tar.gz
tar xvf lua-5.2.3.tar.gz
cd ~/local/src/lua-5.2.3
make linux MYLIBS="-L /home/vagrant/local/lib -ltermcap"
make install INSTALL_TOP=${HOME}/local
※ readline.hが見つからないエラーが出た場合はsrc/MakefileのCFLAGSに"-I/include/to/path"を指定してあげると通る
--------------------------------
vimインストール
--------------------------------
# vimのコンパイル&インストール
cd ~/local/src
wget http://ftp.vim.org/pub/vim/unix/vim-7.4.tar.bz2
tar xvf vim-7.4.tar.bz2
cd vim74
./configure --prefix=${HOME}/local --with-features=huge --enable-multibyte=yes --enable-luainterp=yes --with-lua-prefix=${HOME}/local
make
~/local/src/vim74/src/vim --version | grep '+lua'
# 表示されること
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment