This is my original work:) You can also find it on http://140.116.72.80/~smallko/ns2/Debian.doc.
Install Debian Sarge System. Remember not to update it with Etch or sid source. Just use Sarge Source.Otherwise, you may get an error like this (a common error for ns 2.29 or old version because of the gcc and g++ complier version conflict):
http://mailman.isi.edu/pipermail/ns-users/2006-April/054937.html
Use apt command (apt-get install XXX) to install these libraries and utilities:
1. x-window-system-core
2. gnome-core
3. xlibs-dev: Important library!
4. lftp or wget: (for downloading ns2 packages from websites or ftpserver)
5. gcc
6. g++
7. make
Uncompress the ns package: tar zxvf ns-2.xx-allinone.tar.gz
Install ns2 with the shell script “install” in the ns-2.xx-allinone folder:
|