LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 04-13-2013, 01:44 AM   #16
buptmuye
LQ Newbie
 
Registered: Apr 2013
Location: China
Posts: 18

Original Poster
Rep: Reputation: Disabled

Thank you for the suggestion.

I tested the "test4wcett.tcl" on the ubuntu10.10 yesterday,and it went smoothly.
The strange thing is that the "make clean && make depend && make" process and "$ns test4wcett.tcl" went fine with gcc4.4 g++4.4.I had thought it would abort without "export CC=gcc41 CXX=g++41".How could that be?
 
Old 04-13-2013, 03:18 AM   #17
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,385

Rep: Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601
# 16 .
Quote:
"make clean && make depend && make"
..
I had thought it would abort without "export CC=gcc41 CXX=g++41"
1) That's because you kept the Makefile. Which probably says :
Line 36 : CC = gcc41
Line 37 : CPP = g++41

2) 'make depend' is not required when ./install has been run.

3) And finally : No reason at all to do "make clean && make".
** Please read post #6. The procedure is:
a) cd ns-allinone-2.31/
b) tar xvf crcn-ns2.31.tar.gz
c) export CC=gcc41 CXX=g++41 && ./install

-

Last edited by knudfl; 04-13-2013 at 03:22 AM.
 
Old 06-26-2013, 04:49 AM   #18
Shuyu
LQ Newbie
 
Registered: Jun 2013
Posts: 6

Rep: Reputation: Disabled
what about Ubuntu12.04 64bit?

Quote:
Originally Posted by knudfl View Post
Welcome to LQ.

A failing $ ns(-crcn) test4wcett.tcl : Means a failed CRCN build.

The latest instructions, post #5 here
http://www.linuxquestions.org/questi...rror-940388/#5

Ubuntu 12.04, 32bits : gcc / g++ version 4.1.2 must be used :
export CC=gcc41 CXX=g++41 && ./install

gcc41 / g++41 for Ubuntu 11.10 .. 12.x, post # 47 here ..
http://www.linuxquestions.org/questi...532/page4.html

CRCN examples / test results : crcn-examples-032013.tar.bz2
https://docs.google.com/file/d/0B7S2...it?usp=sharing
And https://docs.google.com/file/d/0B7S2...it?usp=sharing

All LQ crcn http://www.linuxquestions.org/questions/tags/crcn/

-
Hi sir

What about Ubuntu12.04 64bit? is that compatible with ns2.31 and crcn.
I have to use NS2 to simulate crcn, but there are always some problems when I was using ns2.
Please help me.

Thanks a lot

Shuyu
 
Old 06-26-2013, 07:21 AM   #19
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,385

Rep: Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601
Post # 18, @Shuyu : Welcome to LQ.

Ubuntu recommends the 32bits version : For everything.
All ns2 is for a 32bits OS.
Some versions of ns-allione-2.xx, and some patches can be used on a 64bits OS.
But : The result is always a poor validation ('make test') result !

For all { ns -2.26 .. 2.33 (2.34) }, the 64bits gcc34 / g++34 can be used :
$ sudo dpkg -i compat-gcc34-3.4.6-ubuntu1204-1_amd64.deb compat-gcc-34-c++_3.4.6-20_amd64.deb
gcc34 https://docs.google.com/file/d/0B7S2...it?usp=sharing
g++34 https://docs.google.com/file/d/0B7S2...it?usp=sharing

a) cd ns-allinone-2.31/
b) tar xvf crcn-ns2.31.tar.gz
c) export CC=gcc34 CXX=g++34 && ./install

-
 
Old 06-26-2013, 07:26 AM   #20
Shuyu
LQ Newbie
 
Registered: Jun 2013
Posts: 6

Rep: Reputation: Disabled
Thanks sir

If the some tests failed, Did it mean that I cannot use NS2?

Thanks
 
Old 06-26-2013, 07:39 AM   #21
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,385

Rep: Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601
# 20 .

Some tests will often fail, also with a 32bits OS.


So it's do and try : There is a good chance that everything will work.

-
 
Old 06-26-2013, 08:17 AM   #22
Shuyu
LQ Newbie
 
Registered: Jun 2013
Posts: 6

Rep: Reputation: Disabled
Thanks.

BTW, if I don't use crcn, can I simulate cognitive radio by adding new protocol in ns2?

Shuyu
 
Old 06-28-2013, 05:47 PM   #23
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,385

Rep: Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601
# 22 .

Which new protocol ?
 
Old 06-29-2013, 03:53 AM   #24
Shuyu
LQ Newbie
 
Registered: Jun 2013
Posts: 6

Rep: Reputation: Disabled
I will use ns2 to simulate cognitive radio ad hoc networks to consider new routing protocols designed by myself. may be based on AODV protocol.
 
Old 06-29-2013, 04:27 AM   #25
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,385

Rep: Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601
# 22, # 24 .

Why not use a later ns2 version for your projects ?
( ns-2.34 or ns-2.35 ).
I.e. ns-2.30, 2.31, 2.32 are not amongst the best versions, AFAIK.

Anyway, good luck with your new protocols.

P.S. : There are some hits with Google .. ns2 "cognitive radio ad hoc network" ..
https://www.google.com/webhp?hl=all#...ad+hoc+network

-

Last edited by knudfl; 06-29-2013 at 04:29 AM.
 
Old 06-29-2013, 04:40 AM   #26
Shuyu
LQ Newbie
 
Registered: Jun 2013
Posts: 6

Rep: Reputation: Disabled
The main problem is the CRCN patch can't be used on ns2.35. I consider that using ns2.31 with CRCN may be easier.

Thanks
 
Old 12-29-2015, 12:31 AM   #27
pjfmeng
LQ Newbie
 
Registered: Dec 2015
Posts: 3

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
Welcome to LQ.

A failing $ ns(-crcn) test4wcett.tcl : Means a failed CRCN build.

The latest instructions, post #5 here
http://www.linuxquestions.org/questi...rror-940388/#5

Ubuntu 12.04, 32bits : gcc / g++ version 4.1.2 must be used :
export CC=gcc41 CXX=g++41 && ./install

gcc41 / g++41 for Ubuntu 11.10 .. 12.x, post # 47 here ..
http://www.linuxquestions.org/questi...532/page4.html

CRCN examples / test results : crcn-examples-032013.tar.bz2
https://docs.google.com/file/d/0B7S2...it?usp=sharing
And https://docs.google.com/file/d/0B7S2...it?usp=sharing

All LQ crcn http://www.linuxquestions.org/questions/tags/crcn/

-


can you give a new patch ,the old link is overdue.

thank you very much
 
Old 01-06-2016, 06:27 PM   #28
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,385

Rep: Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601
Re #27, @pjfmeng.

crcn_ns231.patch https://drive.google.com/file/d/0B7S...ew?usp=sharing

ns231_gcc44.patch https://drive.google.com/file/d/0B7S...ew?usp=sharing

crcn-examples_06.2015.tar.gz https://drive.google.com/file/d/0B7S...ew?usp=sharing

* CentOS 6 can hopefully still be used for CRCN. (Updates may spoil the CRCN usability?)
* No new Ubuntu OS can be used !


-
 
  


Reply

Tags
crcn, g++34-compat64, gcc34-compat64, 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
ns-2 CRCN patch. Testing examples problem cosdag Linux - Software 6 12-09-2015 09:07 PM
CRCN ns2 add channel GUI nam throughput problem Khaled ELmishad Linux - Software 37 12-05-2013 02:23 AM
want to install ns2.29.3 along with mannasim patch for ns2.29 jeevanpinto Linux - Software 4 10-02-2013 12:09 AM
crcn ns2 add channel GUI nam throughput problem Khaled ELmishad Programming 1 05-12-2012 08:37 AM
problem in displaying throughput in crcn patch in ns2 humairaafzal73 Linux - Software 0 02-07-2012 04:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 07:56 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