LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 03-27-2011, 07:40 AM   #1
parulgaba
LQ Newbie
 
Registered: Mar 2011
Posts: 7

Rep: Reputation: 0
ns-2.29 installation problem


Hi

I am facing certain issues regarding installation of ns2 (2.29.3 version) on ubuntu 10.10
Could anyone please tell me on which version of gcc does ns2.29 works well?
 
Old 03-27-2011, 10:38 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ.
'ns-allinone-2.29.3' will work with Ubuntu. Other versions : No.

Add 'hardy' to /etc/apt/sources.list ( sudo gedit /etc/apt/sources.list )
Code:
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
Quote:
I am facing certain issues
Tell, what the issues are.

More info : LQ Search → Tag = ns229
And : LQ Search → Keyword = ns-allinone

Good luck ! .. ..
 
Old 03-28-2011, 09:53 AM   #3
parulgaba
LQ Newbie
 
Registered: Mar 2011
Posts: 7

Original Poster
Rep: Reputation: 0
Hi,
Thanks for the above guidelines.
It certainly reduced a large number of errors, but still at the end i get the following error message:

collect2: ld returned 1 exit status
make: *** [ns] Error 1
Ns make failed!


Could you please help me regarding this.
 
Old 03-28-2011, 01:34 PM   #4
abutre
LQ Newbie
 
Registered: Mar 2011
Location: Brazil
Posts: 4

Rep: Reputation: 7
Hi parulgaba,

I'm facing this problem as well.

You can see:

...
ypeEi' of bluetooth/sco-agent.o
`.gnu.linkonce.t._ZN8hdr_bnep7hdr_lenEv' referenced in section `.rodata' of bluetooth/scat-form.o: defined in discarded section `.gnu.linkonce.t._ZN8hdr_bnep7hdr_lenEv' of bluetooth/scat-form.o
collect2: ld returned 1 exit status
make: *** [ns] Error 1
Ns make failed!

I think that some library is missing. Did you solve this compilation problem?

Thank you!
 
Old 03-28-2011, 03:02 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
OK, Ubuntu 10.10 is tricky with several versions of ns2.

This is a solution for the 64bits Ubuntu 10.10 : ( not tested in 32bits.)
Edit ns-allinone-2.29/ns-2.29/Makefile , line 37 to : CPP = g++-4.1
cd ns-allinone-2.29/ns-2.29/ && make clean && make.

g++-4.1 is required : sudo apt-get install g++-4.1 : EDIT .. see post #9.

@abutre, post #4 : The fix is for the error, you show.

Last edited by knudfl; 03-29-2011 at 07:39 AM.
 
1 members found this post helpful.
Old 03-28-2011, 03:28 PM   #6
abutre
LQ Newbie
 
Registered: Mar 2011
Location: Brazil
Posts: 4

Rep: Reputation: 7
Hi knudfl,

Thank you for your reply.

I've change the gcc compile to 4.1 in Makefile file.

The error now is another one:

./mac/mac.h:293: error: ‘link_parameter_type_s’ has not been declared
./mac/mac.h:294: error: ‘transmit_status_t’ has not been declared
./sctp/sctp.h:705: error: extra qualification ‘SctpAgent::’ on member ‘DumpSendBuffer’
make: *** [trace/trace.o] Error 1

My system is 32bits. Do you think if i install an ubuntu 64bits and try again it will be ok?

I've already try use gcc 3.3 4.1 4.3 without success

With best regards,
 
Old 03-28-2011, 05:18 PM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 6 : 32bits Ubuntu 10.10, ns-2.29-nist-mob-022707, ref. your other post
http://www.linuxquestions.org/questi.../page3.html#40 ( Post # 40 ).
Quote:
I've change the gcc compile to 4.1 in Makefile file.
You mean g++-4.1 ? Not gcc-4.1 ?

The unpatched ns-2.29 may work OK.
'ns-2.29-nist-mob-022707' : No obvious solution for Ubuntu 10.10, 32 bits.
'ns-2.29-nist-mob-022707' will compile OK on CentOS 5.5, 32bits.
I will check with the 64bits Ubuntu later.
( All ns2 was originally built and tested on CentOS (RHEL). AFAIK.)

..
 
Old 03-28-2011, 11:23 PM   #8
parulgaba
LQ Newbie
 
Registered: Mar 2011
Posts: 7

Original Poster
Rep: Reputation: 0
Hi,

Thank you for the suggestion.
When i tried to install g++ 4.1, i got following errors:

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
g++-4.1 : Depends: gcc-4.1 (= 4.1.2-21ubuntu1) but it is not going to be installed
Depends: gcc-4.1-base (= 4.1.2-21ubuntu1) but it is not going to be installed
Depends: libstdc++6-4.1-dev (= 4.1.2-21ubuntu1) but it is not going to be installed
E: Broken packages


Is it because gcc version is 3.4??

And i am trying to install ns-allinone-2.29 with ns-2.29-nist-mob-022707, for i need to work with pmip6 patch. Please help regarding the issue.
 
Old 03-29-2011, 06:12 AM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 8.
The reason for the conflicts is that Ubuntu 10.10 has some of the gcc-4.1 packages.
But the version are later than required by the Hardy g++-4.1 // libstdc++6-4.1-dev.
The Hardy versions must then be installed manually :
1) gcc-4.1-base http://packages.ubuntu.com/hardy/gcc-4.1-base
2) cpp-4.1 http://packages.ubuntu.com/hardy/cpp-4.1
3) gcc-4.1 http://packages.ubuntu.com/hardy/gcc-4.1
Then you can install g++-4.1 with "sudo apt-get install" or Synaptic.

But Ubuntu 10.10 cannot be used for ns-2.29-nist-mob-022707. 32bit: No. 64bit: No.
EDIT : See post # 10, ns2292-gcc410.patch.

The safe OS choice is CentOS 5.5.
..

Last edited by knudfl; 03-29-2011 at 01:59 PM.
 
Old 03-29-2011, 10:45 AM   #10
abutre
LQ Newbie
 
Registered: Mar 2011
Location: Brazil
Posts: 4

Rep: Reputation: 7
Thank you for yours suggestions. It was very useful

Finally, My ns2.29 and mobility module were compiled successfully!

I would like to share with you.

My ubuntu is 10.04, kernel is 2.6.35.7, ns is ns-2.29.2, the mobility package from NIST is ns-2.29-nist-mob-022707.tgz.

Steps:

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.

Everything works very well.

Thank you!
Attached Files
File Type: txt ns2292-gcc410.patch.txt (11.6 KB, 196 views)
 
1 members found this post helpful.
Old 03-29-2011, 01:57 PM   #11
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
'ns2292-gcc410.patch' : That one I haven't seen before.

Thank you abutre ! May save the day for the OP, @parulgaba.

Will give it a try with the obstinate and stubborn Ubuntu.
 
Old 04-26-2011, 08:32 AM   #12
rosy84
LQ Newbie
 
Registered: Apr 2011
Posts: 18

Rep: Reputation: 0
Hi, everybody

I setup ns2-allinone-2.34 is OK

but when i simulate bittorrent (p2p) is very error

who, run bittorrent (p2p) is ok can you help me
 
Old 04-26-2011, 12:03 PM   #13
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Post # 12, @ rosy84 : Welcome to LQ.

Please read http://linuxsilo.net/docs/smart-questions_en.html
http://www.linuxquestions.org/linux/...Ask_a_Question
This thread is about ns-2.29, which means your question is off topic.
Please start a new thread instead.
http://www.linuxquestions.org/questi...ux-software-2/ > > 'New Thread'

And tell what "bittorrent (p2p)" is, where you got information about the
subject, etc. Info about any added files, patches, etc.
( I never heard about "bittorrent (p2p)" for ns-2.34 before.)

..
 
Old 04-27-2011, 02:24 AM   #14
rosy84
LQ Newbie
 
Registered: Apr 2011
Posts: 18

Rep: Reputation: 0
firstly, Really I'm sorry with question not correct subject.

But, if you say, you never heard about bittorrent(p2p). I will show you.

bittorrent (peer to peer) that means:

it is platform of the Ubittorrent or some program download bittorent.
 
Old 04-27-2011, 03:36 AM   #15
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 14
Quote:
I will show you
""I will show you"" looks like this http://www.hackchina.com/en/cont/157648
I tracked it by using Google .. bt_flashcrowd_star.tcl .. :
( Got the file name from your other thread.)
The idea is, that you show the links to the files and documentation.
http://linuxsilo.net/docs/smart-questions_en.html

The patch is for ns-2.29.(3) ( bittorrent , p2p )


You are still missing out to clarify, why you think, the patch is usable for ns234.
And please confirm, that autosim.o was added to the Makefile,
and compiled into the binary 'ns'. ( 'make clean && make' ? )

Having 2...5 different ns-allinone-2.xx installed at the same time is no problem.
Just don't set any PATH or LD_LIBRARY_PATH to any of those : Not required at all.

..
 
  


Reply

Tags
bittorrent-p2p, clustering-2.29, ns2, p2p-ns2



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
PXE installation problem - can only select A series packages for installation Nylex Slackware 4 08-19-2010 02:15 PM
Installation of Binutils(configure:error:installation or configuration problem:C ...) h_r0019 Linux From Scratch 1 05-05-2007 07:40 AM
Redhat/Linux Installation Support??? Is It Red hat installation problem??? wanux Red Hat 1 08-01-2006 10:32 PM
LiLo Installation problem ?and (GNOME and KDE problem) hitesh_linux Linux - Software 1 01-01-2002 04:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 11:21 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration