Compiling ns-2.1b9a
- Install these packages: build-essential gcc-3.3 libpcap-dev libx11-dev libxmu-headers libxt-dev
- Download ns-allinone-2.1b9a-gcc32.tar.gz.
- Download my patches.
- Apply patches 1, 2 and 3.
- Run ./install
Adding TENS 1.2 (Optional)
TENS adds many features (like multiple interfaces and directional antenna support) to ns-2. It’s the reason I needed ns-2.1b9a in the first place.
I’ve created a patch that includes all the changes TENS introduces to ns-2, so you don’t need to download TENS.
In the ns-2.1b9a directory:
- Apply patches 4 and 5.
- Run make clean
- Run make depend
- Run make
Adding Agent/PBC (Optional)
I needed Agent/PBC for periodic broadcast messages, but Agent/PBC was introduced in ns-2.33. So I copied it from ns-2.33 and made some minor changes to ns-2.1b9a to make Agent/PBC work.
In the ns-2.1b9a directory:
- Apply patches 6 and 7.
- Run make
Currently i meet this problem ->
Any solution?
edwin on February 25, 2009 at 12:55goto the file nr.hh
yogendra on March 18, 2009 at 14:42line number 206 and 221
write template before the starting of the function
and save
make again
Hi. I have problems with building tclcl-1.0b12. The output was:
http://gist.github.com/327074
I thought it could be that configure script of tclcl uses gcc to generate the makefile and so gcc would invoke gcc ver 4.2.4. I explicitly changed the configure so that gcc is changed to gcc-3.3 in the makefile. That gave no result. Obviously it wasn’t compiling with the wrong version of gcc. Please help me. Thanks in advance.
milan on July 7, 2009 at 16:15Allright, fixed the one with tclcl. Now making ns is outputting this:
http://gist.github.com/327072
milan on July 7, 2009 at 18:40milan, why don’t you try stackoverflow.com for general programming questions?
I’d love to help with ns2-specific problems, but I think the errors you get aren’t caused by ns2 itself.
cbg on July 7, 2009 at 20:26Please help me.
I do not understand how to apply patches. Because when I apply the patch 1, I am prompted to enter the file to patch. what is it?.
Linda on November 18, 2009 at 17:51I do not know what command to apply for this patches and where should put the patches to run them.
please help me about this problem
I’ve patched 1,2,3 patch and run ./install
when it compiles to Otcl three is an error reporting that can’t
find .configure, but i check my Otcl and there is an .configure
what i should do to solve this proble
thanks a lot
best regards
http://gist.github.com/327075
Bobby on January 9, 2010 at 10:39