This is a collection of rockspecs that I've modified to ease the setup of a Lua environment on OS X. I'm new to Lua. It's entirely possible that I'm doing something wrong here. You have been warned.
For MySQL installed via MacPorts, install the rock like this:
sudo luarocks install http://luarocks.randomba.org/luasql-mysql-2.1.1.rockspec MYSQL_LIBDIR=/opt/local/lib/mysql5/mysql MYSQL_INCDIR=/opt/local/include/mysql5
For Postgres installed via MacPorts, install the rock like this:
sudo luarocks install http://luarocks.randomba.org/luasql-postgres-2.1.1.rockspec POSTGRES_INCDIR=/opt/local/include/postgresql83 POSTGRES_LIBDIR=/opt/local/lib/postgresql83
For SQLite3 installed via MacPorts, install the rock like this:
sudo luarocks install http://luarocks.randomba.org/luasql-sqlite3-2.1.1.rockspec
If you have any comments or questions, feel free to send me an email at: norman@randomba.org.