bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Shell function and LD_LIBRARY_PATH


From: Paul Smith
Subject: Re: Shell function and LD_LIBRARY_PATH
Date: Sun, 20 Jan 2019 16:28:39 -0500

On Sun, 2019-01-20 at 21:18 +0000, Martin Dorey wrote:
> >> on a server, where I don't have root access
> 
> Ouch.

Why ouch?  He's installing his own bash so he can modify his own
version of bash.  He just can't install it as the system version or add
libraries to the default runtime library search directories.

If you configure the bash build with --prefix=$HOME/.local that should
be enough to have it search $HOME/.local/lib for shared libraries by
default.

You just can't configure it with some --prefix then try to install it
somewhere different.

> > using RPATH at link time
> 
> Debian has a package called chrpath, supplying an executable of the
> same name which lets you change the RPATH later.

Better is patchelf which allows you to make all sorts of changes to ELF
binaries, including showing, setting, etc. RPATH, without any length
restrictions:

http://manpages.ubuntu.com/manpages/cosmic/man1/patchelf.1.html




reply via email to

[Prev in Thread] Current Thread [Next in Thread]