Ubuntu8.04 install the ns2.33 Simulator

Source: Internet
Author: User
1. the following software needs to be installed in Ubuntu8.04 (you can find it in the new software package manager for convenient installation): 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: cdns-allinone-2.33sudo-i

1. Prerequisites
You need to 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, 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:
Cd ns-allinone-2.33
Sudo-I (this command is to convert to root user permissions)
Enter the password and run the following command:
./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"

Replace "your username" with your username. Change "test" 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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.