Open tgurr opened 9 years ago
Ok, 2 years ago there was issues with Debian/Ubuntu multiarch - ElgLibViewer was unable to find any lbiraries. I'd improved search algorithm, but it still isn't ideal. Can you please clarify on which system search failed? (which distribution, which version, i686 or AMD64).
The distribution is Exherbo Linux, which is a rolling release distribution so we don't have any specific release versions, I'm on AMD64/x86_64.
We moved from multilib to multiarch/cross which allows native cross compiling support with full support from the package manager to track installed packages in the various cross targets.
Everything arch specific is installed to /usr/arch e.g. /usr/x86_64-pc-linux-gnu/{bin,include,lib,libexec}, /usr/i686-pc-linux-gnu/{bin,include,lib,libexec} and so on.
ls -la /usr:
bin -> host/bin
host -> x86_64-pc-linux-gnu
include -> host/include
lib -> host/lib
libexec -> host/libexec
sbin -> host/sbin
ls -la /:
bin -> usr/host/bin
lib -> usr/host/lib
sbin -> usr/host/sbin
so by changing the /usr/host symlink you can switch the whole system on the fly between the various installed cross targets.
More detailed information can be found here: https://exherbo.org/docs/multiarch-pr.html https://exherbo.org/docs/multiarch.txt
I hope this information is of any help and I was able to explain our layout, if I can be of further assistance please let me know.
Can you please also attach content of /etc/ld.so.conf and all files in /etc/ld.so.conf.d?
We have /etc/env.d/ instead of /etc/ld.so.conf.d:
-rw-r--r-- 1 root root 176 Sep 7 11:06 00basic
-rw-r--r-- 1 root root 16 Aug 10 11:49 02locale
-rw-r--r-- 1 root root 64 Sep 15 11:04 20udev
-rw-r--r-- 1 root root 25 Aug 25 17:39 40nss
-rw-r--r-- 1 root root 142 Sep 16 10:52 44kde-4
-rw-r--r-- 1 root root 27 Sep 15 12:03 44qt4
-rw-r--r-- 1 root root 66 Sep 22 10:58 44qt5
-rw-r--r-- 1 root root 310 Jul 27 18:09 45java
-rw-r--r-- 1 root root 156 Sep 14 18:17 45kf5
-rw-r--r-- 1 root root 42 Jul 30 16:13 46mysql
-rw-r--r-- 1 root root 122 Sep 18 11:29 50firefox
-rw-r--r-- 1 root root 74 Mai 12 16:06 60googletalk
-rw-r--r-- 1 root root 23 Sep 3 11:48 70less
-rw-r--r-- 1 root root 48 Sep 15 10:51 98ca-certificates
drwxr-xr-x 75 root root 4096 Sep 15 11:22 alternatives
And running # eclectic env update
then (re-)generates /etc/ld.so.{cache,conf}. The package manager also runs that command when instaling/removing any package so that it is always up to date:
# ld.so.conf autogenerated by eclectic
# Make all changes to /etc/env.d files
/usr/local/lib
/usr/host/lib/nss
/usr/host/lib/qt4
/usr/host/lib/qt5
/usr/x86_64-pc-linux-gnu/lib/mysql
$ env | grep LDPATH
LDPATH=/usr/local/lib:/usr/host/lib/nss:/usr/host/lib/qt4:/usr/host/lib/qt5:/usr/x86_64-pc-linux-gnu/lib/mysql
And in /etc/profile
we have:
PATH=/usr/local/bin:/usr/host/bin:${PATH}
export PATH
$ env | grep PATH
PATH=/usr/x86_64-pc-linux-gnu/bin:/usr/local/bin:/usr/host/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/lib/jdk/bin:/usr/x86_64-pc-linux-gnu/lib/jre/bin
0.9 didn't work for me either. ldd lists the dependencies just fine:
But elflibviewer doesn't list anything: