Subject: | Two howtos for installing Inline::Lua |
A fine module, but it has some install issues.
Two howtos that worked for me:
---------- /usr/bin/perl 5.8.8 and /usr/bin/lua 5.1.2 both from RHEL5.4
yum install lua perl-Inline
cd /tmp
wget http://search.cpan.org/CPAN/authors/id/V/VP/VPARSEVAL/Inline-
Lua-0.04.tar.gz
tar zxf Inline-Lua-0.04.tar.gz
cd Inline-Lua-0.04
/usr/bin/perl Makefile.PL LIBS="-L -llua"
make test && make install
/usr/bin/perl -le 'use Inline Lua => "function pow(a,b) return a^b
end"; print pow(2,8)'
---------- /usr/local/bin/perl 5.10.0 compiled from source and /usr/bin/
lua from RHEL5.4
yum install lua
/usr/local/bin/cpan Inline
cd /tmp
wget http://search.cpan.org/CPAN/authors/id/V/VP/VPARSEVAL/Inline-
Lua-0.04.tar.gz
tar zxf Inline-Lua-0.04.tar.gz
cd Inline-Lua-0.04
/usr/local/bin/perl Makefile.PL LIBS="-L -llua"
/usr/local/bin/perl -i -ple 's,/usr/local/lib$,/usr/lib64,' Makefile
#if not, try removing 64
make test && make install
/usr/local/bin/perl -le 'use Inline Lua => "function pow(a,b) return
a^b end"; print pow(2,81)'