[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: How to run a Lua script file
- From: Anurag Sharma <anurag.sharma.101@...>
- Date: Wed, 16 Sep 2009 21:53:38 +0530
I tried that ..It gave me this eerrror
lua: C:\a\ScriptingLanguageSupport\Lua1.lua:5: attempt to index global 'myapp_Lua'
(a nil value)
C:\a\ScriptingLanguageSupport\Lua1.lua:5: in main chunk
On Wed, Sep 16, 2009 at 9:37 PM, Philippe Lhoste <PhiLho@gmx.net>
The "mypath" needed to be replaced by to your real path.
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 ...
To re-iterate Steve's question, where is your myapp_Lua.lua (or .dll) file? Is it in one of the listed places?
On Tue, Sep 15, 2009 at 7:01 PM, steve donovan <email@example.com <mailto:firstname.lastname@example.org>> 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.
Perhaps you need to specify a "current directory" to your process object.
-- (near) Paris -- France
-- -- -- -- -- -- -- -- -- -- -- -- -- --