[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: best linux Distro for Lua programming
- From: Enrico Tassi <gareuselesinge@...>
- Date: Wed, 30 Jun 2010 13:48:46 +0200
On Wed, Jun 30, 2010 at 07:29:23AM -0400, Patrick wrote:
> Okay now I getting worried this is just my stupidity. I tried
> require("curl") and ("cURL") but the module was not found. I did
> read the documentation that you sent but I am still stuck.
First of all, be sure you are using the lua interpreter coming from the
$ dpkg -L lua5.1
$ update-alternatives --display lua-interpreter
lua-interpreter - auto mode
link currently points to /usr/bin/lua5.1
If it is the case you should get that:
$ lua -e 'print(package.path)'
$ lua -e 'print(package.cpath)'
Then check you have no LUA_INIT variable set (or that you have it set in
a consisten way):
Then, give a look at the content of the curl package:
$ dpkg -L liblua5.1-curl0
The latter is a symlink pointing to the former file, and is what require
will look for whn you type require'curl'. Also note that the current
directory and /user/local are searched first that /usr/, so you may try
load by mistake some .so you manually compiled.