$HOME/.local
にインストールをする
mkdir src
cd src
# Lua をビルド
curl -O https://www.lua.org/ftp/lua-5.4.4.tar.gz
tar -zxvf lua-5.4.4.tar.gz
cd lua-5.4.4
make INSTALL_TOP=$HOME/.local
make install INSTALL_TOP=$HOME/.local
cd ..
# LuaJIT をビルド
curl -O https://luajit.org/download/LuaJIT-2.1.0-beta3.tar.gz
tar -zxvf LuaJIT-2.1.0-beta3.tar.gz
cd LuaJIT-2.1.0-beta3
make PREFIX=$HOME/.local
make install PREFIX=$HOME/.local
# macOSの場合 `MACOSX_DEPLOYMENT_TARGET=YY.MM` をつける
# (例)
# MACOSX_DEPLOYMENT_TARGET=12.2 make PREFIX=$HOME/.local
# MACOSX_DEPLOYMENT_TARGET=12.2 make install PREFIX=$HOME/.local
ln -sf luajit-2.1.0-beta3 $HOME/.local/bin/luajit
cd ..
# vim をビルド
git clone --depth=1 https://github.com/vim/vim.git
cd vim
./configure --prefix=$HOME/.local --enable-multibyte --enable-nls --enable-fail-if-missing=yes --with-features=huge --without-x --disable-xim --disable-gui --disable-sysmouse --disable-netbeans --disable-xsmp --enable-largefile --enable-luainterp --with-lua-prefix=$HOME/.local --with-luajit
make
make install
使う時は PATH
と LD_LIBRARY_PATH
にパスを追加する
export PATH=$HOME/.local/bin/:$PATH
export LD_LIBRARY_PATH=$HOME/.local/lib:$LD_LIBRARY_PATH