2.配置
2.1) Modify the makefile (NOTICE: I use “vi” for an editor, you can use “gedit” instead)
vi /home/stan/ns-allinone-2.35/otcl-1.14/Makefile.in
2.2) Change CC = @CC@ to CC = @CC@ -V 4.5
(For changing this because the gcc complier in Ubuntu 11.04 is version 4.5, however NS2 only supports gcc-4.3 below. NOTICE the V is capital.)
3.安装
Install NS2:
cd /home/stan/ns-allinone-2.35
sudo ./install
3.1) Modify .bahrc
vi /home/stan/.bashrc
3.2) Go to the last line and add the scripts below: