Gentoo Archives: gentoo-user

From: Neil Bothwick <neil@××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] error while loading shared libraries: libstdc++.so.6:
Date: Tue, 02 Jan 2018 19:49:52
Message-Id: 20180102194945.78fc4a13@digimed.co.uk
In Reply to: [gentoo-user] error while loading shared libraries: libstdc++.so.6: by thelma@sys-concept.com
1 On Tue, 2 Jan 2018 10:11:24 -0700, thelma@×××××××××××.com wrote:
2
3 > I was installing some brother driver simply run:
4 > # tar zxvf ./hl5370dwlpr-2.0.3-1.i386.tar.gz -C /
5 > ./
6 > ./usr/
7 > ./usr/local/
8 > ./usr/local/Brother/
9 > ./usr/local/Brother/lpd/
10 > ./usr/local/Brother/lpd/psconvert2
11 > ./usr/local/Brother/lpd/filterHL5370DW
12 > ./usr/local/Brother/lpd/rawtobr2
13 > ./usr/local/Brother/inf/
14 > ./usr/local/Brother/inf/setupPrintcap
15 > ./usr/local/Brother/inf/paperinf
16 > ./usr/local/Brother/inf/brHL5370DWfunc
17 > ./usr/local/Brother/inf/braddprinter
18 > ./usr/local/Brother/inf/brHL5370DWrc
19 > ./usr/lib/
20 > ./usr/lib/libbrcomplpr2.so
21
22 [snip]
23 > Now, I can not run any emerge, eix etc command, I'm getting:
24 > eix: error while loading shared libraries: libstdc++.so.6: cannot open
25 > shared object file: No such file or directory
26
27 > lib -> lib64 (exist in "/")
28
29 But the symlink from /usr/lib to /usr/lib64 has been overwritten by
30 tar. Move the files from /usr/lib to /usr/lib64 remove /usr/lib and
31 recreate the symlink - or install the driver from an ebuild instead of
32 splatting unknown files and directories over your root filesystem.
33
34 If you must use the tarbal, unpack it to a temporary directory next time
35 and then inspect the files before moving them.
36
37
38 --
39 Neil Bothwick
40
41 Always be sincere even if you don't mean it.