1

I'm very new to using terminal on mac and was wondering if anyone can help with the issue I'm having.

I want to use a command that I downloaded but when I double-click this shows up. The terminal window then freezes and when I try to call the command from new shell, then it just says the command can't be found. Would really appreciate some help. Thank you!

Last login: Mon Jun  1 20:37:34 on ttys000 
/Users/harinlee/Downloads/sonic-annotator-1.5-osx-amd64/sonic-annotator ; exit;
(base) Harins-MacBook-Pro:~ harinlee$ /Users/harinlee/Downloads/sonic-annotator-1.5-osx-amd64/sonic-annotator ; exit;
sonic-annotator: no transform(s) specified
sonic-annotator: use -h or --help option for help
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[Process completed]
3
  • What exacty did you download (and where from)? What do you double-click?
    – nohillside
    Jun 1 '20 at 10:13
  • PS: Also, please copy-paste text from Terminal and apply code formatting to make it accessible to people with screenreaders and to the search function.
    – nohillside
    Jun 1 '20 at 10:13
  • @nohillside Thanks for letting me know about the format. It's the exec file that I double-clicked to execute.
    – Craftwerk
    Jun 1 '20 at 11:41
1

If it is meant for command line use, you should type all the required info in the command line. For more help, run these two commands in Terminal app.

cd ~/Downloads/sonic-annotator-1.5-osx-amd64
./sonic-annotator --help

Many tools provide README, docs or similar files which contain examples of usage.

Also I found the examples of usage in the online docs here, in case anyone wants to check it out:

5
  • Thanks for this. I tried these commands but it would return sonic-annotator: command not found. The exec file that I want to run is in that folder you provided above.
    – Craftwerk
    Jun 1 '20 at 11:43
  • The README file wasn't helpful as it assumes that the user can get this utility program to run.
    – Craftwerk
    Jun 1 '20 at 11:47
  • @HarinLee See the updated answer: apple.stackexchange.com/posts/392725/revisions
    – anki
    Jun 1 '20 at 12:24
  • 1
    RE: "Note that if the file sonic-annotator is not an executable, you'll have to specify the path to it, which we did here by ./" -- That statement is not accurate! If a file isn't executable then its execute bit needs to be set, e.g., chmod +x sonic-annotator. On the other hand, if it's already set and if it's not in a directory as defined in the PATH shell variable then use either the fully qualified pathname of the command, or change directory to where it's located and prepend the command with: ./ Jun 1 '20 at 12:56
  • @user3439894 fixed. feel free to add any more info, if you wish
    – anki
    Jun 1 '20 at 13:26

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .