lua-users home
lua-l archive

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


On Wed, Jun 30, 2010 at 11:32:43AM -0400, Patrick wrote:
> Wesley Smith wrote:
> >I'm wondering what error messages you're seeing?  Lua provides quite
> >detailed messages about all the paths it looked in for a particular
> >module.
> >
> >wes
> patrick@FatBox:~/unique/lua$ lua curl1.lua
> lua: curl1.lua:2: module 'curl' not found:
>   no field package.preload['curl']
>   no file './curl.lua'
>   no file '/usr/local/share/lua/5.1/curl.lua'
>   no file '/usr/local/share/lua/5.1/curl/init.lua'
>   no file '/usr/local/lib/lua/5.1/curl.lua'
>   no file '/usr/local/lib/lua/5.1/curl/init.lua'
>   no file './curl.so'
>   no file '/usr/local/lib/lua/5.1/curl.so'
>   no file '/usr/local/lib/lua/5.1/loadall.so'
> stack traceback:
>   [C]: in function 'require'
>   curl1.lua:2: in main chunk
>   [C]: ?

These are not the standard paths used by the lua interpreter 
shipped in the Debian/Ubuntu package. You are using the wrong lua
executable or altering the package.*path variable by hand.

Cheers
-- 
Enrico Tassi