[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: package question (luasql example)
- From: "Thomas Blom" <thomasblom@...>
- Date: Tue, 22 Aug 2006 23:01:34 -0500
For now, I recommend one of two choices:
- use Lua 5.0 with Compat-5.1 R5: this is the safety choice :-)
- use Lua 5.1 (without Compat!) with the CVS HEAD: this was not tested!
Thanks to all who have responded to this thread. I'll skip the many many
questions your responses bring to mind, in favor of reduced bandwidth. :)
I have taken Tomas' advice above; removed all lua5.1 binaries/headers
etc... from public paths & removed/reinstalled lua50 package.
I have rebuilt luasql & installed. From what I can tell, this operation
creates exactly one file for me : mysql.so (this linked to the longer lib
name) and these exist in usr/lib/luasql.
When I run the test.lua provided with luasql, I get the following:
lua: test.lua:599: could not load package `luasql.mysql' from path
[C]: in function `require'
test.lua:599: in main chunk
So I've read up on the 'require' function, and I'm confused as to where
exactly luasql.mysql is supposed to be coming from. Reading in the book I
would assume this would be a .lua file it is looking for, but luasql comes
with no .lua implementation files. I get only the mysql.so. I know this
must be what require('luasql.mysql') in test.lua wants to get at, but I'm
not sure how to provide it.
Thanks for patience with me ;)