Skip to content
Advertisement

No such file or directory error in linux

Recently I have installed a program called “paradigm”. In the program path (/home/hora/Paradigm/) there is a directory “testdata” (/home/hora/Paradigm/testdata) which includes a shell script that runs an example test of the application.The first time I installed the program I was able to run the shell script(runtests.sh) but now that I try to run it I get the error of ” No such file or directory”, although the files which is mentioned by the error are there. I am sure the problem is due to lack of my knowledge to linux and your help will be appreciated. To show the situation:

JavaScript

But if I list the content of directory the mentioned files are there:

JavaScript

And then:

JavaScript

This is the script content(the problematic part):

JavaScript

Advertisement

Answer

I believe the authors of this script want you to set HOME to ~/Paradigm, or they expect you to install directly in your HOME directory (~) rather than in ~/Paradigm. Either way, this is an error on their part. A simple fix may be to move the installation to ~, or try:

env HOME=$(pwd) ./runtests.sh

(Note that the env is not necessary unless you are running a csh family shell such as csh or tcsh). Setting HOME changes the behavior of cd when called with no arguments and makes the value of HOME the target directory.

Advertisement