[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: help with luasql
- From: Walter Cruz <walter.php@...>
- Date: Tue, 18 Oct 2005 13:58:14 -0300
H all. I've downloaded luasql today.
I've compiled it, with postgresql, sqlite and mysql and put the files in /usr/share/lua50.
Look:
MCid299a:/usr/share/lua50$ ls -la
total 20
drwxr-xr-x 3 root root 4096 2005-10-18 14:44 .
drwxr-xr-x 350 root root 8192 2005-10-18 09:38 ..
-rw-r--r-- 1 root root 4074 2004-08-05 18:03 compat.lua
drwxrwxrwx 2 root root 4096 2005-10-18 14:44 luasql
MCid299a:/usr/share/lua50/luasql$ ls -la
total 68
drwxrwxrwx 2 root root 4096 2005-10-18 14:44 .
drwxr-xr-x 3 root root 4096 2005-10-18 14:44 ..
-rwxr-xr-x 1 root root 19058 2005-10-18 14:44 libmysql.2.0.1.so
-rwxr-xr-x 1 root root 18959 2005-10-18 14:44 libpostgres.2.0.1.so
-rwxr-xr-x 1 root root 17731 2005-10-18 14:44 libsqlite.2.0.1.so
lrwxrwxrwx 1 root root 17 2005-10-18 14:44 mysql.so -> libmysql.2.0.1.so
lrwxrwxrwx 1 root root 20 2005-10-18 14:44 postgres.so -> libpostgres.2.0.1.so
lrwxrwxrwx 1 root root 18 2005-10-18 14:44 sqlite.so -> libsqlite.2.0.1.so
I have created the database luasql-test in postgresql to test.
But, when I run the example, I get the following error:
MCid299a:~/lua/luasql-2.0.1/tests$ lua example.lua
lua: example.lua:4: could not load package `postgres' from path
`/home/walter.cruz/.lua50/?.lua;/home/walter.cruz/.lua50/?;/home/walter.cruz/share/lua50/?.lua;/home/walter.cruz/share/lua50/?;/usr/share/lua50/?.lua;/usr/share/lua50/?;/usr/local/share/lua50/?.lua;/usr/local/share/lua50/?;?.lua;?'
stack traceback:
[C]: in function `require'
example.lua:4: in main chunk
[C]: ?
Someone can help me ?
[]'s
- Walter