Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
升级GCC后报找不到libstdc++.so.6[solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index 中文 (Chinese)
View previous topic :: View next topic  
Author Message
Lance
Tux's lil' helper
Tux's lil' helper


Joined: 02 Apr 2004
Posts: 125

PostPosted: Sun Jun 05, 2005 6:05 pm    Post subject: 升级GCC后报找不到libstdc++.so.6[solved] Reply with quote

现在的提示是找不到libstdc++.so.6
_________________
choose Gentoo, choose freedom


Last edited by Lance on Tue Jun 07, 2005 1:29 am; edited 1 time in total
Back to top
View user's profile Send private message
ts
Tux's lil' helper
Tux's lil' helper


Joined: 15 Dec 2004
Posts: 97

PostPosted: Mon Jun 06, 2005 12:38 am    Post subject: Re: 升级GCC后出问题了,有比重装简单点的办 Reply with quote

Lance wrote:
现在的提示是找不到libstdc++.so.6


Code:
find / -iname libstdc++.so.6*


用上面命令看看,然后做个 link。

比如如果上述命令输出libstdc++.so.6.000,
Code:
ln -s /path/libstdc++.so.6.000 /path/libstdc++.so.6


Good luck!
Back to top
View user's profile Send private message
Lance
Tux's lil' helper
Tux's lil' helper


Joined: 02 Apr 2004
Posts: 125

PostPosted: Mon Jun 06, 2005 12:55 am    Post subject: Reply with quote

ts兄,谢谢!

我试过把/usr/lib/stdc++-v3/libstdc++.so.5... 分别symlink到/usr/lib/目录和/usr/lib/stdc++-v3目录下[是SYMLINK为libstdc++.so.6],似乎不起作用。报告的错误还是找不到libstdc++.so.6。我猜想是不是有什么配置文件告诉linux在哪里找libstdc++?
_________________
choose Gentoo, choose freedom
Back to top
View user's profile Send private message
ts
Tux's lil' helper
Tux's lil' helper


Joined: 15 Dec 2004
Posts: 97

PostPosted: Mon Jun 06, 2005 1:40 am    Post subject: Reply with quote

Lance wrote:
我试过把/usr/lib/stdc++-v3/libstdc++.so.5... 分别symlink到/usr/lib/目录和/usr/lib/stdc++-v3目录下[是SYMLINK为libstdc++.so.6],似乎不起作用。报告的错误还是找不到libstdc++.so.6。我猜想是不是有什么配置文件告诉linux在哪里找libstdc++?


You are welcome.

你把版本升级到多少啊?确认你不是把 libstdc++.so.5 做 link 了,它本身就是个 link 。试试把 libstdc++.so.6 做成 libstdc++.so.5.0.6 的 link。
Back to top
View user's profile Send private message
Lance
Tux's lil' helper
Tux's lil' helper


Joined: 02 Apr 2004
Posts: 125

PostPosted: Mon Jun 06, 2005 3:09 am    Post subject: Reply with quote

谢谢ts兄的热心。

搞定了,就是你说的那么简单!
_________________
choose Gentoo, choose freedom
Back to top
View user's profile Send private message
quhw
n00b
n00b


Joined: 30 May 2005
Posts: 2

PostPosted: Wed Jun 08, 2005 8:14 pm    Post subject: Reply with quote

Lance wrote:
谢谢ts兄的热心。

搞定了,就是你说的那么简单!


问题不是这么解决的啊,gcc附带一个fix_libtool_files.sh就是解决这个问题的。
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index 中文 (Chinese) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum