[情报] NS-2.35 安装小心得

楼主: victoret (戏言~)   2012-03-19 20:33:13
这是今天很难过的灌了两次 cygwin
灌了 4 次的 NS-2.35 所得到的小心得...
或许不是最好的解决方法,不过似乎可以解决无法安装的问题
1. 使用者名称
使用者名称也好,资料夹路径也好
不能有空格或是中文字
然而假如有的话也不用担心,可以到 etc(在 cygwin 目录底下,跟 home 同个地方)
去 vim passwd
把里面跟使用者名称相关的部分改成没空格没中文就 OK 了
假如像在下一样是 vim 苦手 or 一开始忘了灌也没关系
只要用档案总管到 cygwin 底下的 etc 里面用记事本开启 passwd 进行修改
也可以达到同样的效果
2. In file included from trace/cmu-trace.cc:56:
./mdart/mdart_function.h: In function `const char* bitString(nsaddr_t)':
./mdart/mdart_function.h:213: error: no matching function for call to
`std::bitset<16u>::to_string()'
trace/cmu-trace.cc: In member function `void CMUTrace::format_mdart(Packet*,
int)':
trace/cmu-trace.cc:1087: error: no matching function for call to
`std::bitset<16u>::to_string()'
trace/cmu-trace.cc:1089: error: no matching function for call to
`std::bitset<16u>::to_string()'
trace/cmu-trace.cc:1102: error: no matching function for call to
`std::bitset<16u>::to_string()'
trace/cmu-trace.cc:1104: error: no matching function for call to
`std::bitset<16u>::to_string()'
trace/cmu-trace.cc:1106: error: no matching function for call to
`std::bitset<16u>::to_string()'
trace/cmu-trace.cc:1119: error: no matching function for call to
`std::bitset<16u>::to_string()'
trace/cmu-trace.cc:1121: error: no matching function for call to
`std::bitset<16u>::to_string()'
trace/cmu-trace.cc:1123: error: no matching function for call to
`std::bitset<16u>::to_string()'
trace/cmu-trace.cc:1125: error: no matching function for call to
`std::bitset<16u>::to_string()'
trace/cmu-trace.cc:1138: error: no matching function for call to
`std::bitset<16u>::to_string()'
trace/cmu-trace.cc:1140: error: no matching function for call to
`std::bitset<16u>::to_string()'
trace/cmu-trace.cc:1142: error: no matching function for call to
`std::bitset<16u>::to_string()'
trace/cmu-trace.cc:1155: error: no matching function for call to
`std::bitset<16u>::to_string()'
trace/cmu-trace.cc:1157: error: no matching function for call to
`std::bitset<16u>::to_string()'
Makefile:93: recipe for target `trace/cmu-trace.o' failed
make: *** [trace/cmu-trace.o] Error 1
Ns make failed!
完全万恶的一串错误指令,很有可能在进入等待约 20 分钟的时候出现
这个问题似乎是只有 NS-2.35 才会出现的
原因根据 Google 大神表示
NS-2.35 非得使用 gcc4 compile 才可以通过
因此必须在一开始安装 cygwin 的时候就要装 gcc4 和 gcc4-g++ 这两个套件
至于已经灌好的话...我也不知道
灌好以后我找不太到这两个套件于是只好重灌了
这个部分有待强者补充
大致上个人遇到过这两个问题
假如在安装 NS-2.35 的时候,一开始没有出现
" 你的名字有空白! "

" 你没有 gcc4 唷! "
之类的讯息,大概...大概就会成功吧...
祝大家好运!

Links booklink

Contact Us: admin [ a t ] ucptt.com