LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Smarter way to make applications aware of libraries installed by seamonkey-solibs (https://www.linuxquestions.org/questions/slackware-14/smarter-way-to-make-applications-aware-of-libraries-installed-by-seamonkey-solibs-907944/)

bonixavier 10-13-2011 07:19 AM

Smarter way to make applications aware of libraries installed by seamonkey-solibs
 
I purchased the games in the latest Humble Bundle and one of the games (trauma) caused me quite some trouble to get it working because it was looking for libraries exclusively in /usr/lib, but they were all present in /usr/lib/seamonkey-2.1b3. I made symlinks to all of them and it worked, but I was wondering if there is a better way to do that.

foodown 10-13-2011 07:48 AM

Strangely, as I understand it, it depend on how "smart" the binary is built to be.

What happens when you execute:
Code:

ldd /path/to/binary
Where you, of course, substitute the game's actual binary location where I have put just '/path/to/binary'?

cynwulf 10-13-2011 07:50 AM

I would make a simple shellscript and run the program from that, e.g.

Code:

#!/bin/sh
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/seamonkey-2.1b3
./nameofprogram &


knudfl 10-13-2011 07:53 AM

The package "mozilla-nss" provides /usr/lib/libnss3.so etc. etc.


http://slackbuilds.org/repository/13...m/mozilla-nss/

tronayne 10-13-2011 09:46 AM

Uh, just in case...

Your Slackware Seamonkey installation make a symbolic link from /usr/lib/seamonkey-x.x.x to /usr/lib/seamonkey; might want to use that rather than the full path so you don't have to edit the library path every time your get an update, eh?

Hope this helps some.


All times are GMT -5. The time now is 10:26 AM.