lua-users home
lua-l archive

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



On Nov 14, 2013, at 10:51 PM, Jose Torre-Bueno <jtorrebueno@cox.net> wrote:


I notice that although I have 5.2 installed package.path still has 5.0 in it:

For the benefit of future readers, I found the source of this, it is an old LUA_PATH left in the environment from an earlier install.
The install page for luasockets mentions setting LUA_PATH and LUA_CPATH but 5.2 does not seem to need them and the latest release candidate for luasockets installs correctly without them.



Joses-MacBook-Pro:luawork jtorrebueno$ lua
Lua 5.2.0  Copyright (C) 1994-2011 Lua.org, PUC-Rio
> =package.path
/usr/local/share/lua/5.0/?.lua;?.lua

Does anybody have a theory how this could have come about?  I have LUA_INIT cleared so it is not happening there.  Where does Lua get the initial value of package.path?


Jose de la Torre-Bueno, Ph.D.
Empowered Energy Solutions Inc.
Intellectual Property & Technology Management
T (619) 977-0553
F (760) 295-7119