Install ns in linux

Source: Internet
Author: User
Install ns in linux-general Linux technology-Linux technology and application information. For more information, see. Before installing the ns-allinone-x.xx on a linux desktop, ensure that the machine has been installed:
Gcc, g ++, make, libx11-dev, x-window-system-dev
Install the ns-allinone.2.29 on debian3.1 r2 "sarge", kernel 2.6.8-2-386

(1) set the environment
I put the ns-allinone-2.29 under $ HOME and set the environment variable:
NSPATH = $ HOME/ns-allinone-2.29
PATH = $ NSPATH/bin: $ NSPATH/tcl8.4.11/unix: $ NSPATH/tk8.4.11/unix: $ PATH
LD_LIBRARY_PATH = $ NSPATH/otcl-1.11: $ NSPATH/lib
TCL_LIBRARY = $ NSPATH/tcl8.4.11/library
Export nspath path LD_LIBRARY_PATH TCL_LIBRARY

(2) reinstall ns
To reinstall ns, you only need to install the ns-x.xx, the environment does not need to re-install
Put the ns-x.xx in any directory (such as $ HOME, ns-2.29), enter the ns-x.xx, execute
$./Configure -- with-tcl = $ NSPATH/tcl8.4.11 -- with-otcl = $ NSPATH/otcl-1.11 --
With-tclcl = $ NSPATH/tclcl-1.17
$ Make
Set Environment
$ Unlink $ NSPATH/bin/ns
$ Export PATH = $ HOME/ns-x.xx: $ PATH
You can run the newly installed ns.

(2) Problem Solving
Generally, the installation should be smooth as long as the Environment meets the requirements.
But there are also problems

Question 1:
Checking system version (for dynamic loading )...
./Configure: line 7624: syntax error near unexpected token ')'
./Configure: line 7624: 'osf *)'
Tcl8.3.2 configuration failed! Exiting...
Tcl is not part of the ns project.

Solution:
Under the ns-allinone-x.xx directory
$ Grep 'System = MP-RAS-'*/*-n
$ Grep 'System = MP-RAS-'*/*-n
$ Grep 'System = MP-RAS-'*/*-n
Put
System = MP-RAS-'awk' {print $3} '/etc/. relid''
Changed:
System = MP-RAS-'awk' {print $3} '/etc/. relid'
That is, there is an extra 'number in that line.
Question 2:
Make: *** [tk3d. o] Error 1
Installing libx11-dev can solve problems
Question 3:
Can't find X pair des
Otcl-1.11 configuration failed Exiting...
Installing x-window-system-dev can solve the problem.
Question 4:
Make: g ++: Command not found
Make: *** error 127
Tclcl-1.17 make failed! Exiting...
Install g ++

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.