How can I install PDFlib for PHP on Ubuntu?

Kira

New member
I'm trying to install PDFlib for PHP on my PC, but it's not working.
The OS is Ubuntu 11.10 (the latest version) and the server is LAMPP.

I downloaded PDFlib for PHP (Linux / Intel IA32, because my processor is "Intel Centrino") from here:
http://pdflib.jp/product/download/pdflib.html#pdflib-archives

After extraction, I found these 5 folders:

php-510
php-520
php-520mt
php-530
php-530mt

... here 'mt' stands for "Multi-Threading server" and my XAMPP shouldn't be a multi-threading server (I'm not sure, though). The PHP version is:

php -v
PHP 5.3.6-13ubuntu3.2 with Suhosin-Patch (cli) (built: Oct 13 2011 23:19:13)
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies

... so I chose php-530, and copied "libpdf_php.so."

According to phpinfo(), the extension_dir is
/opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/

I pasted "libpdf_php.so" under it.

In /opt/lampp/etc/php.ini, I appended a line:

extension=libpdf_php.so

I saved the php.ini and restarted XAMPP. However, I get the following warning:

Warning: PHP Startup: Unable to load dynamic library '/opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/libpdf_php.so' - /opt/lampp/lib/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /usr/lib/i386-linux-gnu/libstdc++.so.6) in Unknown on line 0

Which version of GCC do I have?

gcc -v
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-linux-gnu/4.6.1/lto-wrapper
Target: i686-linux-gnu
configuration setting: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.6.1-9ubuntu3' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++,go --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin --enable-objc-gc --enable-targets=all --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=i686-linux-gnu --host=i686-linux-gnu --target=i686-linux-gnu
Thread Model: posix
gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3)

... Version 4.6.1, which is newer than 4.2.0.

What should I do next? I have no clue.
Please help me.
I can give you more info, if you need.
Thank you in advance.
 
Back
Top