Troubles with Ruby-2.X Installation Using Rvm

Troubles with ruby-2.X installation using RVM

Try the following

$ rvm remove 2.0.0 # get rid of unsuccessful installation
$ rvm get head --autolibs=3 # get the latest RVM and build required libs
$ rvm requirements # just in case, install all other required stuff
$ rvm install ruby-2.0.0

If at any of those commands fails at any point. Update your question with the logs.

Error while installing ruby2 with rvm

try this:

CC=clang rvm reinstall 2.0.0-p0

it will compile but might result in other errors later (I'm working on finding what causes the original issue).

RVM fails to install Ruby 2.3.x

This took me a while to debug as the log files are not very explicit, most of them point to OpenSSL 1.0 some of them point towards GCC; also this issus can't be reproduced with newer Ruby versions such as 2.4.x.

It seems that the issue is from GCC7 and there is already an official patch released for it.

You can download the patch from https://bugs.ruby-lang.org/attachments/6655/ruby_2_3_gcc7.patch and then run rvm install 2.3.x --patch ruby_2_3_gcc7.patch%0.

This should fix the issue and RVM won't complain anymore.

Error while installing ruby2 with rvm

try this:

CC=clang rvm reinstall 2.0.0-p0

it will compile but might result in other errors later (I'm working on finding what causes the original issue).

Error when installing Ruby 2.1.3 with RVM

I had the same problem

rvm reinstall 2.1.3 --disable-binary

worked for me
(based on Fresh Installs of RVM and Ruby 2.1.1 - dyld library/pathing error).

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.



Related Topics



Leave a reply



Submit