vim7.4 で neocomplete が使いたいので頑張る。
sudo aptitude install lua
cd /PATH/TO/VIM/SRC
hg pull
hg update
./configure --enable-luainterp=yes --with-luajit --prefix=/home/mikoto/app/vim/
make && make install
... -lua だ! .configure の出力を真面目に見てみよう...。
./configure --enable-luainterp=yes --with-luajit --prefix=/home/mikoto/app/vim/ | grep lua
checking --enable-luainterp argument... yes
checking --with-lua-prefix argument... no
checking --with-luajit... yes
checking for luajit... no
checking if lua.h can be found in /usr/include... no
checking if lua.h can be found in /usr/include/lua... no
ヘッダが無いとダメなのかー。
sudo aptitude install liblua5.2-dev
ls /usr/include | grep lua
lua5.2
oh...パスが違うようだ。
sudo ln -s /usr/include/lua5.2 /usr/include/lua
./configure --enable-luainterp=yes --with-luajit --prefix=/home/mikoto/app/vim/ | grep lua
checking --enable-luainterp argument... yes
checking --with-lua-prefix argument... no
checking --with-luajit... yes
checking for luajit... no
checking if lua.h can be found in /usr/include... no
checking if lua.h can be found in /usr/include/lua... yes
checking if link with -L/usr/lib/x86_64-linux-gnu -lluajit is sane... no
luajit が有効にならない...。 別途 luajit が必要? wheezy には deb パッケージなかったので今回はいいや。 luajit なしで続行。
# こっちだと lua5.2 見つけてくれるのね...
./configure --enable-luainterp=yes --prefix=/home/mikoto/app/vim/ | grep lua
checking --enable-luainterp argument... yes
checking --with-lua-prefix argument... no
checking --with-luajit... no
checking for lua... (cached) /usr/bin/lua
checking if lua.h can be found in /usr/include... no
checking if lua.h can be found in /usr/include/lua5.2... yes
checking if link with -L/usr/lib -llua5.2 is sane... yes
make && make install
vim --version | grep +lua
+dialog_con_gui +lua -rightleft +windows
よしできた。
0 件のコメント:
コメントを投稿