【发布时间】:2014-01-22 08:41:02
【问题描述】:
我正在尝试使用 ns-allinone-2.35.tar.gz 包在我的 ubuntu 13.10 中安装 ns2。
起初我得到 x11/* directory not found 错误。在学习了一些教程并安装了以下工具后,帮助我克服了这些问题。
sudo apt-fast install tcl8.5-dev tk8.5-dev
sudo apt-fast install build-essential autoconf automake
sudo apt-fast install perl xgraph libxt-dev libx11-dev libxmu-dev
sudo apt-fast install xorg-dev g++ xgraph
但是,现在我收到以下错误:
linkstate/ls.h:137:58: error: ‘erase’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
void eraseAll() { erase(baseMap::begin(), baseMap::end()); }
^
linkstate/ls.h:137:58: note: declarations in dependent base ‘std::map<int, LsIdSeq, std::less<int>, std::allocator<std::pair<const int, LsIdSeq> > >’ are not found by unqualified lookup
linkstate/ls.h:137:58: note: use ‘this->erase’ instead
make: *** [linkstate/ls.o] Error 1
Ns make failed!
这是我尝试安装的第 5 天,但失败了。由于太多的依赖关系,在使用 Cygwin 在 Windows 7 中安装时感到恼火之后,现在我在 ubuntu 中尝试但遇到了这样的错误。
如何解决?
【问题讨论】:
标签: ns2 ubuntu-13.10