- or download this
$ perl -wle 'use PHP::Interpreter'
Can't load '/usr/local/lib/perl/5.8.8/auto/PHP/Interpreter/Interpreter
+.so' for module PHP::Interpreter: /usr/local/lib/perl/5.8.8/auto/PHP/
+Interpreter/Interpreter.so: undefined symbol: zend_ce_traversable at
+/usr/lib/perl/5.8/DynaLoader.pm line 225.
at -e line 1
Compilation failed in require at -e line 1.
BEGIN failed--compilation aborted at -e line 1.
- or download this
$ php5 -v
PHP 5.2.4-2ubuntu5 with Suhosin-Patch 0.9.6.2 (cli) (built: Feb 27 200
+8 20:43:54)
...
Linux foo 2.6.24-16-generic #1 SMP Thu Apr 10 13:23:42 UTC 2008 i686 G
+NU/Linux
$ perl -v
This is perl, v5.8.8 built for i486-linux-gnu-thread-multi
- or download this
26c26
< my @incdirs = map { s/^-I//g; chomp; $_ } split(/ /, $inc);
---
> my @incdirs = map { s/^-I//g; chomp; $_ } grep { /^-I/ } split(/ /
+, $inc);
- or download this
$ perl Makefile.PL
using php version 5.2.4-2ubuntu5
...
Found /usr/include/php5/main/php_main.h
Note (probably harmless): No library found for -lphp5
Writing Makefile for PHP::Interpreter
- or download this
$ make
cp lib/PHP/Interpreter/Resource.pm blib/lib/PHP/Interpreter/Resource.p
+m
...
Manifying blib/man3/PHP::Interpreter::Class.3pm
Manifying blib/man3/PHP::Interpreter.3pm
$
- or download this
$ sudo make install
Installing /usr/local/lib/perl/5.8.8/auto/PHP/Interpreter/Interpreter.
+so
Files found in blib/arch: installing files in blib/lib into architectu
+re dependent library tree
Writing /usr/local/lib/perl/5.8.8/auto/PHP/Interpreter/.packlist
Appending installation info to /usr/lib/perl/5.8/perllocal.pod