I have solved the problem by installing a seperate php-instance. This is usefull in the case, when you need a normal php-installation.

Get the source for php version 5.1.6, because the actual version generates some troubles.

Configure the sources with the following command:
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
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:
87a88 > my $static_library_path = '-Wl,-rpath,'.catdir $prefix, "lib"; 88a90 > push @lddlflags, $static_library_path;
This links the libphp5.so with a static path.

The following commands create the Makefile and install the Module correctly:
sudo 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
I hope this will fix all problems.

MfG

In reply to Re^2: Problems installing PHP::Interpreter by Anonymous Monk
in thread Problems installing PHP::Interpreter by astroboy

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.