Why does it say file not found?

Why am I getting this error? As you see the file is there in that directory.


Here is what I copy and paste from terminal:


Daniels-Mac-mini:sphinxbase-master shinehah$ autogen.sh

-bash: autogen.sh: command not found

Daniels-Mac-mini:sphinxbase-master shinehah$ ls

AUTHORS autogen.sh sphinxbase.pc.in

LICENSE configure.ac sphinxbase.sln

Makefile.am doc src

NEWS include swig

README indent.sh test

README.md m4 win32

Mac mini 2018 or later

Posted on Jun 24, 2019 9:38 AM

Reply
Question marked as Top-ranking reply

Posted on Jun 24, 2019 10:11 AM

As VikingOS X told you, you should put a dot and a slash before the name of the script. This tells the shell that the script is in the current directory. For many years now, as a matter of security, the current directory is not automatically in the PATH.


So don't type

autogen.sh


Type


./autogen.sh


3 replies

Jun 24, 2019 9:56 AM in response to VikingOSX

Do I have to put the current path that I am in in the PATH environment variable, or do I need to put the path to whatever executable file runs sh files in the PATH environment variable? If the latter, what file runs sh files?


Here is the PATH environment variable:


Daniels-Mac-mini:sphinxbase-master shinehah$ echo $PATH


/Users/shinehah/google-cloud-sdk/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/bin/python:/usr/local/share/dotnet:~/.dotnet/tools:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Users/shinehah/apache-ant-1.10.6/bin:/Applications/Xamarin Workbooks.app/Contents/SharedSupport/path-bin

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Why does it say file not found?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.