On Mon, Aug 15, 2011 at 9:45 PM, <[email protected]> wrote: > Hisham wrote: >> Please give the attached rockspec a try. I had no problems >> with the Lua include dir, but let me know if you need to add >> "$(LUA_INCDIR)" in there somewhere. > > An elegant rockspec :-) It almost works for me, but ./configure says: > checking lua.h usability... no > checking lua.h presence... no > checking for lua.h... no > checking lualib.h usability... no > checking lualib.h presence... no > checking for lualib.h... no > checking lua.h version is in range 501 <= v < ... no > configure: error: in `/home/ports/rrthomas-lcurses-ea5f3a1': > configure: error: lua.h version not in desired range > See `config.log' for more details > and config.log says: > LUA_INCLUDE='' > > But with: > CPPFLAGS="-I /usr/include/lua5.1" > export CPPFLAGS > now ./configure finds lua.h and lualib.h and everything works :-). > config.log still says: > LUA_INCLUDE='' > > I'm running up-to-date debian stable, with everything installed > by aptitude; so you might expect autogen.sh and ./configure to > get everything right. But Reuben Thomas notes in README: > For example, on Debian or Ubuntu: <== NB. > CPPFLAGS=/usr/include/lua5.1 ./configure etc... > so there must be some debian-ubuntu-specific problem, perhaps > at the lua package-level, perhaps in autogen.sh or configure. > Maybe an ugly workaround in the rockspec would be useful, > like testing for the existence of /usr/include/lua5.1/ ?
How about the one attached? > If this ends up finding a home on luarocks.org and Reuben > agrees, I might even volunteer to write a doc page... Cool. I'm trying to do my part. :) -- -- Hisham http://hisham.hm/ - http://colorbleed.com.br/
lcurses-6-2.rockspec
Description: Binary data
------------------------------------------------------------------------------ uberSVN's rich system and user administration capabilities and model configuration take the hassle out of deploying and managing Subversion and the tools developers use with it. Learn more about uberSVN and get a free download at: http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________ Luarocks-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/luarocks-developers
