LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-22-2018, 08:15 AM   #31
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2018 CentOS6.10 CentOS7.5 + 50+ other Linux OS, for test only.
Posts: 17,083

Rep: Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486

Re #29, #30.

You are not supposed to use the /root/ directory for anything. Never.
Default is /home/name/ns2/"protocol"/{ns-allinone-2.xx/, examples/, etc.}
E.g. /home/name/ns2/crcn/{ns-allinone-2.31/, examples/, etc.}


Quote:
after make depend found this error

Makefile:533: recipe for target 'depend' failed
make: *** [depend] Error 2
'make depend' already happened with the ./install command in ns-allinone-2.x!
Using 'make depend' inside ns-2.xx/ makes no sense. (Will often fail anyway.)
The texts about 'make depend' that you can find on the Internet are often "students notes", just copied from previous "student notes". Not at all reliable.

-
 
1 members found this post helpful.
Old 03-22-2018, 08:19 AM   #32
Kushalj
LQ Newbie
 
Registered: Jan 2018
Posts: 22

Original Poster
Rep: Reputation: Disabled
after make command

Makefile:372: recipe for target 'ns' failed
make: *** [ns] Error 1
found this error any solution ?
 
Old 03-22-2018, 08:33 AM   #33
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2018 CentOS6.10 CentOS7.5 + 50+ other Linux OS, for test only.
Posts: 17,083

Rep: Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486
Re #32.

All information is missing. Please tell what you are doing.
What are you trying to "make" ? Which application ?
Please show all the steps you did before the attempted 'make'


-
 
1 members found this post helpful.
Old 03-22-2018, 09:01 AM   #34
Kushalj
LQ Newbie
 
Registered: Jan 2018
Posts: 22

Original Poster
Rep: Reputation: Disabled
i am trying to open the simulation file in CRCN and when i click on confirm button terminal shows following error

:~/ns-allinone-2.31/ns-2.31$ java -jar CRCN.jarYeah
/root/ns-allinone-2.31/ns-2.31/test.tcl
Can't open file simsetfile!
java.io.FileNotFoundException: /root/ns-allinone-2.31/ns-2.31/test.tcl (Permission denied)
 
Old 03-22-2018, 10:34 AM   #35
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2018 CentOS6.10 CentOS7.5 + 50+ other Linux OS, for test only.
Posts: 17,083

Rep: Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486
Re #34.

Did you read the "User manual" ? http://faculty.uml.edu/Tricia_Chigan...rch/helpv4.htm

Fill these : means you change settings / text to actual values.

My example :
Routing protocol : Selected WCETT
Work Dir : /home/knudfl/8tmp/CRCN__/crcn-examples_06.2015/
Output setting file.tcl : New file to be created → z.tcl
.... Clik "Confirm" : And /home/knudfl/8tmp/CRCN__/crcn-examples_06.2015/z.tcl was created.

-
 
1 members found this post helpful.
Old 03-26-2018, 07:59 AM   #36
Kushalj
LQ Newbie
 
Registered: Jan 2018
Posts: 22

Original Poster
Rep: Reputation: Disabled
found this error after openning the terminal

-bash: /home/kushal/.bashrc: line 152: syntax error: unexpected end of file
kushal@kushal-Inspiron-1440:~$

any solution?
 
Old 03-26-2018, 08:56 AM   #37
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2018 CentOS6.10 CentOS7.5 + 50+ other Linux OS, for test only.
Posts: 17,083

Rep: Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486
Re #36.

No "ns2 text" should ever be added to .bashrc !
https://drive.google.com/file/d/1_aR...IGRn8C8Xb/view

You can get a new .bashrc , just ask. Example Ubuntu 14.04 ...
https://drive.google.com/file/d/0B7S...ew?usp=sharing

-
 
Old 03-27-2018, 04:48 AM   #38
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2018 CentOS6.10 CentOS7.5 + 50+ other Linux OS, for test only.
Posts: 17,083

Rep: Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486
Re #1 : RSA.

Available "configuration files" are {rsaed.tcl, rsagen.tcl, rc4e.tcl, rc4.tcl},
... all originally used in a "Dynamic Multi hop Clustering" simulation
. https://drive.google.com/file/d/1hyj...ew?usp=sharing


-
 
Old 03-30-2018, 05:03 AM   #39
Kushalj
LQ Newbie
 
Registered: Jan 2018
Posts: 22

Original Poster
Rep: Reputation: Disabled
i am trying to check the throughput & interference in Ns2.31+CRCN i have patched succefull all these commands ./configure,make clean,make depend ,make all run without error.but when run the crcn Gui it shows following error and graph are open with no simulation please help.

root@kushal-Inspiron-1440:~/root/ns-allinone-2.31/ns-2.31# java -jar CRCN.jar
Yeah
>>Mac4 is selected.
>>802_11 is selected.
/root/ns-allinone-2.31/test.tcl
Can't open file simsetfile!
java.io.FileNotFoundException: /root/ns-allinone-2.31/test.tcl (No such file or directory)
/root/root/ns-allinone-2.31/ns-2.31/test 4 wcett 2 radios.tcl is called by ns
Process exitValue: 1
/root/root/ns-allinone-2.31/ns-2.31/test 4 wcett 2 radios.tcl is called by ns
Process exitValue: 1
Can't open file ITfile!
java.io.FileNotFoundException: ITfile (No such file or directory)
ERROR>Can't open perl script "/root/ns-allinone-2.31/throughput.pl": No such file or directory
Process exitValue: 2
 
Old 03-30-2018, 06:54 AM   #40
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2018 CentOS6.10 CentOS7.5 + 50+ other Linux OS, for test only.
Posts: 17,083

Rep: Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486
Re #39.

See #35 : The work directory is "crcn-examples_06.2015/" !
... Contains everything required !

And please read http://faculty.uml.edu/Tricia_Chigan...rch/helpv4.htm


-
 
Old 03-30-2018, 08:29 AM   #41
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 11,363

Rep: Reputation: 3418Reputation: 3418Reputation: 3418Reputation: 3418Reputation: 3418Reputation: 3418Reputation: 3418Reputation: 3418Reputation: 3418Reputation: 3418Reputation: 3418
and at least try to write a small thanks to knudfl....
 
Old 03-31-2018, 02:14 AM   #42
Kushalj
LQ Newbie
 
Registered: Jan 2018
Posts: 22

Original Poster
Rep: Reputation: Disabled
error ?

Can't open file simsetfile!
java.io.FileNotFoundException: /root/ns-allinone-2.31/crcn-examples_06.2015/test1.tcl (No such file or directory)

"can you please provide step by step solution of this problem?"
'https://drive.google.com/file/d/1haCPbXlRoozD5MQd0dXpG-OzFhssXHrz/view?usp=sharing'
'https://drive.google.com/file/d/1qyVd6yMArre_Dhi0Sky4wCNTQO2bOBbW/view?usp=sharing'
 
Old 03-31-2018, 07:09 AM   #43
Kushalj
LQ Newbie
 
Registered: Jan 2018
Posts: 22

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
and at least try to write a small thanks to knudfl....
i m just trying to run the examples of crcn GUI and make some graph which shows result!
 
Old 03-31-2018, 09:00 AM   #44
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2018 CentOS6.10 CentOS7.5 + 50+ other Linux OS, for test only.
Posts: 17,083

Rep: Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486
Re #42, etc.

Possible obstacles :
1) crcn cannot be built with Ubuntu. The last usable was Ubuntu 10.10-i386.
.. The only supported "crcn OS" today is CentOS 6.9 - i386
http://ftp.funet.fi/pub/mirrors/cent...86-LiveDVD.iso

An executable 'ns' created with old Ubuntu can be installed:
crcn-ns-2.31-ubuntu10_i386.deb ( Provides /usr/local/bin/ns-crcn )
https://drive.google.com/file/d/0B7S...ew?usp=sharing
Download, and install :
Code:
cd Downloads/ && sudo gdebi crcn-ns-2.31-ubuntu10_i386.deb
cd /usr/local/bin/
sudo cp ns-crcn ns
2) The file you create with the CRCN-GUI ( new-name.tcl ) may not be usable for plotting a graph. E.g. my setup in #35 → z.tcl will create a trace file not usable by throughput.pl : No output. Which means you may have to try out several combinations of "routing settings" in the CRCN-GUI, before you get a file.tcl that can create a graph.

-
 
Old 03-31-2018, 12:21 PM   #45
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2018 CentOS6.10 CentOS7.5 + 50+ other Linux OS, for test only.
Posts: 17,083

Rep: Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486
Re #42.

? Missing files ... then please use crcn-examples-3.tar.gz
https://drive.google.com/file/d/1rKj...ew?usp=sharing
 
  


Reply

Tags
crcn, ubuntu 16.04


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
ajax.googleapis.com required for CODE tags button catkin LQ Suggestions & Feedback 4 04-23-2015 01:04 PM
[SOLVED] Is it possible to optimize C code using SSE*/AVX* ? or is assembly required ? metaschima Programming 8 06-28-2014 12:38 PM
challenge for c programmers:code urgently required ehtisham Programming 7 11-22-2010 01:47 AM
Samsung yp-u3 code required for ubuntu byker Linux - Newbie 3 03-22-2009 04:14 AM
Document required about Fedora source code ahm_irf Fedora 1 02-11-2007 10:16 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

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