NS 2.35 can be installed successfully in Fedora 15 and Ubuntu 11.10 using the following steps
In Fedora 15
In Fedora 15
- Download ns-allinone-2.35 from the NS2 website. The recent version was RC8
- select the folder /home/username, untar the file using the command "tar zxvf ns-allinone-xxx.tar.gz" (without quotes).
- Go to the folder /home/username/ns-allinone-2.35/ using the command cd /home/username/ns-allinone-2.35 / and execute the command ./install (dot /install)
- You may encounter an error in the file mac_80211Ext.h and correct the error given in the following line
- Open the file /home/username/ns-allinone-2.35/ns-2.35/mac/mac_80211Ext.h and include the following line in the header file area
- #include <cstddef>
- Go to step3 and type ./install
- Once installation completed, set the path information in .bash_profile (dot bash_profile)
- you need to set two path variables PATH and LD_LIBRARY_PATH
- please see this link for setting the path http://pradeepkumar.org/54/installation-instructions-for-network
For Ubuntu 11.10
- Please see step1 and step 2 in Fedora 15
- Ubuntu needed some software to be installed before installation of NS2. execute the following command to install
- sudo apt-get install build-essential autoconf automake libxmu-dev gcc-4.4 g++-4.4
- You need to connect your machine to internet.
- Once all the packages are downloaded, go to step 3,4,5 and 6 from Fedora 15 installation.
- Once installation completed, set the path information in .bashrc (dot bashrc)
- you need to set two path variables PATH and LD_LIBRARY_PATH
- please see this link for setting the path http://pradeepkumar.org/54/installation-instructions-for-network
In both the above Operating System, you may come across an error while running ns and nam in the terminal window
The error may be ****Buffer Over flow - ns termination ***
To overcome this error, edit the following file
/home/username/ns-allinone-2.35/tcl8.5.8/unix/Makefile.in
Replace the following line
CC = @CC@
with
CC=gcc-4.4
and reinstall the steps (step3 in fedora 15 and step 4 in Ubuntu) as mentioned above.
Logout and login back
That's it.
To overcome this error, edit the following file
/home/username/ns-allinone-2.35/tcl8.5.8/unix/Makefile.in
Replace the following line
CC = @CC@
with
CC=gcc-4.4
and reinstall the steps (step3 in fedora 15 and step 4 in Ubuntu) as mentioned above.
Logout and login back
That's it.
how to set path in bashrc?
ReplyDeletehi i've got the version ns-allinone-2.34 and tried to install using "cd /home/username/ns-allinone-2.34 /" followed by "sudo ./install" on which i was asked to give the root password. However i got the message "sudo ./install: command not found". What should i do to get it installed?
ReplyDelete