若在 ubuntu 上安装 ns2 要先装几个库文件: (1)sudo apt-get install build-essential,这样可以安装gcc,make。 (2)安装tk,tcl sudo apt-get install tcl8.4