Ubuntu9.10 + NS22.33 + additional gnuplot and gawk Installation manuals

Source: Internet
Author: User
Links, address for download in the ISI official can be quickly downloaded (for CERNET users) jacob for my user name, pay attention to change cd/home/jacobtarxvfzns-allinone-2.33.t

First of all, I declare that this Article "Ubuntu 9.10 + NS2 2.33 + Add gnuplot and gawk installation" is not completely original. By collecting some online information, you can modify it according to your actual operation experience.

1. Download ns-allinone-2.33.tar.gz
Download it from the ISI official website soon (for CERNET users)

Jacob is my username. Pay attention to the modification.
Cd/home/jacob
Tar xvfz ns-allinone-2.33.tar.gz

2. install several required software packages:
Sudo apt-get install build-essential

Sudo apt-get install tcl8.4 tcl8.4-dev tk8.4 tk8.4-dev

Sudo apt-get install libxmu-dev

3. Then you can install:
Cd/home/yyang/ns-allinone-2.33.tar.gz
Sudo./install
Then we can see that the command line is very eye-catching and quickly tumble. An error is reported suddenly at the end:

Ld-shared-o libotcl. so otcl. o
Otcl. o: In function 'otcldispatch ':
/Home/yyang/ns-allinone-2.33/otcl-1.13/otcl. c: 495: undefined reference to '_ stack_chk_fail_local'
Otcl. o: In function 'otcl _ init ':
/Home/yyang/ns-allinone-2.33/otcl-1.13/otcl. c: 2284: undefined reference to '_ stack_chk_fail_local'
Ld: libotcl. so: hidden symbol' _ stack_chk_fail_local 'isn' t defined
Ld: final link failed: Nonrepresentable section on output
Make: *** [libotcl. so] Error 1
Otcl-1.13 make failed! Exiting...
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems

Very strange error, so the Internet to find a solution, in http://www.linuxidc.com/Linux/2010-03/25105.htm

Solution:
Previously, gcc 4.0 used ld-share to generate a shared library. However, when it reaches version 4.0 or later (My gcc version 4.4.1), this command is changed to gcc-share.

Solution Process:
Cd/home/yyang/ns-allinone-2.33/otcl-1.13
Sudo gedit configure. in
Place
SHLIB_LD = "ld-shared"
Change
SHLIB_LD = "gcc-shared"
Save and exit, and then
Sudo gedit configure
Put the 5518 rows
SHLIB_LD = "ld-shared"
Change
SHLIB_LD = "gcc-shared"
Save and exit, and then
Cd ..
Go back to the directory ns-allinone-2.33 and run
Sudo./install

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.