Installing the ns-allinone-2.35 on the Win7_64bit + ubuntu-12.04-desktop-amd64+vmware-workstation-full-10.0.1-1379776 platform

Source: Internet
Author: User

Step1. ns-allinone-2.35: Http://www.isi.edu/nsnam/ns/ns-build.html#allinone

Step2. Open the terminal in the virtual machine. Shortcut to open Terminal: ctr+shift+t

Step3. #sudo apt-get Update//newly installed system run first to avoid software-dependent errors

Step4. # sudo apt-get install build-essential

Step5. # sudo apt-get install tcl8.4 tcl8.4-dev tk8.4 Tk8.4-dev

Step6. # sduo Apt-get Install Libxmu-dev libxmu-headers

STEP7. first copy the NS-ALLINONE-2.35.TAR.GZ installation package to:/home, then unzip: sudo tar-xzf ns-allinone-2.35.tar.gz. You can also unzip the installation package manually.

STEP8. cd ns-allinone-2.35 #定位到安装目录 (Files after decompression)
STEP9. sudo./install #开始安装

....................................................

prompt after installation is complete

IMPORTANT Notices:
(1) You must put/home/ub-administrator/ns-allinone-2.35/otcl-1.14,/home/ub-administrator/ Ns-allinone-2.35/lib,     into your ld_library_path environment variable.     If It complains about X libraries, add path to your X libraries     into Ld_library_path .     If You is using CSH, you can set it like:         setenv Ld_library_path     If You is using SH, you can set it like:         export Ld_library_path =
(2) must put/home/ub-administrator/ns-allinone-2.35/tcl8.5.10/library into your tcl_library environmental & nbsp;   variable. Otherwise Ns/nam would complain during startup.
After these steps, you can now run the NS Validation suite with CD ns-2.35;./validate

STEP10. sudo gedit ~/.bashrc #打开. BASHRC file to change environment variables

step11. add content at the end of the file:

Export path= $PATH:/home/ub-administrator/ns-allinone-2.35/bin:/home/ub-administrator/ns-allinone-2.35/ Tcl8.5.10/unix:/home/ub-administrator/ns-allinone-2.35/tk8.5.10/unix

Export Ld_library_path=/home/ub-administrator/ns-allinone-2.35/otcl-1.14:/home/ub-administrator/ Ns-allinone-2.35/lib

Export tcl_library=/home/ub-administrator/ns-allinone-2.35/tcl8.5.10/library

Note: The contents of the red font come from the post-installation prompt, which is the path behind the put of you must.

STEP12. after you save the. BASHRC, close terminal, and then reopen terminal, and then enter NS, which appears%, the installation succeeds.

If you encounter problems, you can re-execute the./install.

Installing the ns-allinone-2.35 on the Win7_64bit + ubuntu-12.04-desktop-amd64+vmware-workstation-full-10.0.1-1379776 platform

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.