missing libph.so.1

After installing patch B ordinary user can’t run photon because the system
“Can’t find libph.so.1”.

It’s okay for root though.

I’m not sure what to do, libph.so.1 is there in all kinds of places.

I thought I saw this crop on usenet before, but I can’t find it now…

Dana


Dana Echtner \ Real-Time Systems Administrator
dana@ece.concordia.ca / ECE, Concordia University, Montreal, Canada

rw-rw-rw-: The file protection of the beast

Hi Dana,

It looks like the LD_LIBRARY_PATH was not export for your users.
Run ‘env’ (when logged in as a user who cannot run photon) to see if ‘/usr/photon/lib’
is in the LD_LIBRARY_PATH. If its not then use the export command to add it to the library path.

Regards,

Joe

Dana Echtner <dana@ece.concordia.ca> wrote:

After installing patch B ordinary user can’t run photon because the system
“Can’t find libph.so.1”.

It’s okay for root though.

I’m not sure what to do, libph.so.1 is there in all kinds of places.

I thought I saw this crop on usenet before, but I can’t find it now…

Dana


Dana Echtner \ Real-Time Systems Administrator
dana@ece.concordia.ca > / ECE, Concordia University, Montreal, Canada

rw-rw-rw-: The file protection of the beast

Hardware Support Account wrote:


It looks like the LD_LIBRARY_PATH was not export for your users.
Run ‘env’ (when logged in as a user who cannot run photon) to see if
‘/usr/photon/lib’ is in the LD_LIBRARY_PATH. If its not then use the
export command to add it to the library path.

That sounds really silly - libph.so.1 is available in /lib, are you
telling me that /lib is not searched by default?

After some more looking around I think the problem is with the package
manager. Look at this:

bash-2.04$ /opt/bin/ssh
Could not find library libsocket.so.1

bash-2.04$ find / -name libsocket.so.1
/lib/libsocket.so.1
/x86/lib/libsocket.so.1
/pkgs/base/qnx/os/drivers-2.1.1/x86/lib/libsocket.so.1

bash-2.04$ export LD_LIBRARY_PATH=/pkgs/base/qnx/os/drivers-2.1.1/x86/lib/

bash-2.04$ /opt/bin/ssh
Usage: /opt/bin/ssh [options] host [command]
Options:
-l user Log in using this user name.
-n Redirect input from /dev/null.

[ etc… (ssh works) ]

bash-2.04$ export LD_LIBRARY_PATH=/lib

bash-2.04$ /opt/bin/ssh
Could not find library libsocket.so.1

bash-2.04$ export LD_LIBRARY_PATH=/x86/lib

bash-2.04$ /opt/bin/ssh
Could not find library libsocket.so.1

As an unpriviledged user, I can use the libraries only directly from the
file system, not through the package manger.

Also look at this:

bash-2.04$ pwd
/pkgs/repository

bash-2.04$ ls -l
total 24
drwx–x— 3 320 120 2048 May 11 10:50 bsd
drwx–x— 11 327 120 2048 May 11 10:49 gnu
drwx–x— 4 root root 2048 May 11 10:48 id
drwx–x— 3 root root 2048 May 11 10:48 parse
drwx–x— 11 327 120 2048 May 11 10:49 public
drwx–x— 14 369 120 2048 Aug 22 2000 qnx

Users have no priviledges here. Is this on pupose?

I think I’m just going to re-install this machine and pray.

Dana


Dana Echtner \ Real-Time Systems Administrator
dana@ece.concordia.ca / ECE, Concordia University, Montreal, Canada

rw-rw-rw-: The file protection of the beast

Dana Echtner wrote:


I think I’m just going to re-install this machine and pray.

That appears to have fixed it for now…

Dana

Dana Echtner \ Real-Time Systems Administrator
dana@ece.concordia.ca / ECE, Concordia University, Montreal, Canada

rw-rw-rw-: The file protection of the beast