rvm: command not found MAC OX
It might because the terminal not having rvm shell configuration loaded.
Try following from your terminal:
$ source ~/.rvm/scripts/rvm
then
$ type rvm | head -n 1
If the output is:
rvm is a function
You may need to add "source ~/.rvm/scripts/rvm" to your ~/.bash_profile file
rvm command not found
Possible duplicate of: Ubuntu rvm setup issue
Your problem is that RVM is not loaded when you open a new terminal.
To solve this, run this command line: (if using login-shell)
echo "source $HOME/.rvm/scripts/rvm" >> ~/.bash_profile
Or this (if using non-login shell):
echo "source $HOME/.rvm/scripts/rvm" >> ~/.bashrc
Or if you are using zsh
(and/or oh-my-zsh):
echo "source $HOME/.rvm/scripts/rvm" >> ~/.zshrc
This will add the path to RVM to load at each Terminal instantiation. You must either close and reopen your terminals or simply call source ~/.bashrc
(or ~/.bash_profile
or ~/.zshrc
).
I am getting rvm: command not found after installation of rvm
Steps to try out:
Log out and login to your system.
Open a new terminal and manually run
source $HOME/.rvm/scripts/rvm
then
rvm
Check these work-arounds.
Update:
To avoid running
source $HOME/.rvm/scripts/rvm
every time you open a terminal, include this line into ~/.MacOSX/environment
in your Mac (This is similar to ~/.bashrc
in GNU/Linux-based systems under $home
aka ~
directory).
bash: rvm: command not found after multi-user install
Look at answers for this question:
From your problem description it seems that the rvm script needs to be
loaded only once, during login. As far as I know, Ubuntu reads
/etc/profile/
and~/.profile
during login (the graphical login,
independent of bash). That means, after logging out and a logging in
once, the rvm script should be active. If it still doesn't work, then
perhaps the rvm script needs to be loaded for every bash session. If
that is the case thenbashrc
is the more appropriate place for the
script.
Command 'rvm' not found, did you mean:
You'll need to update your bashrc (or equivalent) so that the rvm stuff gets imported every time.
Just add source /usr/local/rvm/scripts/rvm
to the end of that file
Related Topics
Rubocop Error 'Class Definition Is Too Long Ruby'
Including/Extending the Kernel Doesn't Add Those Methods on Main:Object
Error Occurred While Installing Mini_Racer (0.2.0)
Heroku: No Rakefile Found (But Works Locally)
How to Get My Aws Lambda to Access Gems Stored in Vendor/Bundle
How to Define a Ruby Singleton Method Using a Block
How to Prevent Pipe Character from Causing a Bad Uri Error in Rails 3/Ruby 1.9.2
Ruby: Titleize: How to Ignore Smaller Words Like 'And', 'The', 'Or, etc
Single Table Inheritance or Class Table Inheritance
How to Trace and Check Dependencies in Bundled Ruby Gems
How to Convert Character Encoding with Ruby 1.9
How to Loop Through a Daterange with Different Intervals
What's the Difference Between Bundle.Setup and Bundle.Require
Rendering Haml Partials from Within Haml Outside of Rails