Skip to content

Instantly share code, notes, and snippets.

@sourabh-upadhyay
Created February 16, 2017 11:45
Show Gist options
  • Save sourabh-upadhyay/60cf982762ab5158480860fd81cc2dce to your computer and use it in GitHub Desktop.
Save sourabh-upadhyay/60cf982762ab5158480860fd81cc2dce to your computer and use it in GitHub Desktop.
sublime /bin/bash ruby command not found

If you face issue when running ruby code in sublime like (sublime /bin/bash ruby command not found) Then just follow the below steps to run the code in Sublime.

$ type -p ruby

  • /home/mypc/.rvm/rubies/ruby-2.4.0/bin/ruby

$ sudo ln -s /home/mypc/.rvm/rubies/ruby-2.4.0/bin/ruby /usr/local/bin/ruby

Then restart your sublime and run the ruby code.

@The-Speck
Copy link

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment