On Wed, May 11, 2011 at 2:31 PM, Francisco <[email protected]> wrote: > Hi all, > > I'm using a debian linux (lenny) and I have done the setup of a web server > with Niginx + wsapi-fcgi/orbit (luarocks) just fine ... > > but today i tried to install luasql-mysql and i got this error: > > apt-get install mysql-server-5.0 mysql-client libmysqlclient15-dev > > xxleite:/usr/include/mysql# ls > decimal.h my_dir.h mysql.h sql_common.h > errmsg.h my_getopt.h mysql_com.h sql_state.h > keycache.h my_global.h mysql_embed.h sslopt-case.h > m_ctype.h my_list.h mysql_time.h sslopt-longopts.h > m_string.h my_net.h mysql_version.h sslopt-vars.h > my_alloc.h my_no_pthread.h mysqld_ername.h typelib.h > my_attribute.h my_pthread.h mysqld_error.h > my_config.h my_sys.h ndb > my_dbug.h my_xml.h raid.h > xxleite:/usr/include/mysql# MYSQL_DIR=/usr/include/mysql > xxleite:/usr/include/mysql# luarocks install luasql-mysql > Installing > http://luarocks.org/repositories/rocks/luasql-mysql-2.2.0-1.src.rock... > Archive: > /tmp/luarocks_luarocks-rock-luasql-mysql-2.2.0-1-8676/luasql-mysql-2.2.0-1.src.rock > inflating: luasql-mysql-2.2.0-1.rockspec > inflating: luasql-2.2.0.tar.gz > > Error: Could not find expected file mysql.h for MYSQL -- you may have to > install MYSQL in your system and/or set the MYSQL_DIR variable > xxleite:/usr/include/mysql# echo $MYSQL_DIR > /usr/include/mysql > > > i also tried to install it like that: > > xxleite:/usr/include/mysql# luarocks MYSQL_DIR=/usr/include/mysql install > luasql-mysql > > and the same error occurs, have this ever happen with any of you?
Try this: luarocks install luasql-mysql MYSQL_INCDIR=/usr/include/mysql The more general variable MYSQL_DIR requires a top-level installation prefix, such as /usr, /usr/local, /opt. To specify the header directory only (which is a compatibility issue with MySQL across distributions), use MYSQL_INCDIR. The error message is not very clear, sorry. We'll try to improve it in future versions of LuaRocks. -- -- Hisham http://hisham.hm/ _______________________________________________ Luarocks-developers mailing list [email protected] http://lists.luaforge.net/cgi-bin/mailman/listinfo/luarocks-developers
