[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to: How to wrap executablea?
From: |
woshilapin |
Subject: |
Re: How to: How to wrap executablea? |
Date: |
Thu, 21 Nov 2024 11:31:33 +0000 |
Hi Marius,
> I'm trying to execute a pre compiled program (on a Guix System) that I think
> is trying to call /lib64/ld-linux-x86-64.so.2 by its absolute path. Since
> Guix System does use the store and usually makes use of variables like
> "SHELL", "LIBRARY_PATH", etc. How do I wrap executables that technically are
> gnu-linux cross platform but use absolute paths that depend on distribution?
It might not be exactly the same problem, but I remember getting around this
kind of problem by providing guix's version of the library with
`LD_LIBRARY_PATH`. Doing something like this.
```
eval "$(guix shell --search-paths)"
export LD_LIBRARY_PATH="${LIBRARY_PATH}"
```
It's probably a horrible hack (I honestly don't know enough to know if it's
nice or horrible), but it got me something to work with.
Hope this helps, and I'd be happy to know of a cleaner solution.
Sincerely,
--
woshilapin / Jean