lua-users home
lua-l archive

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

HI Philippe
I tried that ..It gave me this eerrror
lua: C:\a\ScriptingLanguageSupport\Lua1.lua:5: attempt to index global 'myapp_Lua'
(a nil value)
stack traceback:
        C:\a\ScriptingLanguageSupport\Lua1.lua:5: in main chunk
        [C]: ?
        [C]: ?

On Wed, Sep 16, 2009 at 9:37 PM, Philippe Lhoste <> wrote:
On 15/09/2009 15:43, Anurag Sharma wrote:
I tried when I try the following, I get error message

lua -e "package.path='\\mypath\?.lua;'..package.path" -lmyapp_Lua ...

The "mypath" needed to be replaced by to your real path.

On Tue, Sep 15, 2009 at 7:01 PM, steve donovan < <>> wrote:
   This error message is instructive; Lua is just telling you that your
   myapp_Lua module is not found on the Lua module path. Is myapp_Lua.lua
   in one of the these standard places?  If not, either move it there, or
   read up about the LUA_PATH environment variable.

To re-iterate Steve's question, where is your myapp_Lua.lua (or .dll) file? Is it in one of the listed places?

Perhaps you need to specify a "current directory" to your process object.

Philippe Lhoste
--  (near) Paris -- France
--  --  --  --  --  --  --  --  --  --  --  --  --  --