Installation of Ruby 2.5.0 is not possible with rvm
mmolinac opened this issue · 14 comments
Since some months ago, it's not possible for us to install Ruby 2.5.0 with this role.
As it turned out, it seems that RVM has changed.
I opened a ticket to them, rvm/rvm#4443 , but it seems that the proposed solution for this version is to install other version by package.
As your role is affected because it doesn't work with this version, I ask you to change this role.
When we try to install with your role, the process ends like this (I was able to reproduce the error):
$ ./.rvm/bin/rvm install ruby-2.5.0
ruby-2.5.0 - #removing src/ruby-2.5.0..
Searching for binary rubies, this might take some time.
No binary rubies available for: debian/9/x86_64/ruby-2.5.0.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for debian.
Requirements installation successful.
Installing Ruby from source to: /var/lib/jenkins/.rvm/rubies/ruby-2.5.0, this may take a while depending on your cpu(s)...
ruby-2.5.0 - #downloading ruby-2.5.0, this may take a while depending on your connection...
ruby-2.5.0 - #extracting ruby-2.5.0 to /var/lib/jenkins/.rvm/src/ruby-2.5.0.....
ruby-2.5.0 - #applying patch /var/lib/jenkins/.rvm/patches/ruby/2.5.0/prelude_gcc_diagnostic.patch.
ruby-2.5.0 - #configuring...................................................................
ruby-2.5.0 - #post-configuration..
ruby-2.5.0 - #compiling...
Error running '__rvm_make -j4',
please read /var/lib/jenkins/.rvm/log/1537787848_ruby-2.5.0/make.log
There has been an error while running make. Halting the installation.
And the last lines from the log file are:
compiling ./main.c
compiling dmydln.c
compiling miniinit.c
compiling dmyext.c
generating miniprelude.c
executable host ruby is required. use --with-baseruby option.
uncommon.mk:960: recipe for target 'miniprelude.c' failed
make: *** [miniprelude.c] Error 1
make: *** Waiting for unfinished jobs....
++ return 2
If you're unable to fix this, could it be possible to add parameters so the compilation process of Ruby 2.5.0 could take advantage of a previous RVM installation of another version, say 2.3.1 ?
Nobody can add any light here ?
I'd love to have someone involve here who can contribute to add this future. If you have that time would be awesome.
@mmolinac ruby 2.5.0 is one year old. Could you instead try to install 2.5.3, and report back if it also fails?
@mmolinac can you do as suggested in the other thread:
yum install ruby
rvm install 2.5.0
@thbar I can check with out dev team and see if that version suits them, and then try.
@pkuczynski I can't, as we're using Debian for all of our environments.
As the installation of version 2.5.0 asks for another Ruby version being already there (what I can't understand), I opted for another solution for the time being.
- I've instantiated twice this role. The first one, with Ruby version 2.3.1, which needs nothing else.
- The second instance was 2.5.0, giving that the default version was now 2.3.1
- After that, I managed to leave as the default the version that we care the most: 2.3.1.
I still believe that the whole list of rvm1_rubies
provided should be able to be installed at once, but that's my personal opinion.
I am also having the same problem (although without the Ansible role, just plain rvm install
) - Ruby 2.5.0 cannot be installed with RVM, same error - on a pristine Ubuntu 18.
Installing Ruby 2.5.3 works.
Experiencing the same problem!
make[1]: *** [ext/openssl/all] Error 2
make[1]: *** Waiting for unfinished jobs....
linking shared-object ripper.bundle
make: *** [build-ext] Error 2
+__rvm_make:0> return 2
UPDATE:
Installing with the openssl
flag worked for me.
brew install openssl
rvm install 2.5.0 --with-openssl-dir=`brew --prefix openssl`
More info here
Having a similar issue. No light?
Apparently You can't compile Ruby with RVM unless Ruby is already present on the system. Run this first: sudo apt-get install ruby-full
Then re-run: rvm install ruby-2.5.0
Please note that Ruby 2.5.0 includes many security vulnerabilities (some important) which have been fixed in later 2.5.x releases. You should target latest 2.5.x (currently 2.5.7) instead of 2.5.0.
Apparently You can't compile Ruby with RVM unless Ruby is already present on the system. Run this first:
sudo apt-get install ruby-full
Then re-run:rvm install ruby-2.5.0
This worked for me. Thanks @Anyoks
@rvm/ansible I'll close this one. Ruby 2.5.0 is an old version and lacks important security fixes.
If someone meets installation issue with the latest 2.5.x, please re-open a specific issue!