Dear,
A customer needs a PHP PostScript (PS) extension for generating some stuff.
I found a PECL extension that should work;
http://pecl.php.net/package/ps
But i can't get this one to work, and receive the following error;
The error indicates that the pslib is not installed, but i installed this one using YUM (EPEL repository) and the libs are located in /usr/lib and /usr/lib64 but the PECL installer won't do this.
Some server specs;
CentOS 5 x64
PHP 5.3.21 CLI
pslib-0.4.5-2.el5.x86_64 and pslib-0.4.5-2.el5.i386 installed
pslib-devel-0.4.5-2.el5.x86_64 and pslib-devel-0.4.5-2.el5.i386 installed
What can I do to install the PECL extension?
Thanks in advance!
A customer needs a PHP PostScript (PS) extension for generating some stuff.
I found a PECL extension that should work;
http://pecl.php.net/package/ps
But i can't get this one to work, and receive the following error;
Code:
[root@server5 ~]# pecl install ps
downloading ps-1.3.6.tgz ...
Starting to download ps-1.3.6.tgz (635,832 bytes)
.....................done: 635,832 bytes
5 source files, building
running: phpize
Configuring for:
PHP Api Version: 20090626
Zend Module Api No: 20090626
Zend Extension Api No: 220090626
path to pslib installation? : /usr/lib64
building in /root/tmp.pear/temp/pear-build-rootbrYi66/ps-1.3.6
running: /root/tmp.pear/temp/ps/configure --with-ps=/usr/lib
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /usr/local
checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20090626
checking for PHP installed headers prefix... /usr/local/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking for ps support... yes, shared
checking for ps files in default path... found in /usr/local
found in /usr
checking for PS_begin_pattern in -lps... no
configure: error: wrong pslib lib version or lib not found
ERROR: `/root/tmp.pear/temp/ps/configure --with-ps=/usr/lib' failed
The error indicates that the pslib is not installed, but i installed this one using YUM (EPEL repository) and the libs are located in /usr/lib and /usr/lib64 but the PECL installer won't do this.
Some server specs;
CentOS 5 x64
PHP 5.3.21 CLI
pslib-0.4.5-2.el5.x86_64 and pslib-0.4.5-2.el5.i386 installed
pslib-devel-0.4.5-2.el5.x86_64 and pslib-devel-0.4.5-2.el5.i386 installed
What can I do to install the PECL extension?
Thanks in advance!
Last edited: