PDA

View Full Version : [SOLVED] No such file or directory



smss
December 21st, 2010, 11:33 AM
Hi
How to fix this erorr:


smss@smss-me:~/temp$ ./start.sh
bash: ./start.sh: /bin/tcsh: bad interpreter: No such file or directory
And im sure
start.sh is available in the directory
/home/me/temp/

karthick87
December 21st, 2010, 11:37 AM
Are you sure that you are inside the directory???

ajgreeny
December 21st, 2010, 12:25 PM
cd to the directory first with
cd temp if temp is a folder in home, no need for the /temp, just temp will do it. Then just
./start.shshould run the file.

You only need the / if the folder path is in the root file system, not when it's in home.

smss
December 21st, 2010, 12:28 PM
Yes , Im confident.

smss
December 21st, 2010, 12:34 PM
Yes , Im just using only this
cd tempBut I'm faced with this error:

smss@smss-me:~/temp$ ./start.sh
bash: ./start.sh: /bin/tcsh: bad interpreter: No such file or directory

Possum Films
December 21st, 2010, 12:35 PM
Are you sure that start.sh is set to be executable?

Try this:
chmod +x ./start.sh

qamelian
December 21st, 2010, 12:36 PM
From the error you're getting, it appears that the script wants to run under the tcsh shell. Do you have tcsh installed? It isn't installed on a default Ubuntu system.

smss
December 21st, 2010, 12:45 PM
How I install the tcsh??

smss
December 21st, 2010, 12:51 PM
This no result:
chmod +x start.sh && chmod +x ./start.sh && sudo chmod +x start.sh && sudo +x ./start.sh

qamelian
December 21st, 2010, 12:51 PM
How I install the tcsh??

Go to Applications > Accessories > Terminal.

At the prompt in the terminal, type:

sudo apt-get install tcsh and press enter.
You will be prompted to enter you password. Type it in and press enter. Note that the password will not actually show up as you are typing it.

Then just wait for a few moments as the package manager downloads and installs tcsh. :)

smss
December 21st, 2010, 01:15 PM
Yes.
Was correct.
I thank from all and especially qamelian. (http://ubuntuforums.org/member.php?u=8229)