lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

	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/'
>     no file '/usr/lib/lua/5.1/luasql/'
>     no file '/usr/lib/lua/5.1/'
>     no file './'
>     no file '/usr/lib/lua/5.1/'
>     no file '/usr/lib/lua/5.1/'
> 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 and come from?
	Do you have these files?

> all the make install  process does is:
> mkdir -p /usr/lib/lua/5.1/luasql
> cp src/ /usr/lib/lua/5.1/luasql
	Thus, you could try to load sqlite3 driver with:


	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

> ######## SQLite
> DRIVER_LIBS= -lsqlite <------------------  i uncommented this
	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
> 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?