chruby: "chruby: command not found" after install though homebrew
- Install through brew
$ brew install chruby - Add source /usr/local/share/chruby/chruby.sh to ~/.bashrc
- Restart terminal
$ chruby=> chruby: command not found
Don’t appear to have an /etc/profile.d/chruby.sh file or /etc/profile.d/ dir.
$ cd /etc/profile.d/ => cd: /etc/profile.d/: No such file or directory
—What am I doing wrong?
Mac OS X 10.7.5. Homebrew 0.9.4 chruby 0.3.4
About this issue
- Original URL
- State: closed
- Created 14 years ago
- Comments: 15 (1 by maintainers)
Hey devs, just adding this for completion sake if you’re using zsh as your shell and you have the same “chruby: command not found” error.
reference: https://formulae.brew.sh/formula/chruby
Does it show that I’m a noob? 😣 For the sake of the next noob with the same problem.
echo "source ~/.bashrc" >> ~/.bash_profileon your terminal to includesource ~/.bashrcin your ~/.bash_profile file.Source: http://apple.stackexchange.com/questions/12993/why-doesnt-bashrc-run-automatically#comment13715_13019
same issue on M1, adding anything to ~/.zshrc didn’t resolve
nano ~/.zshrc
I needed to add the following to my ~/.bashrc
I installed using brew but I use zsh. I had to use
brew info chrubyto see the installed directory. For me it was here:/opt/homebrew/opt/chruby/share/chruby/chruby.shThus I addedsource /opt/homebrew/opt/chruby/share/chruby/chruby.shto my~/.zshrcand it worked.Same as @Sihui it did fix it for me after I guess the only difference was using
sourceinstead of.Even after install (0.3.9 or HEAD at 4c46722) I didn’t have a ~/.bashrc .
I had to
and then source ~/.bashrc in ~/.bash_profile
On a brand new High Sierra 10.13.4 mbp.
If you could suggest some better post-install instructions for the homebrew recipe, please do.