Last active
August 22, 2024 23:18
-
-
Save ivan-loh/9f81b6f44c42f4115964 to your computer and use it in GitHub Desktop.
lua specific version installation for osx
This file contains hidden or 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
curl -LO http://www.lua.org/ftp/lua-5.1.5.tar.gz | |
tar xvzf lua-5.1.5.tar.gz | |
cd lua-5.1.5/src | |
make macosx | |
sudo cp lua /usr/local/bin/lua | |
This file contains hidden or 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
# Reference the sqlite installed by homevrew for the compilation, seems to work.. | |
# ref: http://sourceforge.net/p/luarocks/mailman/message/33471857/ | |
brew install sqlite3 | |
luarocks install lsqlite3 SQLITE_LIBDIR=/usr/local/opt/sqlite/lib SQLITE_INCDIR=/usr/local/opt/sqlite/include |
Had to run
curl -LO http://www.lua.org/ftp/lua-5.1.5.tar.gz
because I was getting anunrecognized archive format error
when trying totar
the downloaded compressed file, but other than that this process worked for me. Thanks!
Thanks!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Had to run
curl -LO http://www.lua.org/ftp/lua-5.1.5.tar.gz
because I was getting anunrecognized archive format error
when trying totar
the downloaded compressed file, but other than that this process worked for me. Thanks!