LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-10-2013, 11:56 PM   #1
vishalpolara
Member
 
Registered: Nov 2012
Posts: 47

Rep: Reputation: Disabled
Setdest Command not found in NS2.33


Any body have solution regarding this problem please help me

i want to set destination in ns-2.33

but following command not found error occur so tell me what to do

vishal@vishal:~/ns-allinone-2.33/ns-2.33/indep-utils/cmu-scen-gen$ setdest
setdest: command not found
 
Old 01-11-2013, 08:47 AM   #2
rosehosting.com
Member
 
Registered: Jun 2012
Location: Missouri, USA
Posts: 222

Rep: Reputation: 62
Check if there is a 'setdest' file in your 'cmu-scen-gen' directory using the ls -l command. Also, check if the output show that the script is executable, like:

-rwx r-x r-x 1 vishal vishal 238 Aug 11 09:40 setdest
---^--^--^

If not, you need to change the 'setdest' file permissions:

chmod 755 setdest

Then, try to execute:

./setdest
 
1 members found this post helpful.
Old 01-11-2013, 10:48 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,683

Rep: Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284
Instead of using : ./setdest ( Which is already executable)
.. you can install it with :

cd ns-allinone-2.33/ns-2.33/indep-utils/cmu-scen-gen/ && sudo make install
EDIT :
It is : cd ns-allinone-2.33/ns-2.33/indep-utils/cmu-scen-gen/setdest/


'make install' will copy setdest to /usr/local/bin/setdest ,
thus 'setdest' is in a PATH, and can be used from any location.

-

Last edited by knudfl; 01-12-2013 at 02:47 AM.
 
Old 01-11-2013, 08:41 PM   #4
vishalpolara
Member
 
Registered: Nov 2012
Posts: 47

Original Poster
Rep: Reputation: Disabled
setdest folder is already there

i have try

chmod 755 setdest

it will work but it will create file..



and second scenario s

sudo make install is not working...

so help me now what to do

ishal@vishal-laptop:~/ns-allinone-2.33/ns-2.33/indep-utils/cmu-scen-gen/setdest$ ./setdest -v 2 -n 25 -s 1.0 -m 1.0 -M 20.0 -t 500 -x 500 -y 500 > scen_25

Last edited by vishalpolara; 01-11-2013 at 08:42 PM.
 
Old 01-12-2013, 02:50 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,683

Rep: Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284
# 4

Sorry, typo in post # 3: You will of course have to 'cd' into the setdest/ folder
to use, and to install the 'setdest' binary :

cd ns-allinone-2.33/ns-2.33/indep-utils/cmu-scen-gen/setdest/
 
  


Reply


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
Error trying to compile ns2.33 on fedora 15: g++ not found nirvruti Linux - Software 3 11-03-2012 01:49 AM
error in configuring ns2.33 using make command afsha2719 Linux - Software 1 05-04-2012 05:23 AM
how to access setdest function in ns2 naren123.k Programming 1 04-26-2011 03:39 PM
ns2-802.11e patch - error: stream.h, iostream.h not found shojaru Linux - Newbie 3 06-12-2009 11:11 PM
bash: rpm: command not found && sudo: alien: command not found Java_Code Ubuntu 7 07-27-2006 11:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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