我怎么知道哪个libstdc ++双重转换需要? [英] How can I tell which libstdc++ double-conversion wants?

查看:116
本文介绍了我怎么知道哪个libstdc ++双重转换需要?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 >加载包http-enumerator -0.7.1.1 ...链接...完成。 
>加载软件包double-conversion-0.2.0.1 ...无法加载.so / .DLL for:stdc ++?>>> (libstdc ++。so:无法打开共享目标文件:没有这样的文件或目录)

安装了多个stdc ++库

 >定位libstdc ++。so 
> / usr / lib / libstdc ++。so。 6
> / usr / lib / libstdc ++。so.6.0.14
> /usr/lib/gcc/x86_64-linux-gnu/4.4/libstdc ++。so
> / / usr / lib32 / libstdc ++。so.6.0.14

我想也许我可以根据自己的想法创建符号链接,但我不知道哪一个符合要求。我使用这个操作系统
2.6.35-22-server#33 - Ubuntu SMP Sun Sep 19 20:48:58 UTC 2010 x86_64 GNU / Linux



符号链接到一个文件:

  $ ls -l libstdc ++ * 
lrwxrwxrwx 1 root root 19 2011 -09-24 22:14 libstdc ++。so.6 - > libstdc ++。so.6.0.13
-rw -r - r-- 1 root root 1044112 2010-03-26 20:16 libstdc ++。so.6.0.13



运行:

  sudo ln -si / usr / lib / libstdc ++。so.6 /usr/lib/libstdc++.so 


Here's the error I see when trying to load a .hs file into ghci.

>Loading package http-enumerator-0.7.1.1 ... linking ... done.
>Loading package double-conversion-0.2.0.1 ... can't load .so/.DLL for: stdc++ ?>>>     (libstdc++.so: cannot open shared object file: No such file or directory)

Further investigation reveals I have multiple stdc++ libraries installed

>locate libstdc++.so
>/usr/lib/libstdc++.so.6
>/usr/lib/libstdc++.so.6.0.14
>/usr/lib/gcc/x86_64-linux-gnu/4.4/libstdc++.so
>/usr/lib32/libstdc++.so.6
>/usr/lib32/libstdc++.so.6.0.14

I thought maybe I could make a symlink to what it wants, but I have no idea which one. I'm using this OS 2.6.35-22-server #33-Ubuntu SMP Sun Sep 19 20:48:58 UTC 2010 x86_64 GNU/Linux

How can I tell exactly what it wants?

解决方案

The ones in /usr/lib symlink to one file:

$ ls -l libstdc++*
lrwxrwxrwx 1 root root      19 2011-09-24 22:14 libstdc++.so.6 -> libstdc++.so.6.0.13
-rw-r--r-- 1 root root 1044112 2010-03-26 20:16 libstdc++.so.6.0.13

Just run:

sudo ln -si /usr/lib/libstdc++.so.6 /usr/lib/libstdc++.so

and it should work.

这篇关于我怎么知道哪个libstdc ++双重转换需要?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆