【问题标题】:Error while executing NS2 nam : libstdc++.so.6执行 NS2 nam 时出错:libstdc++.so.6
【发布时间】:2015-04-05 18:50:07
【问题描述】:

首先我是 Ubuntu 的新手。

我已经在我的 ubuntu14.04 中安装了 NS2。

安装很好。当我在终端中尝试 ns 时,它显示 %. 但是当我尝试 nam 时,它显示了一些关于库的错误。

最后我得到:加载共享库时出错:libstdc++.so.6:无法打开共享对象文件:没有这样的文件。

我有最新版本的 g++。

请帮助我。谢谢

【问题讨论】:

    标签: ubuntu-14.04 ns2


    【解决方案1】:

    ?可能你安装了一个 32bits (i686) 'nam' 包,而你的操作系统是 64bits (x86_64) ? 反之亦然。

    此命令将回复 i686/x86_64 : $ uname -m

    ?你是如何安装“nam”的?

    -

    【讨论】:

    • 我已经使用以下博客中的步骤安装了 ns2。 installwithme.blogspot.in/2014/05/…
    • 我在 .bashrc 添加了 libstdc++ 的库路径。现在我收到以下错误: nam: error while loading shared libraries: libstdc++.so.6: wrong ELF class: ELFCLASS64
    • 在运行 $ uname -m i got x86_64
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-12-08
    • 1970-01-01
    • 2018-08-06
    • 1970-01-01
    相关资源
    最近更新 更多