Skip to content

Instantly share code, notes, and snippets.

@ivan-loh
Last active November 4, 2023 17:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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 -O 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment