LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-21-2014, 09:51 AM   #1
hamdan
LQ Newbie
 
Registered: Nov 2014
Posts: 19

Rep: Reputation: Disabled
problem in NS2 installation basic guide


hi there,
i tried installing ns2 in ubuntu 12.34 and i followed this blog.
http://anupamasikchiwsn.blogspot.in/
after all the updates i did ./install
and now i am stuck with this error
In file included from src_rtg/sragent.cc:53:0:
./trace/cmu-trace.h:169:10: error: ‘void CMUTrace::format_rca(Packet*, int)’ cannot be overloaded
./trace/cmu-trace.h:164:10: error: with ‘void CMUTrace::format_rca(Packet*, int)’
make: *** [src_rtg/sragent.o] Error 1
Ns make failed!

please help me.
thanks in advance
 
Old 11-21-2014, 10:09 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 19,002

Rep: Reputation: 4333Reputation: 4333Reputation: 4333Reputation: 4333Reputation: 4333Reputation: 4333Reputation: 4333Reputation: 4333Reputation: 4333Reputation: 4333Reputation: 4333
Quote:
Originally Posted by hamdan View Post
hi there,
i tried installing ns2 in ubuntu 12.34 and i followed this blog.
http://anupamasikchiwsn.blogspot.in/
after all the updates i did ./install
and now i am stuck with this error
In file included from src_rtg/sragent.cc:53:0:
./trace/cmu-trace.h:169:10: error: ‘void CMUTrace::format_rca(Packet*, int)’ cannot be overloaded
./trace/cmu-trace.h:164:10: error: with ‘void CMUTrace::format_rca(Packet*, int)’
make: *** [src_rtg/sragent.o] Error 1
Ns make failed!

please help me.
thanks in advance
So, the instructions you followed were for installing NS2 on Ubuntu 10.04...and you used them to install it on Ubuntu 12.34??? And you are aware that there IS no version 12.34 of Ubuntu, right??? And you don't say what version of NS2 you're trying to install, but there are many packages to choose from, along with common installation problems on their website:
http://www.isi.edu/nsnam/ns/ns-problems.html
 
Old 11-21-2014, 10:36 AM   #3
hamdan
LQ Newbie
 
Registered: Nov 2014
Posts: 19

Original Poster
Rep: Reputation: Disabled
hi TBOne
thanks for the reply,
well its ubuntu 12.04 and i want to install ns2.34.can you suggest me a good blog to start with on my ubuntu?
thanks in advance
 
Old 11-21-2014, 12:11 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 19,002

Rep: Reputation: 4333Reputation: 4333Reputation: 4333Reputation: 4333Reputation: 4333Reputation: 4333Reputation: 4333Reputation: 4333Reputation: 4333Reputation: 4333Reputation: 4333
Quote:
Originally Posted by hamdan View Post
hi TBOne
thanks for the reply,
well its ubuntu 12.04 and i want to install ns2.34.can you suggest me a good blog to start with on my ubuntu?
thanks in advance
Did you bother putting "how to install ns2.34 on ubuntu 12.04" into Google??? Amazingly, the VERY FIRST HIT is:
http://ns2-ubuntu.blogspot.com/

...among many others. Try to look things up for yourself, before posting.
 
Old 11-21-2014, 12:44 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,684

Rep: Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284
@hamdan : Welcome to LQ.

Blog´s and other informations you can find on the Internet,
are often written by young students, who are working
with ns2 and a "Linux OS" for the first time.
Some information may be valid the day it was written.
But : Things change → OS´s are updated, etc.

`ns-allinone-2.34' , Ubuntu 12.04 and later :
$ sudo apt-get install \
g++ g++-4.4 autoconf automake make patch libtool libxmu-dev xgraph

Unpack ns-allinone-2.34.tar.gz in /home/name/:
$ tar xvf ns-allinone-2.34.tar.gz
$ cd ns-allinone-2.34/
$ patch -p0 < otcl_ns234_gcc-4.4.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing
$ export CC=gcc-4.4 CXX=g++-4.4 && ./install
$ cd ns-2.34/
$ sudo make install
... That's it. Nothing more. And you can do simulations.

Nam : Use a package from post #2 here ....
http://www.linuxquestions.org/questi...-4175524760/#2

-

Last edited by knudfl; 11-21-2014 at 12:48 PM.
 
  


Reply


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installation problem: Ns2.29 Aska123 Linux - Wireless Networking 4 04-06-2013 08:30 AM
problem with ns2.27 installation IMEN SOUID Linux - Software 2 03-07-2013 01:32 PM
ns2.29.3 installation on fedora 15 , nam installation problem Narges Linux - Networking 5 10-31-2011 11:09 AM
ns2 installation problem kuberninad Linux - Newbie 2 10-04-2009 02:28 PM
NS2 installation problem on solaris 10 capricorn80 Solaris / OpenSolaris 19 11-02-2006 03:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:43 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration