Operating System - HP-UX
1834015 Members
2503 Online
110063 Solutions
New Discussion

Re: Shared library problem running command line PHP delivered with hpuxwsApache

 
SOLVED
Go to solution
Simon Hargrave
Honored Contributor

Shared library problem running command line PHP delivered with hpuxwsApache

Hello, I have installed Apache from HPWS, version as follows: -

hpuxwsApache A.2.0.58.01 HP-UX Apache-based Web Server

On this I have installed some Wiki software that requires PHP - this is working fine.

However there are some tools (indexing etc) that require to use the php binary from the command line. If I try and run /opt/hpws/apache/php/bin/php I get the error: -

% ./php
/usr/lib/dld.sl: Can't open shared library: /CLO/BUILD_ENV/usr/lib/librt.2
/usr/lib/dld.sl: No such file or directory


ldd on the binary confirms this: -

% ldd php
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/lib/libdld.2 => /usr/lib/libdld.2
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/lib/libpthread.1 => /usr/lib/libpthread.1
/usr/lib/libdld.2 => /usr/lib/libdld.2
/usr/lib/libnsl.1 => /usr/lib/libnsl.1
/usr/lib/libxti.2 => /usr/lib/libxti.2
/usr/lib/libm.2 => /usr/lib/libm.2
/usr/lib/dld.sl: Can't open shared library: /CLO/BUILD_ENV/usr/lib/librt.2
/usr/lib/dld.sl: No such file or directory

I can get this to run by manually creating the /CLO subtree and symlinking to /usr/lib/librt.2 but this is obviously a cludge.

How to I get this to work properly? I've tried SHLIB_PATH etc but it seems that it is expecting a hard-coded library location??? It obviously works from within Apache?
3 REPLIES 3
Simon Hargrave
Honored Contributor

Re: Shared library problem running command line PHP delivered with hpuxwsApache

Okay I've found that I can enable the SHLIB_PATH working with: -

chatr +s enable /opt/hpws/apache/php/bin/php

Does seem like the release is broken though! I will raise a call.
Dennis Handly
Acclaimed Contributor
Solution

Re: Shared library problem running command line PHP delivered with hpuxwsApache

>Does seem like the release is broken though! I will raise a call.

I have already already reported this in CR JAGag29876. And in this thread:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1092000
Simon Hargrave
Honored Contributor

Re: Shared library problem running command line PHP delivered with hpuxwsApache

Good man :D