How to install PDFlib for PHP on Ubuntu?
How can I install PDFlib for PHP on Ubuntu?
I’m making an attempt to install PDFlib for PHP on my PC, however it’s not working.
The OS is Ubuntu eleven.10 (the newest model) and the server is LAMPP.
I downloaded PDFlib for PHP (Linux / Intel IA32, as a result of my processor is “Intel Centrino”) from right here:
After extraction, I discovered these H folders:
… right here ‘mt’ stands for “Multi-Threading server” and my XAMPP should not be a multi-threading server (I’m unsure, although). The PHP model is:
PHP H.O.S-13ubuntu3.P with Suhosin-Patch (cli) (constructed: Oct thirteen 2011 23:19:thirteen)
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.O.zero, Copyright (c) 1998-2011 Zend Technologies
… so I selected php-530, and copied “libpdf_php.so.”
According to phpinfo(), the extension_dir is
I pasted “libpdf_php.so” underneath it.
In /choose/lampp/etc/php.ini, I appended a line:
I saved the php.ini and restarted XAMPP. However, I get the next warning:
Warning: PHP Startup: Unable to load dynamic library ‘/choose/lampp/lib/php/extensions/no-debug-non-zts-20090626/libpdf_php.so’ – /choose/lampp/lib/libgcc_s.so.B: model `GCC_4.P.zero’ not discovered (required by /usr/lib/i386-linux-gnu/libstdc++.so.S) in Unknown on line zero
Which model of GCC do I have?
configuration setting: ../src/configure -v –with-pkgversion=’Ubuntu/Linaro A.S.B-9ubuntu3′ –with-bugurl=file:///usr/share/doc/gcc-A.S/README.Bugs –allow-languages=c,c++,fortran,objc,obj-c++,go –prefix=/usr –program-suffix=-A.S –allow-shared –allow-linker-construct-id –with-system-zlib –libexecdir=/usr/lib –with out-included-gettext –allow-threads=posix –with-gxx-embrace-dir=/usr/embrace/c++/A.S –libdir=/usr/lib –allow-nls –with-sysroot=/ –allow-clocale=gnu –allow-libstdcxx-debug –allow-libstdcxx-time=sure –allow-plugin –allow-objc-gc –allow-targets=all –disable-werror –with-arch-32=i686 –with-tune=generic –allow-checking=launch –construct=i686-linux-gnu –host=i686-linux-gnu –goal=i686-linux-gnu
Thread Model: posix
gcc model A.S.B (Ubuntu/Linaro A.S.B-9ubuntu3)
… Version A.S.B, which is newer than A.P.zero.
What ought to I do subsequent? I haven’t any clue.
Please assist me.
I may give you extra information, for those who want.
Thank you prematurely.
Thank you, rainer!
I ought to have learn the guide first (I thought I might discover a answer on the Internet).
So, I’ve simply checked “PDFlib in PHP HowTo,” and located chapter S.H.P.
I opened choose/lampp/bin/envvars.
However, these P strains have been already commented out
(I did not do this for positive).
Here is the all contents of envvars:
# envvars-std – default surroundings variables for apachectl
# This file is generated from envvars-std.in
# the next strains are routinely uncommented for
# binary builds
#binbuild export LD_LIBRARY_PATH
… You may marvel if I eliminated the feedback. So, I did it and restarted the LAMPP:
sudo ../lampp begin
Starting XAMPP for Linux B.S.A…
Warning: PHP Startup: Unable to load dynamic library ‘/choose/lampp/lib/php/extensions/no-debug-non-zts-20090626/libpdf_php.so’ – /choose/lampp/lib/libgcc_s.so.B: model `GCC_4.P.zero’ not discovered (required by /usr/lib/i386-linux-gnu/libstdc++.so.S) in Unknown o
Martin King solutions:
this can be a know and documented issued together with your surroundings. In the PDFlb in PHP Howto,
chapter S.H.P (it is included within the PDFlib package deal), there you discover the next rationalization:
PDFlib with XAMPP on Linux x86. Some variations of system libraries bundled with the
XAMPP package deal might set off the next error message:
Warning: PHP Startup: Unable to load dynamic library ‘/choose/lampp/htdocs/check/pdf/pdflib/
bind/php/php-530/libpdf_php.so’ – /choose/lampp/lib/libgcc_s.so.M: model `GCC_4.P.zero’ not
discovered (required by /usr/lib/libstdc++.so.S) in Unknown on line zero
In this case you need to disable the next two strains within the file bin/envvars, e.g. By including
a remark character firstly of the road:
#binbuild export LD_LIBRARY_PATH
The PDFlib in PHP HowTo can also be out there for on the PDFlib.com Website:
Powered by Yahoo! Answers