Ubuntu 9.10 + int32 2.33 + additional gnuplot and gawk installation manual
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
A strange error occurs, so you can find a solution on the Internet.
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