Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
11-30-2011, 09:42 AM
|
#1
|
LQ Newbie
Registered: Mar 2006
Posts: 18
Rep:
|
Cognitive Radio Network Simulator
Hi,
I am using the following add-on with ns2 2.31 to be able to simulate cognitive radio networks.
http://www.ece.mtu.edu/~ljialian/. I installed this on ubuntu 11.04. I am unable to make install,make depend or make after following the instructions. If anybody has installed may i know which linux version should i go.Or anybody has implemented on ns 2.34 . Any help will be highly appreciated.
Many many thanks.
|
|
|
11-30-2011, 12:47 PM
|
#2
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
Ubuntu 11.04 is not fit for ns2.
( Ubuntu 11.10 is even worse.)
Ubuntu 10.04 will do, if you prefer Ubuntu.
( All ns2 was created and tested on CentOS / RHEL :
The perfect choice is CentOS 5.7 ).
|
|
1 members found this post helpful.
|
11-30-2011, 02:58 PM
|
#3
|
LQ Newbie
Registered: Mar 2006
Posts: 18
Original Poster
Rep:
|
Quote:
Originally Posted by knudfl
Ubuntu 11.04 is not fit for ns2.
( Ubuntu 11.10 is even worse.)
Ubuntu 10.04 will do, if you prefer Ubuntu.
( All ns2 was created and tested on CentOS / RHEL :
The perfect choice is CentOS 5.7 ).
|
Thanks you so much. Highly obliged.
|
|
|
12-01-2011, 07:33 AM
|
#4
|
LQ Newbie
Registered: Mar 2006
Posts: 18
Original Poster
Rep:
|
I installed it on Ubuntu 10.04 and exactly followed the instruction.
when i do make depend it gives me
/bin/sh: Syntax error: Bad fd number
make: *** [depend] Error 2
I am a novice in Linux. Please help.
Thanks
|
|
|
12-01-2011, 08:39 AM
|
#5
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
#4.
1) cd ns-allinone-2.31/ && export CC=gcc-4.1 CXX=g++-4.1 && ./install
1a) cd ns-2.31/ && mv ns ns231 : Probably required for non crcn files.
2) The further instructions (for CRCN) are described here, #9
http://www.linuxquestions.org/questi...31-a-831390/#9
Quote:
/bin/sh: Syntax error: Bad fd number
make: *** [depend] Error 2
|
Not important. Just type make, and the "ns-crcn" binary is created.
( cp ns ns-crcn : Then you have a named backup.)
EDIT : More about "make depend", see post #6, etc. etc.
..
Last edited by knudfl; 01-04-2012 at 06:36 AM.
|
|
|
12-02-2011, 04:17 PM
|
#6
|
LQ Newbie
Registered: Mar 2006
Posts: 18
Original Poster
Rep:
|
I have been able to run CRCN patch on ubuntu 10.04 with ns2.31
As for the emake depend error the solution is to add in Makefile
SHELL=/bin/bash.
Thank you so much knudfl. May God bless you.
|
|
1 members found this post helpful.
|
12-31-2011, 10:02 AM
|
#7
|
LQ Newbie
Registered: Dec 2011
Posts: 8
Rep:
|
I have the same error when doing Make depend
I am using Ubuntu 10.04 with ns 2.31
I have added the lines in post #6 to the top of Makefile, but still have the same problem.
I am a bit new to linux and ns, so perhaps I am doing something wrong, can you help me to figure the problem ?
Thanks
|
|
|
12-31-2011, 12:23 PM
|
#8
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
Post #7, @ tornado90 : Welcome to LQ.
The 'make depend' command is not that important, as the application
already was installed previously.
The 'make' command will do, as originally described in post #5.
..
|
|
|
01-01-2012, 04:48 AM
|
#9
|
LQ Newbie
Registered: Mar 2006
Posts: 18
Original Poster
Rep:
|
make sure you have makedepend and thus need
sudo apt-get install imake
|
|
|
01-04-2012, 02:42 AM
|
#10
|
LQ Newbie
Registered: Dec 2011
Posts: 8
Rep:
|
@sirajl: I did the command you wrote, but the error still exist
So I made as knudfl said and jumped to make, and seems that it is working
Thanks a lot Knudfl & Sirajl
|
|
|
01-05-2012, 03:50 AM
|
#11
|
LQ Newbie
Registered: Mar 2006
Posts: 18
Original Poster
Rep:
|
I am happy tornado90 that you are able to solve the problem
|
|
|
01-05-2012, 05:55 AM
|
#12
|
LQ Newbie
Registered: Dec 2011
Posts: 8
Rep:
|
Thanks
Can I ask you for one more thing?
Now the program is working with me, but I want to understand the output graphs,
I am very new to ns2, so I can't figure out what is the model he is working on,
I have looked at the tutorial on http://stuweb.ee.mtu.edu/~ljialian/index.htm
but still can't figure out his model.
I am working with the GUI but I don't feel that the parameters that I am
putting, gives me the whole picture of the model
So can you please tell me about it, or how to find and understand it.
Thanks a lot
|
|
|
01-08-2012, 09:31 AM
|
#13
|
LQ Newbie
Registered: Dec 2011
Posts: 8
Rep:
|
Hey Guys, can anybody help me to understand the graphs from the simulator ?
I just want someone to tell me what is the model, or how to understand it
|
|
|
08-07-2014, 03:40 AM
|
#14
|
LQ Newbie
Registered: Apr 2014
Posts: 17
Rep:
|
404 Not Found
http://stuweb.ee.mtu.edu/~ljialian/
This link is dead again.
Can anyone provide me data of that link.
I will be grateful.
|
|
|
08-10-2014, 12:19 PM
|
#15
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
|
|
|
All times are GMT -5. The time now is 12:12 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|