On 6 March 2013 21:37, Gary V. Vaughan <g...@vaughan.pe> wrote: > Hi Hisham, > > On 7 Mar 2013, at 06:50, Hisham <h...@hisham.hm> wrote: >> On 6 March 2013 14:38, Gary V. Vaughan <g...@vaughan.pe> wrote: >>> Rockspec for specl version 2 attached. >> >> I got this when running a test build: >> >> /Programs/Lua/Current/bin/lua: src/specl:55: attempt to call field >> 'Option' (a nil value) >> stack traceback: >> src/specl:55: in main chunk >> [C]: ? >> >> Something wrong in my environment, perhaps? I thought I'd check it >> with you before uploading it. > > It looks like you have an old (pre-v33) stdlib installed, as the API > for getopt changed incompatibly between v32 and v33. However, the > specl rockspec contains: > > dependencies = { "lua >= 5.1", "stdlib >= 33" } > > So that should catch a too old stdlib, no?
Yes, it should. In fact, I caught a weird condition here, in which I had installed stdlib 32 running the Lua 5.1 interpreter and stdlib 33 running the Lua 5.2 interpreter, both in the same LuaRocks tree, and LuaRocks got completely confused by that. I cleaned up the environment and it installed correctly. I should fix this kind of misbehavior, but it will take some thinking to see if it can be done without breaking compatibility (the essential problem is that /lib/luarocks/ is not versioned by Lua version). Specl 2 is now uploaded. Sorry about the mess. -- Hisham http://hisham.hm/ ------------------------------------------------------------------------------ Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the endpoint security space. For insight on selecting the right partner to tackle endpoint security challenges, access the full report. http://p.sf.net/sfu/symantec-dev2dev _______________________________________________ Luarocks-developers mailing list Luarocks-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/luarocks-developers