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.
Error installing rvm (Ruby version Manager)
It seems that you cannot download the package from github. By my side, no problem to download the package at https://github.com/wayneeseguin/rvm/archive/stable.tar.gz
with a browser. If you get same error in a browser, you've probably a network problem.
How to fix RVM installation error on Mac OS Catalina 10.15.4
Try to install the Apple Developers Toolkit (XCode) from the Mac App Store (it's free) first (if it's not installed yet), then you need to install the CLI command line utilities by running:
xcode-select --install
Then try your install again.
If it will not helped, try to:
- Install rvm master with rvm get master;
Reinstall rvm:
rvm implode
\curl -sSL https://get.rvm.io | bash
rvm pkg install openssl
rvm install 2.3.1 --with-openssl-dir=$HOME/.rvm/usr
Problem installing RVM
Ack, I didn't mean to post this as a comment on the question. Anyway, if I had to guess, I'd say you installed rvm using sudo or as root. If that is the case, remove it and reinstall without sudo:
sudo rm -rf $HOME/.rvm $HOME/.rvmrc /etc/rvmrc /etc/profile.d/rvm.sh \
/usr/local/rvm /usr/local/bin/rvm
sudo /usr/sbin/groupdel rvm # this might fail, it's not that important
Open new terminal window/tab and make sure rvm is removed:
env | grep rvm
The output should be empty, sometimes it's needed to relogin, after it's empty you can continue:
curl -sSL https://get.rvm.io | bash -s stable
It works perfectly fine installed for the local user.
rvm install: ruby installation error
Uninstall and reinstall rvm
with
bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
For posterity, I'll add that the part of the error that says
Installing Ruby from source to: /usr/share/...
is what got me thinking about a broken installation of rvm which, as I said, is normally entirely contained in the ~/.rvm
directory.
Problem installing rubys with rvm because of missing public key
There is an issue on github that explains this:
https://github.com/rvm/rvm/issues/4520
It seems that the error is alerting me to the fact that the
maintainer of rvm has changed: the new maintainer, github.com/pkuczynski
uses another key to sign.
Do I want to trust this new maintainer? Then I can add his key:
gpg --keyserver hkp://keys.gnupg.net --recv-keys 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
Related Topics
Rails: Url/Path with Parameters
Rspec Testing Has_Many :Through and After_Save
Checking If a String Is Valid JSON Before Trying to Parse It
Carrierwave Fog Amazon S3 Images Not Displaying
Devise Nomethoderror 'For' Parametersanitizer
Have Devise Create a Subdomain on Registration
Marking an Unused Block Variable
Ruby, Run Linux Commands One by One, by Ssh and Log Everything
Write a Migration with Reference to a Model Twice
Connecting to Oracle Db Using Ruby
Decoding Facebook's Signed Request in Ruby/Sinatra
Chef and Erb Templates. How to Use Boolean Code Blocks
Cross-Platform Means of Getting User's Home Directory in Ruby
Ruby on Rails 4 - What Authentication Gem to Use
How to Timeout Flash Messages in Rails
API Errors Customization for Rails 3 Like Github API V3