[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: help loading luasql
- From: Tomas Guisasola Gorham <tomas@...>
- Date: Fri, 1 Feb 2008 15:23:58 -0200 (BRST)
Hi Rob
> #> require "luasql.sqlite"
> stdin:1: module 'luasql.sqlite' not found:
> no field package.preload['luasql.sqlite']
> no file './luasql/sqlite.lua'
> no file '/usr/share/lua/5.1/luasql/sqlite.lua'
> no file '/usr/share/lua/5.1/luasql/sqlite/init.lua'
> no file '/usr/lib/lua/5.1/luasql/sqlite.lua'
> no file '/usr/lib/lua/5.1/luasql/sqlite/init.lua'
> no file './luasql/sqlite.so'
> no file '/usr/lib/lua/5.1/luasql/sqlite.so'
> no file '/usr/lib/lua/5.1/loadall.so'
> no file './luasql.so'
> no file '/usr/lib/lua/5.1/luasql.so'
> no file '/usr/lib/lua/5.1/loadall.so'
> stack traceback:
> [C]: in function 'require'
> stdin:1: in main chunk
> [C]: ?
This is the sequence of files `require' is trying to
find in order to load "luasql.sqlite".
> a 'locate' reveals the files its looking for aren't on my system
> where for example should luasql.so and loadall.so come from?
Do you have these files?
> all the make install process does is:
>
> mkdir -p /usr/lib/lua/5.1/luasql
> cp src/sqlite3.so /usr/lib/lua/5.1/luasql
Thus, you could try to load sqlite3 driver with:
require"luasql.sqlite3"
Note the `3' at the end.
> i slightly edited the config file:
>
> snip of luasql config file:
> T= sqlite <------------------ i uncommented this
> T=sqlite3
You should have just one of the two lines above!
> # Installation directories
> # Default prefix
> PREFIX = /usr <------------------ i changed this from /usr/local to
> /usr so its in my package.path
Ok.
> ######## SQLite
> DRIVER_LIBS= -lsqlite <------------------ i uncommented this
> DRIVER_INCS=
I think you commented the lines with other driver's
configuration, don't you?
> > =package.path
> ./?.lua;/usr/share/lua/5.1/?.lua;/usr/share/lua/5.1/?/init.lua;/usr/lib/lua/5.1/?.lua;/usr/lib/lua/5.1/?/init.lua
>
> maybe its all here
>
> http://www.keplerproject.org/luasql/manual.html#compiling
>
> but i can't understand any of that :( perhaps someone could translate it
> into plain english :)
It seems you have an installation problem. How did you
compile the files?
Regards,
Tomás