首先安装的2.26的allinone包,想和学习的参考书一致,系统是ubuntu 12.10的,编译器什么的太新了,2.26的包bug太多了,编译没法通过,调试一天,果断放弃了!
重新下载了最新的2.35的包,一次通过,没费啥功夫。之前也编译过一次2.35的包,也出现过什么问题了,好像少了什么其他的包,昨天在调试2.26的时候顺便就给装上了
今天没遇到啥麻烦!
虽然2.26的包没装上,浪费一天的功夫,但是也学会了patch的使用方法了,开始有针对性的进入源码修改还是值得肯定的。为了后续工作的顺利进行还是换了新包,没时间折腾这老东西了!
运行validate当中……
Ns-allinone package has been installed successfully.
Here are the installation places:
tcl8.5.10: /home/casey/ns2/ns-allinone-2.35/{bin,include,lib}
tk8.5.10: /home/casey/ns2/ns-allinone-2.35/{bin,include,lib}
otcl: /home/casey/ns2/ns-allinone-2.35/otcl-1.14
tclcl: /home/casey/ns2/ns-allinone-2.35/tclcl-1.20
ns: /home/casey/ns2/ns-allinone-2.35/ns-2.35/ns
nam: /home/casey/ns2/ns-allinone-2.35/nam-1.15/nam
xgraph: /home/casey/ns2/ns-allinone-2.35/xgraph-12.2
gt-itm: /home/casey/ns2/ns-allinone-2.35/itm, edriver, sgb2alt, sgb2ns, sgb2comns, sgb2hierns
----------------------------------------------------------------------------------
Please put /home/casey/ns2/ns-allinone-2.35/bin:/home/casey/ns2/ns-allinone-2.35/tcl8.5.10/unix:/home/casey/ns2/ns-allinone-2.35/tk8.5.10/unix
into your PATH environment; so that you'll be able to run itm/tclsh/wish/xgraph.
IMPORTANT NOTICES:
(1) You MUST put /home/casey/ns2/ns-allinone-2.35/otcl-1.14, /home/casey/ns2/ns-allinone-2.35/lib,
into your LD_LIBRARY_PATH environment variable.
If it complains about X libraries, add path to your X libraries
into LD_LIBRARY_PATH.
If you are using csh, you can set it like:
setenv LD_LIBRARY_PATH <paths>
If you are using sh, you can set it like:
export LD_LIBRARY_PATH=<paths>
(2) You MUST put /home/casey/ns2/ns-allinone-2.35/tcl8.5.10/library into your TCL_LIBRARY environmental
variable. Otherwise ns/nam will complain during startup.
After these steps, you can now run the ns validation suite with
cd ns-2.35; ./validate
For trouble shooting, please first read ns problems page
http://www.isi.edu/nsnam/ns/ns-problems.html. Also search the ns mailing list archive
for related posts.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
今天又由于换了新的学习环境又一次安装ns2,又出现了一大堆的安装问题
总结起来就是各个软件的依赖性,还有就是编译器版本的问题等
之所以每次换环境总要遇到安装方面的问题很是疑惑,也许只是用linux的不可避免的地方吧,软件的跟新速度不一样,导致很多版本上的兼容问题。
今天装的VMware tool也一样,应为VMware的版本与Ubuntu的版本差太远,折腾了半天,都没搞定,最终还是弄了ssh!
总结linux的使用,归根结底还是没有对linux系统的本质掌握,思维还是停留在window下,这一点是要改的,
而且这和平时很少动手练习一样的,对软件的运行和配置很生疏导致每次在安装软件的时候耽误了很多功夫,以后要注意!
2013-1-24