Operating System - HP-UX
1748279 Members
4174 Online
108761 Solutions
New Discussion юеВ

Re: php extension gd.sl.: libt1.sl.4 missing

 
mschulz67
Occasional Advisor

php extension gd.sl.: libt1.sl.4 missing

Hello *,
I'd like to run the gd commands in php. After installing the current versions of all tools mentioned in http://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=HPUXWSATW218 in the gd.sl section I still have an unresolved library:

ldd -s -v /opt/hpws/apache/php/lib/php/extensions/gd.sl
find library=libt1.sl.4; required by /opt/hpws/apache/php/lib/php/extensions/gd.sl
search path=/usr/lib:/hpapache/apinteg/apinteg_hpws_2.17_1123_IA_64/CLO/Components/MOD_PHP5/OpenSourceLibs/ia64_64/lib (RUNPATH)
trying path=/usr/lib/libt1.sl.4
trying path=/hpapache/apinteg/apinteg_hpws_2.17_1123_IA_64/CLO/Components/MOD_PHP5/OpenSourceLibs/ia64_64/lib/libt1.sl.4
search path=/usr/lib/hpux64 (default)
trying path=/usr/lib/hpux64/libt1.sl.4
Unable to find library 'libt1.sl.4'.

Unfortunately libt1.sl.4 doesn't come with the installation of t1lib (neither an swlist nor an find comes up with this file). The installation of t1lib exited without any errors or warnings, I checked all dependencies, they came up clean.

Does anyone have an idea where I went wrong?
8 REPLIES 8
Steven E. Protter
Exalted Contributor

Re: php extension gd.sl.: libt1.sl.4 missing

Shalom,

the variable SHLIB_PATH is normally used to deal with these issues.

Find and install the library on your system, set SHLIB_PATH correctly and try again.

The library should be delivered in depot form.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
mschulz67
Occasional Advisor

Re: php extension gd.sl.: libt1.sl.4 missing

That's exactly my problem: The library doesn't existy on the system after installing (seemingly) all neccessary depots.

Installed files are:

swlist -l file t1lib
# Initializing...
# Contacting target "serv1722"...
#
# Target: serv1722:/
#

# t1lib 5.1.0 t1lib
# t1lib.t1lib-RUN
/usr/local/bin/type1afm
/usr/local/bin/xglyph
/usr/local/doc/t1lib/Changes
/usr/local/doc/t1lib/HPUX.Install
/usr/local/doc/t1lib/LICENSE
/usr/local/include/t1lib.h
/usr/local/include/t1libx.h
/usr/local/lib/hpux32/libt1.a
/usr/local/lib/hpux32/libt1.la
/usr/local/lib/hpux32/libt1.so
/usr/local/lib/hpux32/libt1x.a
/usr/local/lib/hpux32/libt1x.la
/usr/local/lib/hpux32/libt1x.so
/usr/local/share/t1lib/doc/t1lib_doc.pdf
/usr/local/share/t1lib/t1lib.config


The library in question is libt1.sl.4.

If I had the file anywhere on the system it'd be no problem accessing it - alas, it doesn't exist.

Any ideas? Google has none...
Jorge Canto
Occasional Advisor

Re: php extension gd.sl.: libt1.sl.4 missing

Hello mschulz67

Did you fix the problem?
I have the same problem, i want to activate the GD module in PHP but i get the next error in the php.log .....

[14-Aug-2008 11:46:22] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/hpws/apache/php/lib/php/extensions/gd.sl' - Unable to find library 'libt1.sl'. in Unknown on line 0

Thank you

Olivier Masse
Honored Contributor

Re: php extension gd.sl.: libt1.sl.4 missing

I recently had the same problem, got fed up, opened a call at the ITRC and they told me that at least one release of HPWS had that problem. Updating to the most recent security patch of Apache fixed the issue.

Good luck
Jorge Canto
Occasional Advisor

Re: php extension gd.sl.: libt1.sl.4 missing

Thank you Olivier, i tried ITRC, i uploaded my inventory.xml and none HPWS patch is available for my system =(.

We bought the server recently
mschulz67
Occasional Advisor

Re: php extension gd.sl.: libt1.sl.4 missing

Jorge: No, I didn't... Since the GD-lib is more of a nice-to-have with my application than a must-have I've decided I've wasted enough time trying to get the GD running. But I'll try the Idea with the newest patches on a test system (I don't trust fresh patches...) when I've got some free time on my hands.
If it works at my site I'll describe what I did to make it tick.
mschulz67
Occasional Advisor

Re: php extension gd.sl.: libt1.sl.4 missing

Ok, I've had a bit of time on my hands and tried again, this time on a box running 11.31
After much web searching and system checking I finally saw that most of the libraries are 32-bit, gd.lib (and some other) is 64-bit which obviously bodes no good.
As I didn't find any 64-bit depots and are not so bored with my job and my life to try to compile this dependency hell into running I give up on HP-UX for this and migrate this to Linux (which I fortunately can use instead).
Anyone who find's the neccessary and consistent depots or needs the gd-lib on HP-UX badly enough to compile everything is invited to post the results here...
Shinji Teragaito_1
Respected Contributor

Re: php extension gd.sl.: libt1.sl.4 missing

Hello,

I'd like to recommend you to use the followings:

- HP-UX Apache-based Web Server v.2.20 (Apache 2.0.59 base) or later
- HP-UX Apache-based Web Server v.3.0 (Apache 2.2.8 base) or later

You can save your time to compile all of things in order to use PHP
extensions because they are linked to archive libraries (NOTE: oci8
is an exception).

% swlist | grep -e HPUX11i -e Apache
HPUX11i-BOE B.11.31.0809 HP-UX Base Operating Environment
hpuxws22Apache B.2.2.8.01.01 HP-UX Apache-based Web Server
hpuxwsApache B.2.0.59.07 HPUX Apache Web Server
% ldd /opt/hpws/apache/php/lib/php/extensions/gd.sl
libc.so.1 => /usr/lib/hpux64/libc.so.1
libdl.so.1 => /usr/lib/hpux64/libdl.so.1
% ldd /opt/hpws22/apache/php/lib/php/extensions/gd.sl
libX11.so.1 => /usr/lib/hpux64/libX11.so.1
libm.so.1 => /usr/lib/hpux64/libm.so.1
libc.so.1 => /usr/lib/hpux64/libc.so.1
libdl.so.1 => /usr/lib/hpux64/libdl.so.1
%

Hope this helps you !!

Shinji