Yes, the lucky guys who have yum available just type
yum install php-embedded
Although you get the /usr/lib/libphp5.so immediately with this way, I ran into the problem there was another symbol missing for "dbase".
So I compiled the latest version of PHP as suggested above on my notebook with additionally
./configure --enable-embed --enable-dbase
Then, all you need to copy to another machine is the fresh created libphp5.so into /usr/lib. This binary was fully portable. compiled on Fedora 9, ran perfect on Fedora 5 as well.
This shit runs amazingly fast. I'm using this wrapper for creating nice-looking PDFs with PHP's fpdf. Didn't see an easy-to-use PDF interface for Perl so far.
So to conclude this second recipe and maybe increase the Google ranking for people who're seeking such answers here's the complete procedure that worked on 3 servers:
1.) yum install php-devel
2.) Download and compile the latest release of PHP from php.net
./configure --enable-embed --enable-dbase
make
make test
su -
make install
You may compile this bundle on your Notebook for example (Guess we're
talking about Linux on all systems ;). All you'll need later is the
file "libphp5.so". So for future distributing the functionality of
PHP::Interpreter you could omit this point.
3.) Then, cd /usr/lib --> copy "libphp5.so" here.
4.) force install PHP::Interpreter
Have fun!
--reto
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.