Installing old NS2 version (ns-allinone-2.1b6a) on RedHat 8.0


NS2 compiles smoothly on gcc 2.95.x systems. However most linux distributions are now bundled with gcc 3.x which causes some compilation errors. The current NS2 allinone package is already available in a patched version for gcc3.2 (ns-allinone-2.1b9a-gcc32.tar.gz).

In order to use add-on software for older ns2 releases (in particular ns-allinone-2.1b6a), I applied the necessary changes to the source to make it compile on my RedHat 8.0 machine.
gcc: gcc version 3.2 20020903 (Red Hat Linux 8.0 3.2-7)
kernel: 2.4.18-24.8.0

The following steps desrcribe the installation procedure.
Special thanks go to Somnuk Puangpronpitag and Igor Sobrado for their web page and news contribution, respectively.

My patched version of the source code can also be downloaded here (ns-allinone-2.1b6-gcc32.tar.gz).


Thomas Martin Knoll
Tuesday 09th of February 2010 - 03:59:46