Web lists-archives.com

SOLVED Re: Missing libGL.so.1 from ldconfig




Good questions:

The Wanderer <wanderer@xxxxxxxxxxx> wibbled:
>
> At a first guess: what's the contents of /etc/ld.so.conf?

$ cat /etc/ld.so.conf
include /etc/ld.so.conf.d/*.conf

> what snippets do you have there, and what directories they point to?

$ dir /etc/ld.so.conf.d/
total 24
-rw-r--r-- 1 root root  38 Jan 16  2017 fakeroot-x86_64-linux-gnu.conf
-rw-r--r-- 1 root root 108 Jan 14 05:39 i386-linux-gnu.conf
-rw-r--r-- 1 root root  44 Mar 20  2016 libc.conf
-rw-r--r-- 1 root root  92 Jan 16  2016 trinitylibs.conf
-rw-r--r-- 1 root root  68 May 28  2017 x86_64-linux-gnu.conf
-rw-r--r-- 1 root root  56 Jun 15  2017 zz_i386-biarch-compat.conf

> In particular, do any of them point to /usr/lib/i386-linux-gnu/ ?

$ cd /etc/ld.so.conf.d/
/etc/ld.so.conf.d
$ grep i386 *
i386-linux-gnu.conf:/lib/i386-linux-gnu
i386-linux-gnu.conf:/usr/lib/i386-linux-gnu

> (Also, have you checked that directory to confirm that libGL.so.1 is
actually present there?)

No, its not.

$ dir /usr/lib/i386-linux-gnu/libGL*
lrwxrwxrwx 1 root root 15 Sep 13  2015
/usr/lib/i386-linux-gnu/libGLU.so.1 -> libGLU.so.1.3.1

# find /usr -name libGL.so.1
./lib/mesa-diverted/x86_64-linux-gnu/libGL.so.1
./lib/mesa-diverted/i386-linux-gnu/libGL.so.1
./lib/x86_64-linux-gnu/libGL.so.1

# ls -al lib/mesa-diverted/i386-linux-gnu/libGL.so.1
lrwxrwxrwx 1 root root 14 Mar 21  2017
lib/mesa-diverted/i386-linux-gnu/libGL.so.1 -> libGL.so.1.2.0

So why would "mesa-diverted" be here, and nothing pointing to it? Let
me try adding the mesa-diverted directory to the ld.so.conf.d and see
what happens.

# cat local.conf
/usr/lib/mesa-diverted/i386-linux-gnu
# ldconfig
# ldconfig -p | grep libGL.so.1
        libGL.so.1 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libGL.so.1
        libGL.so.1 (libc6) => /usr/lib/mesa-diverted/i386-linux-gnu/libGL.so.1

Thank you that worked. Now why on one system and not another, both
Debian stable, that is the great mystery.

Curt-

-- 
The secret of happiness is freedom,
and the secret of freedom is courage.
- Thucydides