in reply to Re: Problems installing PHP::Interpreter
in thread Problems installing PHP::Interpreter
Compile the sources an install it. The right embedded libphp5.so library is found in /usr/local/embedphp/lib. Get the PHP::Interpreter sources and apply a patch to the Makefile.PL: patch:sudo ./configure --prefix=/usr/local/embedphp --with-config-file-path= +/usr/local/embedphp/etc --with-config-file-scan-dir=/usr/local/embedp +hp/etc/php.d --enable-embed --enable-maintainer-zts --enable-dbase
This links the libphp5.so with a static path. The following commands create the Makefile and install the Module correctly:87a88 > my $static_library_path = '-Wl,-rpath,'.catdir $prefix, "lib"; 88a90 > push @lddlflags, $static_library_path;
I hope this will fix all problems. MfGsudo patch --verbose --backup Makefile.PL < patch sudo PHP_CONFIG="/usr/local/embedphp/bin/php-config" perl Makefile.PL sudo PHP_CONFIG="/usr/local/embedphp/bin/php-config" make sudo make test sudo make install
|
|---|