1. install the following software in Ubuntu8.04 (you can find the most convenient installation in the new software package manager): build-essential, tcl8.4, tcl8.4-dev, tk8.4-dev, libxmu-dev.2. installation can decompress the ns-allinone-2.33 to/home/test (where test is the name of the current user ). terminal execution: sudo-I
1. Prerequisites
Install the following software in Ubuntu 8.04 (which can be easily installed in the new software package manager): build-essential, tcl8.4, tcl8.4-dev, tk8.4-dev, and libxmu-dev.
2. Installation
You can decompress the ns-allinone-2.33 to/home/test (where test is the name of the current user ).
Terminal execution:
Sudo-I (this command is to convert to root user permissions)
Enter the password and run the following command:
Cd/home/test/ns-allinone-2.33
./Install
Installation starts.
3. Set Environment Variables
There is a hidden file ". bashrc" in the/home/test directory. You can edit the file to set environment variables. If you are not familiar with the vi Screen Editor, you can use gedit to edit the file:
Terminal:
Gedit. bashrc
Add the following content at the end of the. bashrc file:
Export PATH = "$ PATH:/home/" your username "/ns-allinone-2.33/bin:/home/" your username "/ns-allinone-2.33/tcl8.4.18/unix: /home/"your username"/ns-allinone-2.33/tk8.4.18/unix"
Export LD_LIBRARY_PATH = "$ LD_LIBRARY_PATH:/home/" your username "/ns-allinone-2.33/otcl-1.13:/home/" your username "/ns-allinone-2.33/lib"
Export TCL_LIBRARY = "$ TCL_LIBRARY:/home/" your username "/ns-allinone-2.33/tcl8.4.18/library"
"Your username"Question changed to your username, my username is" test "and changed to test.
Close the file.
Run the following command on the terminal:
Source. bashrc
Set.
4. Test
The simplest test is input on the terminal:
Ns
If % is output on the screen, the installation is successful!
To test whether the installation is successful, enter the terminal
Cd/ns-allinone-2.33/ns-2.33
./Validate
This method takes a lot of time.