On Fri, April 21, 2006 4:20 am, Ko Ko wrote: > I am a newbie to libPDF and I am actually wanted to install it. When > I look at the installation manual from the website it asked me to > recompile with libPDF library directory. But if possible I don't > wish to recompile the whole of PHP because I am using Suse Linux and > PHP is packaged together with it. And I realize Suse works quite > differently from Red Hat and not very used to it. Once I recompile a > new PHP, I will be quite lost how to go on with it. Is there anyway > I can easily add on this libPDF to PHP without recompiling. And I > wonder where can I find this libpdf_php.so file. I only found > libpdf.so file on my suse after installing libpdf to it. > Help would be much appreciated. Thanks alot.
libpdf_php.so file is the one that re-compiling with-libpdf-dir would give you, and it's the "bridge" between libpdf.so (libPDF) and PHP itself. SuSe *might* have a libpdf_php package that you can just install. But there are licensing issues with libpdf, so maybe not. Compiling PHP from source is not super tricky, but here are some tips to make it less painful. #1. For all the extensions in your <?php phpinfo();?> go ahead and install their "-devel" packages with SuSe's package manager. E.G., if you use GD, you already have "gd-2.0.x.whatever.rpm" installed. But you want to seek out and add "gd-devel-2.0.x.whatever.rpm" Doing this puts all the "header" files that PHP source needs on your computer. #2. If there are WAY too many extensions in your default SuSe phpinfo() output, consider skipping the ones you never use anyway, and have no plans to use for the next 12-24 months. Once you've done that, downloading PHP source and compiling is usually pretty easy, and you can just follow the instructions. One option to all this is that after you've done all this, instead of doing the "make install" in PHP source, you could just COPY the libpdf_php.so from libs to your extension directory, and then change php.ini to enable it. WARNING: You will have to MATCH your PHP version with SuSe *exactly* to do all this. If you try to upgrade, you may find yourself needing to upgrade other packages as well, and SuSe may not have packages available, and then you have to compile something else from source as well. That could be a 5-minute painless task, or it could be a weeks-long exercise in frustration as more and more version dependencies surface. -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php