Welcome to DU! The truly grassroots left-of-center political community where regular people, not algorithms, drive the discussions and set the standards. Join the community: Create a free account Support DU (and get rid of ads!): Become a Star Member Latest Breaking News Editorials & Other Articles General Discussion The DU Lounge All Forums Issue Forums Culture Forums Alliance Forums Region Forums Support Forums Help & Search

Recursion

(56,582 posts)
5. You could do that, but for starters just type it when you run the program
Sun Jul 12, 2015, 11:17 PM
Jul 2015

eg,

/bin/bash$ LD_PRELOAD_PATH=/home/eppur/downloads/app ./the_program


(In bash and sh,

NAME=value command


runs command with variable $NAME set to value, without changing the persistent environment. Note that you don't use $NAME=value but NAME=value.)

(This is from memory but I think LD_PRELOAD_PATH needs to be an absolute path rather than a relative one.)

Once you get it working, you can add that env variable to .profile, or just move the libraries to a trusted directory (and run ldconfig).

As a final thought, you can use ldd(1) to find out what libraries the program needs, and where it thinks those libraries live.

Recommendations

0 members have recommended this reply (displayed in chronological order):

Latest Discussions»Culture Forums»Open Source and Free Software»Linux Mint: "No such...»Reply #5