Rvm 'Not Found' After Successful Usage and a Few Days Later

RVM 'not found' after successful usage and a few days later

I would guess your PATH is not setup to include ~/.rvm or ~/.rvm/bin check if

echo $PATH 

includes it. If not you will have to add somthing like

 PATH=$PATH:~/.rvm/bin

to your ~/.bashrc

RVM not found, after installing RVM

If there's no scripts directory inside .rvm, it would seem that RVM failed to successfully complete installation. Delete the .rvm directory, try reinstalling, and look at the installation output closely to see if it's complaining about anything.

I am getting rvm: command not found after installation of rvm

Steps to try out:

  1. Log out and login to your system.

  2. 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).

RVM installed by Ruby not working?

RVM requires a minor addition to your ~/.bashrc or ~/.bash_profile to initialize it when you log-in. It is specified in the installation docs in the Post Install section. Did you do that?


Per your rvm info output, it looks like you haven't completed your installation. All the entries in the output should have corresponding values. So, I suspect you haven't added:

[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"  # This loads RVM into a shell session.

to your ~/.bashrc or ~/.bash_profile and then started a new session.

If you are doing a "Multi-User" installation then you'll need to do a lot more. Have you modified /etc/profile, or, if you are using Bash as your shell, have you modified /etc/bash.bashrc to include:


# Load RVM if it is installed,
# first try to load user install
# then try to load root install, if user install is not there.
if [ -s "$HOME/.rvm/scripts/rvm" ] ; then
. "$HOME/.rvm/scripts/rvm"
elif [ -s "/usr/local/rvm/scripts/rvm" ] ; then
. "/usr/local/rvm/scripts/rvm"
fi

and started a new shell?

Personally I don't like the multi-user install as much as the single-user install, and don't recommend it but your mileage might vary.


As a FYI: In a discussion with the RVM maintainers on IRC last year, they told me they do not recommend the system-wide installation, and instead recommend the local "single-user" installation, even for servers.

RVM settings lost after every logout

Are you sourcing $HOME/.rvm/scripts/rvm into your shell in its .profile or whatever setup?

That would be the first thing to check.

Add this line:

source $HOME/.rvm/scripts/rvm

Rails not found after installing via rvm

Add this to your ~/.bashrc

# This loads RVM into a shell session.
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"

This loads rvm each time you load a new terminal session.

Ruby RVM apt-get update error

RVM doesn't behave well if apt-get update has errors. If your apt sources have an invalid repository that gives 404 or GPG error, RVM will refuse to work. This can be confusing because it happens even if the faulty repository has nothing to do with ruby or RVM.

The following fix worked for me (Ubuntu):

Run apt-get update and see if there are any errors. Edit your sources.list and precise.list in /etc/apt to remove the faulty repositories. Repeat until apt-get update succeeds without any errors. Then try running RVM.

Why do I need to use rvm use default after opening new terminal window?

Zabba is right in the comments when he says the correct command to use is rvm use 1.9.2 --default.

RVM considers default to be a Ruby, equivalent to the Ruby set to the default. If I type rvm use default into my terminal, I get this output:

$ rvm use default
Using /Users/tom/.rvm/gems/ruby-1.9.3-p0

However, there is the ability to list multiple Rubies in your call to rvm use, e.g:

$ rvm use 1.9.3 system
Now using system ruby.

$ rvm use system 1.9.3
Using /Users/tom/.rvm/gems/ruby-1.9.3-p0

Although I am not entirely sure whether this is a feature (or the particular use case for passing multiple Rubies since RVM doesn't appear to fall back on the other listed Ruby if the last one isn't installed), it means that when you type rvm use default 1.9.2, rather than setting the default to 1.9.2, you are telling RVM to use 1.9.2, since it is the last Ruby listed in the command.

If you run the command rvm use 1.9.2 --default once, you will then be using 1.9.2 in every terminal you open.

NB on the multiple-arguments-to-rvm-use-feature: I know that you can pass multiple Rubies to the RVM command to run a script with multiple versions of Ruby but I can't see RVM setting two versions of Ruby to run at once.

Why everytime i after reload/restart shell , RVM always not found

it worked for me

ln -s ~/.bashrc ~/.bash_profile
[[ -s “$HOME/.rvm/scripts/rvm” ]] && source “$HOME/.rvm/scripts/rvm”
rvm get stable --auto-dotfiles

Trouble installing ruby 1.9.3 because of a configuration issue

First goal should be to get the app back up running.

Therefore I would suggest to reset your app's configuration to the last working stand.
If this is not possible, please install ruby using rvm with the --with-gg=clang-option like this:

rvm install 1.9.3 --with-gcc=clang

Then use the installed ruby version by listing all installed rubies (running rvm list) and choosing the 1.9.3 version provided (e.g. 1.9.3-p448) with the following command:

rvm --default use 1.9.3-p484

Please update your Gemfile with the ruby '1.9.3-p484' line and make sure, you're in the login shell (to change to it, use /bin/bash --login). After that your rvm commands should work again.



Related Topics



Leave a reply



Submit