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

Re: x32: directories for installing under /usr/local



Hi!

On Sat, Oct 05, 2024 at 05:43:21PM +0200, Sven Hartrumpf wrote:
> I need to locally install some programs (that supply configure scripts) for the x32 ABI.
> I use the following directories:
> --bindir=/usr/local/x86_64-linux-gnux32/bin
> --libdir=/usr/local/x86_64-linux-gnux32/lib
> Are these the recommended ones?

Per /etc/ld.so.conf.d/x86_64-linux-gnux32.conf:
  # Multiarch support
  /usr/local/lib/x86_64-linux-gnux32
  /lib/x86_64-linux-gnux32
  /usr/lib/x86_64-linux-gnux32

So if you put libraries in the path you listed, then they won't load.
Use /usr/local/lib/x86_64-linux-gnux32.

Binaries are classically not multi-arch so there's no canonical path
(or path-forming algorithm).
IMO put them in /usr/local/bin directly,
or, if you do need to form a multiarch path,
in /usr/local/bin/x86_64-linux-gnux32 (p.a. to lib)
+ add PATH=/usr/local/bin/x86_64-linux-gnux32:$PATH
if you want to enable them.

Best,

Attachment: signature.asc
Description: PGP signature


Reply to: