[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: help with luasql
- From: Tomas <tomas@...>
- Date: Tue, 18 Oct 2005 16:19:26 -0200 (BRST)
Hi Walter,
But, how do I install compat-5.1? (there's no Makefile or README in the
package)
Try the home-page:
http://www.keplerproject.org/compat/
I had:
MCid299a:~/lua/compat/src$ ls -la
total 28
drwxr-xr-x 2 walter.cruz MCidades 4096 2005-10-18 13:01 .
drwxr-xr-x 3 walter.cruz MCidades 4096 2005-10-18 12:47 ..
-rwxr-xr-x 1 walter.cruz MCidades 3178 2005-07-08 15:25 compat-5.1.c
-rwxr-xr-x 1 walter.cruz MCidades 363 2005-07-08 15:25 compat-5.1.h
-rwxr-xr-x 1 walter.cruz MCidades 5982 2005-07-06 11:49 compat-5.1.lua
-rw-r--r-- 1 walter.cruz MCidades 2900 2005-10-18 13:01 compat-5.1.o
The .lua file should be loaded by your application before
trying to use `require' (this file redefines `require'). You could
define the environment variable LUA_INIT for use with the standalone
interpreter:
LUA_INIT="@/path/to/compat-5.1.lua"
After that (or equivalent) `require' will look for Lua libraries
in the package.path and for C libraries in the package.cpath.
Tomas