in reply to use PHP::Interpreter throws undefined symbol: zend_ce_traversable
Note (probably harmless): No library found for -lphp5This is not harmless, in fact, PHP::Interpreter won't work unless the php library (i.e. /usr/local/lib/libphp5.so on Linux) is found. I think part of the problem is that the stock php is not configure'd with the --enable-embed option:
Download the php sources, compile and install. php will by default install itself into /usr/local on a Linux system, and the stock Makefile.PL assumes both the php header files and the php libraries can be found there../configure --enable-embed
The README contains build instructions (which BTW works with php 5.2.x also):
Checkpoints:1) Download the PHP sources from php.net 2) tar zxf php-5.1.x.tar.gz 3) cd php-5.1.x 4) ./configure --enable-embed [any other options you want] 5) make 6) make install 7) install PHP::Interpreter
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: use PHP::Interpreter throws undefined symbol: zend_ce_traversable
by Anonymous Monk on Dec 02, 2008 at 21:02 UTC | |
by Anonymous Monk on Dec 17, 2008 at 22:01 UTC |