julienXX / terminal-notifier

Send User Notifications on macOS from the command-line.
Other
6.38k stars 330 forks source link

`terminal-notifier` specifies non-existant Ruby version #241

Closed Gastove closed 6 years ago

Gastove commented 6 years ago

Hello!

I've just installed terminal-notifier; when I try to use it (in really any way), I get:

$ terminal-notifier -message "hi"
Failed to execute process '/usr/local/bin/terminal-notifier'. Reason:
The file '/usr/local/bin/terminal-notifier' specified the interpreter '/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby', which is not an executable command.

On the one hand, this error message has a perfectly fair point -- the path it's looking for doesn't exist at all, and thus certainly isn't an executable command! On the other, I'm not sure... how it's calling in to that specific Ruby version at all. I have two different versions of Ruby installed -- 2.3 at /usr/bin/ruby and 2.4 at /usr/local/bin/ruby.

I am not sufficiently familiar with Ruby to have a good intuition about this: is the right answer to find a way to install Ruby 2.0 at the path above? Or is there something in terminal-notifier that needs tweaking?

Thanks very much!

Please check everything that applies to your issue:

To help us debug your issue please include:

Common issues and solution:

(I checked all these and they don't seem to apply.)

Gastove commented 6 years ago

a-HEM Okay so, cool story: since teriminal-notifier was broken, I did a brew uninstall. Oddly, I kept getting terminal-notifier errors from a command-line tool that could optionally use it. Brew swore the package was gone -- but it turns out, a terminal-notifier script was still there under /usr/local/bin. I nuked that, re-installed with brew, and now everything works great. I have... ah. No idea how that happened, but it certainly isn't y'all's fault or problem.

Thanks for the package (which works great, especially when installed correctly ;P) and sorry for the issue-tracker noise ;P

julienXX commented 6 years ago

Cool! Glad it's working well for you :)