csdn上问没人回复,一个人搞了一天终于搞定了ns2。下面是我找到一些资料。
-
为了防止出现“Tcl is not part of the ns project” 问题,把以下文件中的.relid'`替换成.relid`,
ns-allinone-2.27/tcl8.4.5/unixconfigure
ns-allinone-2.27/tcl8.4.5/unix/tcl.m4
ns-allinone-2.27/tk8.4.5/unix/configure
ns-allinone-2.27/tk8.4.5/unix/tcl.m4
ns-allinone-2.27/otcl-1.8/configure
6.在目录ns-allinone-2.27下,输入./install进行安装
7.在安装过程中可能会出现很多错误,现总结了一些常见的错误及解决方法如下:
①:
ore -I./asim/ -I./qs -I./diffserv -I./satellite -I./wpan -o
trace/trace.o
trace/trace.cc
./sctp/sctp.h:705: error: extra qualification
'SctpAgent::' on member
'DumpSendBuffer'
make: *** [trace/trace.o]
Error 1
解决 办法:
将文件sctp.h里面第705行DumpSendBuffer函数前面的'SctpAgent::'去掉。
②