1 |
On 10/09/2014 06:01, Kerin Millar wrote: |
2 |
> On 10/09/2014 05:16, Joseph wrote: |
3 |
>> On 09/10/14 04:57, Kerin Millar wrote: |
4 |
>>> On 10/09/2014 04:50, Joseph wrote: |
5 |
>>>> On 09/10/14 04:27, Kerin Millar wrote: |
6 |
>>>>> On 10/09/2014 04:21, Joseph wrote: |
7 |
>>>>>> On 09/10/14 03:59, Kerin Millar wrote: |
8 |
>>>>>>> On 09/09/2014 19:36, Joseph wrote: |
9 |
>>>>>> [snip] |
10 |
>>>>>> |
11 |
>>>>>>>> |
12 |
>>>>>>>> Running on my other system I get: |
13 |
>>>>>>>> equery b libstdc++.so.6 |
14 |
>>>>>>>> * Searching for libstdc++.so.6 ... sys-devel/gcc-4.5.4 |
15 |
>>>>>>>> (/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.4/libstdc++.so.6 -> |
16 |
>>>>>>>> libstdc++.so.6.0.14) |
17 |
>>>>>>>> |
18 |
>>>>>>>> env-update - doesn't work either |
19 |
>>>>>>>> |
20 |
>>>>>>> |
21 |
>>>>>>> Check beneath /etc/env.d/ld.so.conf.d and ensure that there is a |
22 |
>>>>>>> file |
23 |
>>>>>>> defining the appropriate paths for your current version of gcc. |
24 |
>>>>>>> Here's |
25 |
>>>>>>> how it looks on my system: |
26 |
>>>>>>> |
27 |
>>>>>>> # cd /etc/ld.so.conf.d |
28 |
>>>>>>> # ls |
29 |
>>>>>>> 05binutils.conf 05gcc-x86_64-pc-linux-gnu.conf |
30 |
>>>>>>> # cat 05gcc-x86_64-pc-linux-gnu.conf |
31 |
>>>>>>> /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/32 |
32 |
>>>>>>> /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3 |
33 |
>>>>>>> |
34 |
>>>>>>> Once you have made any necessary changes, run ldconfig. |
35 |
>>>>>>> |
36 |
>>>>>>> --Kerin |
37 |
>>>>>> |
38 |
>>>>>> Thanks Kerin, for the pointer. |
39 |
>>>>>> I think I have a bigger problem, and don't know how to fix it. |
40 |
>>>>>> |
41 |
>>>>>> Yes, I have the same file /etc/ld.so.conf.d |
42 |
>>>>>> # ls # 05gcc-x86_64-pc-linux-gnu.conf |
43 |
>>>>>> # cat /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/32 |
44 |
>>>>>> /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3 |
45 |
>>>>>> |
46 |
>>>>>> However, those directories are empty (only one file): |
47 |
>>>>>> # ls -al /usr/lib/ |
48 |
>>>>>> libbrcomplpr2.so |
49 |
>>>>> |
50 |
>>>>> Is /usr/lib an actual directory or a symlink? Assuming that you use a |
51 |
>>>>> stock amd64 (multilib) profile, it should be a symlink to lib64. If |
52 |
>>>>> you |
53 |
>>>>> find that it is a directory and that you also have a lib64 directory, |
54 |
>>>>> try the commands below. You can skip the busybox and exit commands if |
55 |
>>>>> you are doing this in a chroot rather than on a live system. |
56 |
>>>>> |
57 |
>>>>> # busybox sh |
58 |
>>>>> # cd /usr/ |
59 |
>>>>> # mv lib lib.old |
60 |
>>>>> # ln -s lib64 lib |
61 |
>>>>> # exit |
62 |
>>>>> |
63 |
>>>>>> On my other working system this directory "/usr/lib/" contain about |
64 |
>>>>>> 2020 |
65 |
>>>>>> files. |
66 |
>>>>>> What had happened? |
67 |
>>>>>> After emerging some files and system I was running command: fstrim |
68 |
>>>>>> -v / |
69 |
>>>>>> (as the disk is SSD). |
70 |
>>>>>> Could it have something to do with the fact that these directories |
71 |
>>>>>> are |
72 |
>>>>>> empty? |
73 |
>>>>> |
74 |
>>>>> No. Using fstrim does not delete files. |
75 |
>>>>> |
76 |
>>>>> --Kerin |
77 |
>>>> |
78 |
>>>> Kerin you are a magician! THANK YOU!!! |
79 |
>>>> Yes, it worked. Everything is back to normal. |
80 |
>>>> |
81 |
>>>> I can still not comprehend what had happened :-/ why all of a sudden in |
82 |
>>>> the middle of compilation it all vanished. |
83 |
>>> |
84 |
>>> Were you doing anything outside of portage that may have had a hand in |
85 |
>>> it? |
86 |
>>> |
87 |
>>> Incidentally, you should move libbrcomplpr2.so to /usr/lib32. Some |
88 |
>>> googling suggests to me that it is a library included in a proprietary |
89 |
>>> Brother printer driver package. You can use the file command to confirm |
90 |
>>> that it is a 32-bit library. |
91 |
>>> |
92 |
>>> --Kerin |
93 |
>> |
94 |
>> I was logged in over ssh in one terminal, compiling "xsane" |
95 |
>> and logged in, in another terminal and was installing brother printer |
96 |
>> driver (without emerge) manual installation. |
97 |
>> I followed my own instructions from: |
98 |
>> http://forums.gentoo.org/viewtopic-t-909052-highlight-brother.html?sid=1ba0b92db499262c6a74919d86c6af43 |
99 |
>> |
100 |
>> |
101 |
>> |
102 |
>> I run: tar zxvf ./hl5370dwlpr-2.0.3-1.i386.tar.gz -C / tar zxvf |
103 |
>> ./cupswrapperHL5370DW-2.0.4-1.i386.tar.gz -C / |
104 |
>> Could be that one of this script messed up the links. |
105 |
>> If so I don't know how could it happen. Looking though "history" these |
106 |
>> are the commands I run: |
107 |
>> |
108 |
>> 305 tar zxvf ./brhl5250dnlpr-2.0.1-1.i386.tar.gz -C / |
109 |
>> 306 tar zxvf ./cupswrapperHL5250DN-2.0.1-1.i386.tar.gz -C / |
110 |
>> 307 cd /usr/local/Brother/cupswrapper |
111 |
>> 308 mv cupswrapperHL5250DN-2.0.1 cupswrapperHL5250DN-2.0.1.bak |
112 |
>> 309 /bin/sed 's/\/etc\/init.d\/cups\ restart/\/etc\/init.d\/cupsd\ |
113 |
>> restart/g' ./cupswrapperHL5250DN-2.0.1.bak > ./cupswrapperHL5250DN-2.0.1 |
114 |
>> 310 ls -al |
115 |
>> 311 pwd |
116 |
>> 312 ll |
117 |
>> 313 ls -al |
118 |
>> 314 chmod 755 cupswrapperHL5250DN-2.0.1 |
119 |
>> |
120 |
>> I just extracted the files with "tar..." |
121 |
> |
122 |
> I read your forum post and can see that you're (dangerously) extracting |
123 |
> directly into the root directory and that this is among the contents of |
124 |
> the archive: |
125 |
> |
126 |
> ./usr/lib/ |
127 |
> ./usr/lib/libbrcomplpr2.so |
128 |
> |
129 |
> I posit that tar clobbers the /usr/lib symlink, converting it into a |
130 |
> directory because that is what is stored in the archive. |
131 |
> |
132 |
> Ergo, use the --keep-directory-symlink parameter. |
133 |
|
134 |
Excuse the fact that I am replying to myself, but I must also stress |
135 |
that the library does not belong in lib64. On a 64-bit system, you |
136 |
should adapt your process so that the library ends up residing in lib32, |
137 |
not lib64 (by way of the lib symlink). The software will not be able to |
138 |
function correctly otherwise. |
139 |
|
140 |
--Kerin |