LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 11-26-2016, 09:38 PM   #1
Anna@K
LQ Newbie
 
Registered: Nov 2016
Posts: 3

Rep: Reputation: Disabled
Having error in run the sh script


Hello

I just run the simple test script using command

$ bash test.sh

then i got this error

what is this error explain about?

test.sh: line 2: ./ns: No such file or directory

I've search varies solutions but never get one

How am i supposed to do about this?
Is it any problem with the installation on Ns2 itself?

Im using ns 2.29 with ubuntu 10.10

Last edited by Anna@K; 11-26-2016 at 09:39 PM.
 
Old 11-26-2016, 10:15 PM   #2
Jjanel
Member
 
Registered: Jun 2016
Distribution: any&all, in VBox; Ol'UnixCLI; NO GUI resources
Posts: 999
Blog Entries: 12

Rep: Reputation: 364Reputation: 364Reputation: 364Reputation: 364
Welcome to Linux. It's a 'PATH' issue: . (dot) is your 'current' dir (`pwd`)
but the ns program isn't there.
( ./anyname trys to run anyname executable in current directory)
I'm not sure where the install put it. You could try: (IF its name is exactly ns)
find / -name ns -ls
Then put the appropriate in line 2 of your test.sh

This web-search may help: ns ubuntu linux path
If you still can't find ns, please post details of exactly how it was installed.

Best wishes...

Last edited by Jjanel; 11-26-2016 at 10:31 PM.
 
1 members found this post helpful.
Old 11-26-2016, 11:36 PM   #3
Anna@K
LQ Newbie
 
Registered: Nov 2016
Posts: 3

Original Poster
Rep: Reputation: Disabled
Post #2

Quote:
Originally Posted by Jjanel View Post
Welcome to Linux. It's a 'PATH' issue: . (dot) is your 'current' dir (`pwd`)
but the ns program isn't there.
( ./anyname trys to run anyname executable in current directory)
I'm not sure where the install put it. You could try: (IF its name is exactly ns)
find / -name ns -ls
Then put the appropriate in line 2 of your test.sh

This web-search may help: ns ubuntu linux path
If you still can't find ns, please post details of exactly how it was installed.

Best wishes...



Actually, i use the btsim.tgz
and it is the patch one
BitTorrent and ns2
the guide have been given so i just extract the btsim file
and run the test.sh to test whether it works or not
The guide given also ask to recompile the ns2 if the test fail
when recompile, have an error like this :

============================================================
* Build Tk8.4.11
============================================================
make: *** No rule to make target `/users/profs/info/dario.rossi/ns-allinone-2.29/tk8.4.11/unix/Makefile.in', needed by `Makefile'. Stop.
loading cache ./config.cache
checking for Tcl configuration... (cached) found /users/profs/info/dario.rossi/ns-allinone-2.29/tcl8.4.11/unix/tclConfig.sh
checking for existence of /users/profs/info/dario.rossi/ns-allinone-2.29/tcl8.4.11/unix/tclConfig.sh... file not found
configure: error: /users/profs/info/dario.rossi/ns-allinone-2.29/tcl8.4.11/unix/tclConfig.sh is for Tcl .
Tk 8.4.11 needs Tcl 8.4.
Use --with-tcl= option to indicate location of tclConfig.sh file for Tcl 8.4.
tk8.3.2 configuration failed! Exiting ...
Tk is not part of the ns project. Please see www.Scriptics.com
to see if they have a fix for your platform.

What is it about?
Is it related?
Im sorry
Im so new to this
 
Old 11-26-2016, 11:53 PM   #4
Jjanel
Member
 
Registered: Jun 2016
Distribution: any&all, in VBox; Ol'UnixCLI; NO GUI resources
Posts: 999
Blog Entries: 12

Rep: Reputation: 364Reputation: 364Reputation: 364Reputation: 364
Sorry, I know zero about ns. But, to save time, you might be able to find ... by searching an error line.
Here's your WHOLE EXACT error! http://www.linuxquestions.org/questi...0/#post4911967
But, again, I won't be able to help with ns. Maybe someone else will come along to help.
Best wishes! p.s. just fyi: don't Post to OLD Threads!

Last edited by Jjanel; 11-26-2016 at 11:56 PM.
 
Old 11-27-2016, 12:17 AM   #5
Anna@K
LQ Newbie
 
Registered: Nov 2016
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thumbs up

its okay
Thank you for helping
 
Old 12-25-2016, 10:39 PM   #6
Jjanel
Member
 
Registered: Jun 2016
Distribution: any&all, in VBox; Ol'UnixCLI; NO GUI resources
Posts: 999
Blog Entries: 12

Rep: Reputation: 364Reputation: 364Reputation: 364Reputation: 364
necro but I wanted to save this link somewhere...
I just ran across a *pre-installed* Linux with ns2 (but 6yr OLD obsolete Debian 6 Squeeze [like Ubu10 here]):
http://aboutcher.co.uk/2011/02/debain-ns2
 
  


Reply

Tags
ns2



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
run script error ust Linux - Newbie 5 11-21-2012 09:52 AM
Run script error ust Linux - Newbie 2 03-25-2009 05:39 AM
error when tying to run python script(bash error?) shanenin Programming 5 01-10-2006 10:01 AM
run script error ust Linux - Software 3 01-04-2006 03:56 AM
Script does not want to run, error rhuser Programming 15 03-06-2003 05:28 PM

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

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