Hi all,

since I am not a Linux system guru, just the PHP programmer, I would need some help from somebody experienced. I am facing the problem (or rather the task) to compile new php version with gd support under RedHat Linux 9. I downloaded all sources I needed (jpeg support, png support, newest gd-2.0.15 and newest php-4.3.3.). First I compiled jpeg libraries. As the result I got some binary files in /usr/local/bin and library (so file) in /usr/local/bin. Then I configured pg with jpeg support:

./configure --with-jpeg-dir=/usr/local/lib

and pg really recoginzed jpeg library and was intalled without the problems (again I got lib files in /usr/local/lib which are libpg.so, libpg.so.2, libpg.so.2.0.0). And here come some questions:

  1. Can I use libpg.so file as the external php module (with extension=libpg.so option in php.ini)? It's not working this way, that's why I am asking. It would be great if somebody could explain both scenarios: building external gd library and compiling it within php.

  2. Before I can use jpeg support libraries by pg configure script, jpeg libraries must be compiled and installed first. Is that right, or I can use source code for jpeg support, while compiling gd?

  3. If gd is configured and installed with jpeg support, do I need to add --with-jpeg-dir again while configuring php?

  4. If php is succesfully installed do I need to recompile Achache server?

I will appreciate any explanations.
Thanks
esemi

    Write a Reply...