[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Forcing Lua on Windows to use a standalone folder
- From: mchalkley@...
- Date: Sat, 31 Jan 2015 09:02:14 -0500
Friday, January 30, 2015, 12:31:40 PM, you wrote:
> On Fri, Jan 30, 2015 at 10:43 AM, <firstname.lastname@example.org> wrote:
>> I've got to add a feature to a Lua program I wrote several years ago,
>> but it was 5.1 and uses sigar to check system stuff (Disk, memory, &
>> CPU usage, etc.) and sigar is broken on 5.2.
>> My machine now has a 5.2 LuaRocks installation, and I can't figure out
>> a way to get lua to ignore all the system environment variables from
>> within a command prompt window.
>> For example, if I run the lua script on a target machine that doesn't
>> have lua installed, it runs fine, but if I run it on my machine, I get
>> all kinds of module not found warnings, etc. If I resolve those, lua
>> barks about lua52.dll being missing, even though it's running 5.1.
>> Any ideas on how I can make a command prompt window ignore everything
>> but what's in the folder I'm running from? Setting %PATH% to just ;
>> doesn't help - lua continues to look in the LuaRocks\Systree... folder
>> for lfs, etc.
> Don't you also have to set LUA_PATH and LUA_CPATH?
I thought that would do it, but no matter what I set them to, even to
the absolute current path name, I get a "module 'lfs' not found" on