Download the software ns-2.35. Click here to download
Copy your downloaded file in /home/username.
Open terminal: become root(be careful now)
$suUntar the file which you have downloaded by entering following commands:
$tar -xzvf ns-allinone-2.35.tar.gz $cd ns-allinone-2.35 $./installIt will automatically compile, make and install.
After installation, PATH information will be shown on the screen.
Copy PATH, LD_LIBRARY_PATH, TCL_LIBRARY from the terminal to the .bash_proflie file.
Then run command:
$source .bash_profileYou will find .bash_profile in /root/.bash_profile
As you can see, it is a hidden file, so you can do ls -a to list hidden files.
The .bash_profile contents will look like
$cat .bash_profile # .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then ~/.bashrc
fi # User specific environment and startup programs PATH=$PATH:$HOME/bin:/home/login-fedora/Downloads/ns-allinone-2.35/bin: ...
... /home/login-fedora/Downloads/ns-allinone-2.35/tcl8.5.10/unix:/home/login-fedora/Downloads/ns-allinone-2.35/tk8.5.10/unix
export PATH LD_LIBRARY_PATH=/home/login-fedora/Downloads/ns-allinone-2.35/otcl-1.14:/home/login-tesla/Downloads/ns-allinone-2.35/lib TCL_LIBRARY=/home/login-fedora/Downloads/ns-allinone-2.35/tcl8.5.10/libraryAfter you complete your installation process, to check whether you have installed correctly or not, run the following command and check for the following output:
CHECK 1:
$cd /home/ns-allinone-2.35/ns-2.35 $./nsoutput: % (modulus sign)
CHECK 2:
$cd /home/ns-allinone-2.35/nam-1.15 $./namoutput: nam console window will open For any query comment below.
No comments:
Post a Comment