Skip to content

Instantly share code, notes, and snippets.

@ivan-loh
Last active August 22, 2024 23:18
Show Gist options
  • Save ivan-loh/9f81b6f44c42f4115964 to your computer and use it in GitHub Desktop.
Save ivan-loh/9f81b6f44c42f4115964 to your computer and use it in GitHub Desktop.
lua specific version installation for osx
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
# 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
@Drew-Daniels
Copy link

Had to run curl -LO http://www.lua.org/ftp/lua-5.1.5.tar.gz because I was getting an unrecognized archive format error when trying to tar the downloaded compressed file, but other than that this process worked for me. Thanks!

@ivan-loh
Copy link
Author

Had to run curl -LO http://www.lua.org/ftp/lua-5.1.5.tar.gz because I was getting an unrecognized archive format error when trying to tar 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