Old NS2 on Fresh Debian
11 02 2008As mentioned my previous post, I should install my debian linux. There were so many crash in my tube
The easiest way is only put your ns2allinone directory into the same path which you put it before. You don’t need to compile it again. But it only works if you just run TCL file. If you wanna modify some protocol, you should type “make” in ns2allinone/ns2-number. Suppose your ns2 version is 30
#cd /ns-allinone-2.30/ns-2.30
#make
If you are not sure, you can run ./install in ns2allinone directory
here is the first error that you may meet
make: g++: Command not found
The solution is
apt-get install g++
There might be some problem that you will get later
You should install tk and tcl although ns2allinone provides them
apt-get install tcl8.4 tk8.4 tk8.4-dev tcl8.4-dev
and the next bugs that We will meet are case sensitive name of file, such as
make: *** No rule to make target `tcl/mcast/BST.tcl', needed by
`gen/ns_tcl.cc'. Stop.
You should change bst.tcl to be BST.tcl
The only advice is never give up until you see the successful installation message ![]()






I’m using xandrOS 2.0 ( I believe that XandrOS is based on Debian ) , also face the same error
for the first error , what i did is to install the gcc version from XandrOS Network.
I believe that the apt-get install g++ is the command line for indtalling g++. Am I correct? I’m not very used to the command line.
For TCL\TK error , I manually installed the TCL\TK form XandroS Network, then installing NS2 after that.
aini : yup, You are right, Because NS2 uses cc file