LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-06-2015, 02:29 AM   #1
jainshubh017
LQ Newbie
 
Registered: Dec 2014
Posts: 22

Rep: Reputation: Disabled
ns2.1b9a installation


i am trying to install ns2.1b9a in my system.can anybody list the steps involved in installation.

system-ubuntu 14.04
32 bit
 
Old 04-06-2015, 04:43 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
There is a (very) small chance that you can use ns2.1b9a with Ubuntu 14.04 - 32.

But rather than building a new (old) compiler (gcc-3.3.6) for Ubuntu 14.04 :
I suggest that you upload "the protocol to be added" :
(Multi Channel MAC) to Google Docs (or supply another link to the code) :
Then I will try making a patch for a later ns2 version.


Note : "ns-allinone-2.1b9a-gcc32.tar.gz" :
Can be built on a contemporary (rpm based) OS with gcc/g++ -3.3.6 .
http://mohittahiliani.blogspot.dk/20...-8-ubuntu.html
( g++-3.3.x may not work with any new Ubuntu,
i.e. any g++-3.x tends to fail with ns2-<any-version> ).

-
 
Old 04-06-2015, 07:54 AM   #3
jainshubh017
LQ Newbie
 
Registered: Dec 2014
Posts: 22

Original Poster
Rep: Reputation: Disabled
Dear knudfl give me your email id .i will send the code .mine is jainshubh017@gmail.com .
Thanks for ur help.
 
Old 04-11-2015, 01:50 PM   #4
jainshubh017
LQ Newbie
 
Registered: Dec 2014
Posts: 22

Original Poster
Rep: Reputation: Disabled
How to install gcc3.3 and g++3.3 in ubuntu??
 
Old 04-11-2015, 02:25 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #4 :
There are no gcc version 3.3 compilers for Ubuntu 14.04 !
Please read post #2 : g++-3.x will fail with Ubuntu, any ns2.


Re #3 : Got your code. Not working in ns-allinone-2.1b9a so far.
.. I will try with a very old OS for better luck.


-
 
Old 04-11-2015, 02:58 PM   #6
jainshubh017
LQ Newbie
 
Registered: Dec 2014
Posts: 22

Original Poster
Rep: Reputation: Disabled
I can try it on older version of ububtu like ububtu 9.
But how to install gcc3.3 on that version??
I am trying to develop a new mac protocol for cognitive radio network for my engineering project.

Last edited by jainshubh017; 04-11-2015 at 03:04 PM.
 
Old 04-11-2015, 03:08 PM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #6.

Ubuntu 8.04 has gcc-3.3 and g++-3.3 (1:3.3.6-15ubuntu4).
 
Old 04-21-2015, 04:01 PM   #8
jainshubh017
LQ Newbie
 
Registered: Dec 2014
Posts: 22

Original Poster
Rep: Reputation: Disabled
i follow http://itantenna.blogspot.in/2011/11...untu-1004.html and install ubuntu 10.04 then follow the stepsof installing ns2.1b9a.

then copy paste the code files into respective directories and run make.soved few variable declaration errors then getting this error now-
g++-3.3 -o common/ptypes2tcl common/ptypes2tcl.o
./common/ptypes2tcl > gen/ptypes.cc
Segmentation fault
make: *** [gen/ptypes.cc] Error 139

what i can do??

Last edited by jainshubh017; 04-21-2015 at 04:05 PM.
 
Old 04-21-2015, 06:45 PM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #8.

No good advices here http://itantenna.blogspot.in/2011/11...untu-1004.html
----

Assume a 32bits (i686 (i386)) Ubuntu 10.04.4 .

Install the compilers : $ sudo dpkg -i --force-depends \
cpp-3.3_3.3.6-8ubuntu1_i386.deb g++-3.3_3.3.6-10_i386.deb \
gcc-3.3_3.3.6-10_i386.deb gcc-3.3-base_3.3.6-10_i386.deb \
libstdc++5_3.3.6-15ubuntu1_i386.deb \
libstdc++5-3.3-dev_3.3.6-15ubuntu2_i386.deb
.. from http://old-releases.ubuntu.com/ubunt...ain/g/gcc-3.3/

Ref. http://mohittahiliani.blogspot.dk/20...-8-ubuntu.html
$ tar xvf ns-allinone-2.1b9a-gcc32.tar.gz
$ cd ns-allinone-2.1b9a/
$ patch -p1 < ns21b9a.patch
$ export CC=gcc-3.3 CXX=g++-3.3
$ ./install : No errors here.

----
 
Old 04-22-2015, 07:17 AM   #10
jainshubh017
LQ Newbie
 
Registered: Dec 2014
Posts: 22

Original Poster
Rep: Reputation: Disabled
Dear knudfl,
Ns2.1b9a install just fine but error came when i try to implement mmac protocol in ns2.
I have already sent mmac code files to you earlier.
How can i solve that error
 
Old 04-22-2015, 12:05 PM   #11
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #10.

Actually I did already have "mmac/" : '19 Mar 2012'
http://www.linuxquestions.org/questi...lation-935144/

I did a test build today with "ns-allinone-2.1b9a-gcc32" + mmac using g++-2.95 ..
Slackware 8.1 : No luck with the mmac code. A bug ?

Anyway I think you will have to fix the code to use a later gcc version (3.3.6)

-
 
Old 04-22-2015, 03:21 PM   #12
jainshubh017
LQ Newbie
 
Registered: Dec 2014
Posts: 22

Original Poster
Rep: Reputation: Disabled
dear knudfl,
there were few errors of type variable undeclare which i have solved by comparing modified mmac files with original files.
after these 4-5 errors i am getting error-
Segmentation fault
make: *** [gen/ptypes.cc] Error 139

do you have any other cognitive radio mac protocol code,it will be a great help..
 
Old 04-23-2015, 01:50 AM   #13
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #12.
Quote:
make: *** [gen/ptypes.cc]
Appears when you are doing something wrong.
? Is your OS 64bits ? The command 'uname -m' will tell.
Ns2 was made for a 32bits OS.


"Cognitive radio mac protocol" : CRCN, CRN, TFRC-CRAHN.

CRCN http://faculty.uml.edu/Tricia_Chigan..._Simulator.htm
. http://www.linuxquestions.org/questions/tags/crcn/
. http://www.linuxquestions.org/questi...or-4175499622/
. https://groups.google.com/forum/?fro...crcn|sort:date

CRN https://groups.google.com/forum/?fro...k/BDrQ_dvW4HwJ

TFRC-CRAHN http://www.linuxquestions.org/questions/tags/crahn-ns2/


-
 
Old 04-23-2015, 04:14 AM   #14
jainshubh017
LQ Newbie
 
Registered: Dec 2014
Posts: 22

Original Poster
Rep: Reputation: Disabled
dear knudfl, CRN CRCN and TFRC-CRAHN are extension for cognitive radio simulation.
for my project i need to modify some cognitive radio mac protocol,do u have any CR-mac protocol??

my system is 32 bits..
 
Old 04-23-2015, 06:57 AM   #15
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #14.

Well, there is the (not tested) crn__greedy-mac from "greedy-mac.zip" = greedy mac.docx.

greedy-mac.zip https://drive.google.com/file/d/0B7S...ew?usp=sharing

crn__greedy-mac.tar.gz https://drive.google.com/file/d/0B7S...ew?usp=sharing

-
 
  


Reply

Tags
mmac, ns2, ns2.1b9a



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
How to set up ns2.1b9a on Ubuntu 10.04 haiying7 Linux - Software 5 11-24-2011 02:46 PM
How to disable RTS/CTS in ns2.1b9a? haiying7 Programming 0 11-23-2011 11:36 PM
[SOLVED] ns2.1b9a-gcc32 installation error on Ubuntu 11.04. HELP! haiying7 Linux - Software 6 11-23-2011 01:36 PM
ns2.29.3 installation on fedora 15 , nam installation problem Narges Linux - Networking 5 10-31-2011 11:09 AM
How to install NS 2-1b9a on fedora 8 bm_ns2 Linux - Newbie 8 01-28-2011 06:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:48 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
Open Source Consulting | Domain Registration