----- Original Message ----- From: "Pete Parker" <pet.pete...@gmail.com>


I've been having some trouble installing Inline::Lua on my Leopard
system.

I've no experience with either Lua or Inline::Lua

# perl Makefile.PL INC=-I/opt/local/include LIBS=-L/opt/local/lib

Looking at the Inline::Lua source files, it seems that the directory you specified with the '-I' switch needs to be the directory that contains lua.h, lualib.h and lauxlib.h. (I'll assume that those files are in /opt/local/include as you've specified.) And the directory you specified with the '-L' switch needs to be the directory that contains the lua library(s). (I'll assume that you got that right, too - and that there's only one lua library, and it's called 'liblua.a'.)

The command that you run would then need to be:
# perl Makefile.PL INC=-I/opt/local/include LIBS="-L/opt/local/lib -llua"

That is, all I've done differently is to add the '-llua' argument to LIBS. If there are, in fact, additional lua libraries that need to be linked in, then they would also have to be specified:

# perl Makefile.PL INC=-I/opt/local/include LIBS="-L/opt/local/lib -llua -llualib"

It looks to me that should work fine with the Makefile.PL that ships with the source (so long as you've got the locations right, and all of the lua libs specified correctly).

Cheers,
Rob

Reply via email to