Operating System - HP-UX
1834454 Members
2909 Online
110067 Solutions
New Discussion

php extension module gd.sl

 
Bogajewski
New Member

php extension module gd.sl

Hi,

Searching for help in order to get the php gd extension running.

working on HPUX 11i with following depots amongst others installed:

hpuxwsAPACHE - A.2.0.52.00
gd - 2.0.33

GD is running properly, the gd library present at /usr/local/lib works fine; if used with any other application. any dependencies on other libraries are fulfilled, for example:

myhost:/usr/local/lib # ldd libgd.sl
...
/usr/local/lib/libpng12.sl => /usr/local/lib/libpng12.sl
...


However, the problem concerns the php extension module gd.sl, located in /opt/hpws/apache/php/lib/php/extensions. At the moment my php application (ZABBIX) don’t display any PNG Images. Checking the dependencies of this library explains probably why:

myhost:/opt/hpws/apache/php/lib/php/extensions # ldd gd.sl
...
/usr/lib/dld.sl: Can't find path for shared library: libpng.sl.2
...

the same problem with libt1.sl.4:
/usr/lib/dld.sl: Can't find path for shared library: libt1.sl.4

So in my opinion the version 2 of libpng and 4 of libt1 is needed. The only problem I have is - there is no such version released yet.

What is my problem here? Anyone an idea? Any help would be highly appreciated.

Thanks!
5 REPLIES 5
Steve Steel
Honored Contributor

Re: php extension module gd.sl

Hi


Look for
/usr/local/lib/libpng.sl

If there soft link it


ln -s
/usr/local/lib/libpng.sl /usr/local/lib/libpng.sl.2


Same with others


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Bogajewski
New Member

Re: php extension module gd.sl

Hi Steve,

thanks for your reply.

Your idea sounds good, but unfortunately it does not work. ldd reports no errors, but the application does not runs and system log reports a version conflict with this libraries.

Is there anywhere a place where i have to specify the version of library expected?

Anything strange.
Ermin Borovac
Honored Contributor

Re: php extension module gd.sl

PHP admin guide in /opt/hpws/apache/hpws_docs/php.admin.guide states that gd.sl requires the following libraries

libjpeg version 6b
libpng version 1.0.11
libxpm version 3.4k
libfreetype version 2.1.2
t1lib version 1.3.1

Some of the libraries can be downloaded from hpux porting web site (hpux.cs.utah.edu). For others (e.g. libpng) you will need to get the source and compile it yourself.

If you have access to technical knowledge base check the following document.

Date: 10/19/04
Document description: Configuring and Testing PHP image libraries w HP Apache 2.0
Document id: MJFKBRC00015829
Bogajewski
New Member

Re: php extension module gd.sl

Thanks a lot Ermin!

after installation of libpng 1.0.17 from the source i got my problem solved.

i dont understand this, since a newer version was allready installed; i dont understand the versioning of libpng as well, since there is now libnpg.sl.3 (version 3?) present. after linking this lib on libpng.sl.2 my application start running.

Anyway, Thanks again.
Bogajewski
New Member

Re: php extension module gd.sl

installation of libpng 1.0.17