>> On Sun, Feb 17, 2013 at 10:35 PM, Mike Hannibal <mike.hanni...@gmail.com> 
>> wrote:
>>> On Wed, Feb 13, 2013 at 9:55 PM, Mike Hannibal <peloru...@gmail.com> wrote:
>>> 
>>> Following the install instructions I have run into trouble with luarocks.
>>> 
>>> When I issue 'luarocks' in Terminal I get this:
>>> 
>>> mike:luarocks-2.0.12 mikeold$ luarocks
>>> /usr/local/bin/lua: /usr/local/share/lua/5.2//luarocks/command_line.lua:3:
>>> attempt to call global 'module' (a nil value)
>>> stack traceback:
>>>     /usr/local/share/lua/5.2//luarocks/command_line.lua:3: in main chunk
>>>     [C]: in function 'require'
>>>     /usr/local/bin/luarocks:4: in main chunk
>>>     [C]: in ?
>>> 
>>> Any help in how to resolve this would be most appreciated.
>>> 
>>> Did you build Lua yourself? Did you build it without the Lua 5.1
>>> compatibility features? (which I think are still on by default)
>>> 
>>> -- Hisham
>>> http://hisham.hm/
>>> 
>>> I used the Configure - Make - Make Install process without any options...was
>>> that an error and if so what is the way around that?
>> 
>> You mean the "configure; make; make install" procedure for LuaRocks,
>> right? That's ok. I was asking about how you built or installed Lua
>> itself.
>> 
>> -- Hisham
>> http://hisham.hm/
>> 
> 
> Hi Hisham,
> 
> I installed using the 5.2.1-0 installer package for Mac OS X.
> 
> It installed Lua in /usr/local/bin/lua
> 
> Regards
> Mike

OK, here's the solution. When you run ./configure for luarocks you need to add 
the following to the command if you are running 5.2 and the binary is named 
lua52 :

        $ ./configure --lua-suffix=52

Regards
Mike
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Luarocks-developers mailing list
Luarocks-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/luarocks-developers

Reply via email to