Last active
July 5, 2016 23:54
-
-
Save michiomochi/9743293 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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