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/ ?
If this ends up finding a home on luarocks.org and Reuben
agrees, I might even volunteer to write a doc page...
Peter Billam
http://www.pjb.com.au [email protected] (03) 6278 9410
"Was der Meister nicht kann, vermöcht es der Knabe, hätt er
ihm immer gehorcht?" Siegfried to Mime, from Act 1 Scene 2
---------------------------------------------------------
#! /usr/bin/lua
require 'curses' -- https://github.com/rrthomas/lcurses
-- should detect number of args, like Unified Functions in Perl Curses
function addstr(s) return curses.stdscr():addstr(s) end
function getch() return curses.stdscr():getch() end
function move(y,x) return curses.stdscr():move(y,x) end
initscr = curses.initscr -- not so useful; initscr only gets called once
curses.initscr(); curses.stdscr():keypad()
a = {}; for k in pairs(curses) do a[#a+1]=k end
move(20,15); addstr('print out curses table (y/n) ? ')
c = getch() -- c is numeric, like the curses.KEY_* consts
ch = string.char(c) -- else convert
curses.endwin()
if ch == 'y' then
table.sort(a)
for i,k in ipairs(a) do print(k..' '..type(curses[k])) end
print([[For a list of the curses.stdscr():*() functions try:
grep EWF /wherever/rrthomas-lcurses-ea5f3a1/lcurses.c | sort]])
end
------------------------------------------------------------------------------
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