[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Need help with getting started with luasql
- From: "Pete Kay" <petedao@...>
- Date: Sun, 11 May 2008 21:16:56 +0800
Hi,
I used apt-get install to install lua, but still it can't load the mysql module. I don't know what I am missing here:
ser:/usr/src# lua
Lua 5.1.3 Copyright (C) 1994-2008 Lua.org, PUC-Rio
> require "luasql.mysql"
stdin:1: module 'luasql.mysql' not found:
no field package.preload['luasql.mysql']
no file './luasql/mysql.lua'
no file '/usr/local/share/lua/5.1/luasql/mysql.lua'
no file '/usr/local/share/lua/5.1/luasql/mysql/init.lua'
no file '/usr/local/lib/lua/5.1/luasql/mysql.lua'
no file '/usr/local/lib/lua/5.1/luasql/mysql/init.lua'
no file './luasql/mysql.so'
no file '/usr/local/lib/lua/5.1/luasql/mysql.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
no file './luasql.so'
no file '/usr/local/lib/lua/5.1/luasql.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
[C]: in function 'require'
stdin:1: in main chunk
[C]: ?
>
ser:/usr/src# apt-get install liblua5.1-sql-mysql-dev liblua5.1-sql-mysql2 liblua5.1-sql-sqlite-dev liblua5.1-sql-sqlite2
Reading package lists... Done
Building dependency tree
Reading state information... Done
liblua5.1-sql-mysql-dev is already the newest version.
liblua5.1-sql-mysql2 is already the newest version.
liblua5.1-sql-mysql2 set to manually installed.
liblua5.1-sql-sqlite-dev is already the newest version.
liblua5.1-sql-sqlite2 is already the newest version.
liblua5.1-sql-sqlite2 set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
ser:/usr/src# hist
I am a newbie on lua, please help me to get started.
Thanks alot for all your help.
Pete