LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 08-21-2011, 01:58 AM   #1
fahimeh_ak
LQ Newbie
 
Registered: Jul 2009
Posts: 13

Rep: Reputation: 0
Install ns2.29 on Ubunto 11.04(NIST Mobility Patch)


Hi

I want to install ns2.29-nist-mobility on ubunto11.04

according to your last guides I do so:
Code:
Add 'hardy' to /etc/apt/sources.list ( sudo gedit /etc/apt/sources.list )

deb http://76.73.4.58/ubuntu/ hardy-updates main
deb http://76.73.4.58/ubuntu/ hardy universe
deb http://security.ubuntu.com/ubuntu hardy-security main
deb http://security.ubuntu.com/ubuntu hardy-security universe

And : sudo apt-get update && sudo apt-get install g++-3.4
I guess, you already have the other prerequisites ?
They are : sudo apt-get install g++ make autoconf automake libtool \
libx11-dev libxmu-dev libxmu-headers libxt-dev xgraph

cd ns-allinone-2.29/tk8.4.11/ &&
patch -p0 < tk-8.4-lastevent.patch && cd ../ &&
export CC=gcc-3.4 CXX=g++-3.4 && ./install
but the installationstops withthis error:

Code:
============================================================
* Build tcl8.4.11
============================================================
loading cache ./config.cache
checking whether to use symlinks for manpages... no
checking whether to compress the manpages... no
checking whether to add a package name suffix for the manpages... no
checking for gcc... gcc3.4
checking whether the C compiler (gcc3.4  ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
tcl8.3.2 configuration failed! Exiting ...
Tcl is not part of the ns project.  Please see www.Scriptics.com
to see if they have a fix for your platform.
Then I used from the guide below:
Code:
ns-2.29 installation problem #10:

1) Download and extract the original ns.
http://sourceforge.net/projects/nsna...ar.gz/download

2)download and extract the mobility package (ns-2.29-nist-mob-022707.tgz.) inside the ns-allinone directory

3)Follow the Instructions here:
http://www.linuxquestions.org/questi...4/#post4007465

4)Apply this patch:
http://all-time-ns-2.blogspot.com/20...m-in-ns-2.html

5)Apply the patch attached:

6)./install in the ns-allinone directory.
but still I have this error:
Code:
============================================================
* Build tcl8.4.11
============================================================
loading cache ./config.cache
checking whether to use symlinks for manpages... no
checking whether to compress the manpages... no
checking whether to add a package name suffix for the manpages... no
checking for gcc... gcc4.1
checking whether the C compiler (gcc4.1  ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
tcl8.3.2 configuration failed! Exiting ...
Tcl is not part of the ns project.  Please see www.Scriptics.com
to see if they have a fix for your platform.
what I must do now?

please help me!
 
Old 08-21-2011, 03:43 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2010.12, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 9,300

Rep: Reputation: 1352Reputation: 1352Reputation: 1352Reputation: 1352Reputation: 1352Reputation: 1352Reputation: 1352Reputation: 1352Reputation: 1352Reputation: 1352
Quote:
checking whether the C compiler (gcc3.4 ) works... no
Only the native Ubuntu 11.04 compilers will work out of the box :
gcc-4.5, gcc-4.4.
Ubuntu 11.04 has a "hideaway location" for the libgcc_s.so.1,
that is required for gcc(-3.4) to work : /lib/i386-linux-gnu/libgcc_s.so.1

If you have a 32bits Ubuntu, either do a temporary workaround :
sudo ln -s /lib/i386-linux-gnu/libgcc_s.so.1 /usr/local/lib/

Or use a "special compat gcc34/g++34" that comes with its own libgcc_s.so.1 :
gcc34-compat-3.4.6_i386.deb
https://docs.google.com/uc?id=0B7S25...nload&hl=en_US

g++34-compat-3.4.6_i386.deb
https://docs.google.com/uc?id=0B7S25...nload&hl=en_US

→ export CC=gcc34 CXX=g++34 ( Different naming from the gcc-3.4/g++-3.4 ).

A 64bits Ubuntu 11.04 will not work with some or all ns2.

..

Last edited by knudfl; 08-21-2011 at 03:58 AM.
 
Old 08-22-2011, 01:30 AM   #3
fahimeh_ak
LQ Newbie
 
Registered: Jul 2009
Posts: 13

Original Poster
Rep: Reputation: 0
how install gcc

hi
for solving my problem I go back to Ubunto 10.04 and used from your helps to install it.
but now, when I ./install it, I have this error
Code:
`.gnu.linkonce.t._ZN6hdr_bt11packet_sizeENS_11packet_typeEi' referenced in section `.rodata' of bluetooth/lmp.o: defined in discarded section `.gnu.linkonce.t._ZN6hdr_bt11packet_sizeENS_11packet_typeEi' of bluetooth/lmp.o
`.gnu.linkonce.t._ZN6hdr_bt11packet_sizeENS_11packet_typeEi' referenced in section `.rodata' of bluetooth/lmp-link.o: defined in discarded section `.gnu.linkonce.t._ZN6hdr_bt11packet_sizeENS_11packet_typeEi' of bluetooth/lmp-link.o
`.gnu.linkonce.t._ZN6hdr_bt11packet_sizeENS_11packet_typeEi' referenced in section `.rodata' of bluetooth/sco-agent.o: defined in discarded section `.gnu.linkonce.t._ZN6hdr_bt11packet_sizeENS_11packet_typeEi' of bluetooth/sco-agent.o
collect2: ld returned 1 exit status
make: *** [ns] Error 1
Ns make failed!
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems

Last edited by fahimeh_ak; 08-22-2011 at 02:27 AM.
 
Old 08-22-2011, 05:00 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2010.12, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 9,300

Rep: Reputation: 1352Reputation: 1352Reputation: 1352Reputation: 1352Reputation: 1352Reputation: 1352Reputation: 1352Reputation: 1352Reputation: 1352Reputation: 1352
Well, Ubuntu isn't the most reliable for any ns2.

Ubuntu 10.04 : First choice compiler g++-3.4 didn't work here either.
I tried these other three compilers for ns-2.29, editing the Makefile to
1) CPP = g++-3.3
2) CPP = g++34 ( That's the g++34-compat-3.4.6_i386.deb (for Ubuntu 11*)).
3) CPP = gcc-4.1
cd ns-allinone-2.29/ns-2.29/ && make clean && make :
Same error with g++-3.3, g++34. Different errors with g++-4.1.

OS : The safe choice is Cent OS 5.6 or 6.0.
( All ns was originally created on RH→ CentOS.)
Or if you prefer an rpm based OS, that use apt / Synaptic : PCLinuxOS.

..
 
  


Reply

Tags
ns2


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
seeking advice to install 802.11e patch in ns2 stud17 Linux - Newbie 41 01-02-2012 03:31 PM
patch LTE module for ns2 Emna Linux - Newbie 1 03-10-2011 02:59 AM
need 802.11e patch for ns2 stud17 Linux - Software 1 03-09-2011 06:54 AM
integrating patch in ns2 MLinux Linux - Networking 2 11-30-2010 08:26 AM
how to install leach patch in ns2.34 in ubuntu 9.10 anjon.sunny Linux - Newbie 7 08-15-2010 01:09 PM


All times are GMT -5. The time now is 03:42 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration