lua-users home
lua-l archive

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



On 2-Mar-07, at 2:27 PM, Tiogshi Laj wrote:

I have been failing to get LUA_PATH/package.path working right for nearly two major versions of Lua, now.

I'm using lua 5.1, from the Debian package on one machine, and a custom-compiled lua 5.1 (using 64-bit signed ints for numbers) on another machine. Both suffer this same problem.

The console snippet below describes the nature of this error in full, I suspect.


[tiogshi@tiogshi-desktop ~/Programming/sim-lua]$ echo $LUA_PATH
;;./?.lc;./?.lua;/home/tiogshi/.lua/?.lua;/home/tiogshi/.lua/?.lc

[tiogshi@tiogshi-desktop ~/Programming/sim-lua]$ lua
Lua 5.1  Copyright (C) 1994-2006 Lua.org, PUC-Rio
> print( os.getenv('LUA_PATH') )
nil
>


Any suggestions?

$ export LUA_PATH