Ubuntu12.04 installation ns2.35

Source: Internet
Author: User

Tar zxvfns-allinone-2.35.tar.gz

CD ns-allinone-2.35

./install


A problem occurred:

1.make: * * * [TK3D.O] Error 1

tk8.5.10 make failed! Exiting ...

Installing Libx11-dev can solve the problem

sudo apt-get install Libx11-dev


2.can ' t find X includes
otcl-1.14 Configuration failed! Exiting ...

Installing Libxt-dev can solve the problem

sudo apt-get install Libxt-dev


3.make:g++: Command not found
Make: * * [tcl2c++] Error 127
tclcl-1.20 make failed! Exiting ...

First input g++ See g++ have been installed, originally my g++ is not installed well if not by the installation

sudo apt-get install g++


Finally, install the settings environment variable under/home/user edit. BASHRC

Export ns_home=/home/chenkai/ns/ns-allinone-2.35
Export path= $NS _home/nam-1.15: $NS _home/tcl8.5.10/unix: $NS _home/tk8.5.10/unix: $NS _home/bin: $PATH
Export ld_library_path= $NS _home/tcl8.5.10/unix: $NS _home/tk8.5.10/unix: $NS _home/otcl-1.14: $NS _home/lib: $LD _ Library_path
Export tcl_library= $NS _home/tcl8.5.10/library

Enter the source. BASHRC to make the environment variable valid.


Finally verify NS.

Input NS in console

%

Displays the installation success.









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.