lua-users home
lua-l archive

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


Hi,

I am having problem when running my lua code as an embedded code in another program.  It run well as a standalone.  The error I am getting when running it is :

2008-07-14 09:11:27 [ERR] mod_lua.cpp:176 lua_parse_and_execute() /usr/local/share/lua/5.1/socket/http.lua:14: module 'mime' not found:
    no field package.preload['mime']
    no file './mime.lua'
    no file '/usr/local/share/lua/5.1/mime.lua'
    no file '/usr/local/share/lua/5.1/mime/init.lua'
    no file '/usr/local/lib/lua/5.1/mime.lua'
    no file '/usr/local/lib/lua/5.1/mime/init.lua'
    no file './mime.so'
    no file '/usr/local/lib/lua/5.1/mime.so'
    no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
    [C]: in function 'require'
    /usr/local/share/lua/5.1/socket/http.lua:14: in main chunk
    [C]: in function 'require'
    /usr/local/share/lua/5.1/cti.lua:85: in function 'get_cti_output'
    /usr/local/share/lua/5.1/cti.lua:105: in main chunk
    [C]: in function 'require'


When I ls the /usr/local/share/lua/5.1/mime.lua, it is actually there already:

# ls /usr/local/lib/lua/5.1/mime.lua -al
lrwxrwxrwx 1 root root 27 2008-07-14 09:11 /usr/local/lib/lua/5.1/mime.lua -> /usr/local/lua/5.1/mime.lua


Why is lua still complaining about not able to find the file?

Any help will be greatly appreciated.

Thanks,
Pete