1

Using a lua rock installed with luarocks

view story
linux-howto

http://unix.stackexchange.com – I wanted to install luasql.mysql with luarocks, and I've ran into a problem. Even though the packages were installed providing mysql.h, luarocks couldn't find it. I solved it eventually: luarocks install luasql-mysql MYSQL_INCDIR=/usr/include/mysql Now, all prerequisites should be met, to use luasql.mysql, but I'm getting an error: > require "luasql.mysql" stdin:1: module 'luasql.mysql' not found: no field package.preload['luasql.mysql'] no file '/usr/local/share/lua/5.2/luasql/mysql.lua' no file '/usr/local/share/lua/5.2/luasql/mysql/init.lua' no file '/usr/local/lib/lu (HowTos)