LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 01-12-2015, 08:09 AM   #16
Harsh Vaidya
LQ Newbie
 
Registered: Oct 2014
Posts: 14

Original Poster
Rep: Reputation: Disabled

If i installed ns2.31 twice in two different folder. Out one i update ns2 with your patches and another one just leave like that.

then it'll be possible to run both program.
 
Old 01-12-2015, 09:28 AM   #17
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156
← #16 .

Yes, you have have as many times ns-2.31 as you want.
And all other ns2 versions too : All installed on one OS.

The trick is to use a named copy of the executable 'ns'.
Like $ cp ns ns231-crcn , etc. etc.


And no : You will not be able to use Ubuntu 14.04 for WCETT.


-
 
Old 01-12-2015, 02:53 PM   #18
Harsh Vaidya
LQ Newbie
 
Registered: Oct 2014
Posts: 14

Original Poster
Rep: Reputation: Disabled
that patch file you sent me is not working properly or am i doing something wrong.

Whenever i tried to patch my ns2 its just get into something like loop.

it is not patchnig properly.
 
Old 01-12-2015, 03:16 PM   #19
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156
← #18 .

I made two test builds today with crcn_ns231.patch : No issues.
1) tar xvf ns-allinone-2.31.tar.gz
2) Copy the patch to ns-allinone-2.31/
3) cd ns-allinone-2.31/
4) patch -p0 < crcn_ns231.patch
..... Etc. etc.


-
 
1 members found this post helpful.
Old 01-12-2015, 04:30 PM   #20
Harsh Vaidya
LQ Newbie
 
Registered: Oct 2014
Posts: 14

Original Poster
Rep: Reputation: Disabled
after solving other errors i ended up with this error >


make: *** [common/scheduler.o] Error 1
Ns make failed!



that error occured during packet.h file execution.
 
Old 01-12-2015, 05:33 PM   #21
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156
← #20 .

There shouldn't be any errors at all.
You can copy / paste this command ...
export CC=gcc41 CXX=g++41 && ./install
... and leave the computer for a couple of minutes.
Then you should have ns-allinone-2.31/ns-2.31/ns

? Which errors do you observe ?


-
 
1 members found this post helpful.
Old 01-13-2015, 02:22 AM   #22
Harsh Vaidya
LQ Newbie
 
Registered: Oct 2014
Posts: 14

Original Poster
Rep: Reputation: Disabled
I already pasted that error message.

that make error .
 
Old 01-13-2015, 04:20 AM   #23
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156
← #20, #22 .
make: *** [common/scheduler.o] Error 1 :
... is a result of an error.

But the again : A normal setup isn't showing any errors.
? What's the reply from these commands :
1) $ which gcc41
2) $ which g++41

-
 
1 members found this post helpful.
Old 01-13-2015, 04:34 AM   #24
Harsh Vaidya
LQ Newbie
 
Registered: Oct 2014
Posts: 14

Original Poster
Rep: Reputation: Disabled
I am using CC=gcc and CXX=g++.

lets see, i am again re-installing from the start. hope i wouldn't encounter any error.
 
Old 01-13-2015, 05:03 AM   #25
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156
← #24 .
Quote:
I am using CC=gcc and CXX=g++
Why ? You won't succeed.
The default Ubuntu 14.04 gcc is version 4.8.2.

You are supposed to use gcc41/g++41 : Read Post #14,
with the reference to post #47 here
http://www.linuxquestions.org/questi...532/page4.html
→ →
gcc41-compat*1210 https://docs.google.com/file/d/0B7S2...FQY2VJbjA/edit
g++41-compat https://docs.google.com/file/d/0B7S2...jN2M2MGU4/edit
* Click the packages, then your 'Package Installer' will install the packages.
* Or :
sudo dpkg -i gcc41-compat-4.1.2-ubuntu1210_i386.deb g++41-compat-4.1.2_i386.deb
... Then reboot, and the new compilers can be used.


-

Last edited by knudfl; 01-13-2015 at 05:28 AM.
 
1 members found this post helpful.
Old 01-13-2015, 05:45 AM   #26
Harsh Vaidya
LQ Newbie
 
Registered: Oct 2014
Posts: 14

Original Poster
Rep: Reputation: Disabled
My friend kundlf,

My program is now working fine. Thanks to you.

And its working fine with $export CC=gcc CXX=g++ command.

If i would have known you, i have definitely given you a party.


Thank you so much

If there was any further query i will contact you.


Once again thank you.
 
Old 01-13-2015, 07:24 AM   #27
banerjee
Member
 
Registered: Oct 2014
Posts: 32
Blog Entries: 1

Rep: Reputation: Disabled
how to implement cryptography algorithms over routing protocols in ns2

dear friends,
anybody please give some idea about how to implement cryptographic algorithms over routing protocols in MANET, for example, transfer RSA encrypted files using AODV, use Shamir's secret sharing using AOMDV. which codes need to modify or write?
 
Old 01-13-2015, 07:39 AM   #28
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156
Post #27, @banerjee : Welcome to LQ.

This thread is about CRCN only : No answers for off-topic questions.
Please read http://www.linuxquestions.org/questi...estion.-71791/
. http://www.linuxquestions.org/linux/rules.html
. http://www.linuxquestions.org/linux/...Ask_a_Question

Please start a new thread http://www.linuxquestions.org/questi...ux-software-2/
→ → "New thread".


-

Last edited by knudfl; 01-13-2015 at 03:13 PM.
 
Old 01-13-2015, 03:08 PM   #29
Harsh Vaidya
LQ Newbie
 
Registered: Oct 2014
Posts: 14

Original Poster
Rep: Reputation: Disabled
Hey kundlf,

I tried CentOs 6. And you know what it is giving me no error at all.

Thanks for the advice.
 
  


Reply

Tags
crcn, 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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] to run TCL script on ns2 for udp lite protocol sakibamu Linux - Software 2 01-03-2014 02:30 AM
[SOLVED] Can anyone tell how to run SPIN protocol in ns2 lintreesa Linux - Software 3 05-26-2013 03:04 PM
I need a professional one who can guide me to run GPSR routing protocol in Ns2.34 ste sowmyabs Linux - Software 1 03-03-2013 04:08 AM
NS2 S-MAC Protocol Sleep Time Query ulyssues.fam Linux - Newbie 0 04-14-2012 10:01 AM
weight throwing protocol using ns2 code,diffusion based protocol using ns2 code rajrupa Linux - Networking 1 05-27-2010 04:39 AM


All times are GMT -5. The time now is 09:34 AM.

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