Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rvm: 2.4 installation fails #7077

Closed
segiddins opened this issue Dec 25, 2016 · 10 comments
Closed

rvm: 2.4 installation fails #7077

segiddins opened this issue Dec 25, 2016 · 10 comments

Comments

@segiddins
Copy link

Ruby 2.4 was released within the past few hours, this probably necessitates updating RVM?

$ rvm use 2.4 --install --binary --fuzzy

ruby-2.4 is not installed - installing.
Searching for binary rubies, this might take some time.
Requested binary installation but no rubies are available to download, consider skipping --binary flag.
Gemset '' does not exist, 'rvm ruby-2.4 do rvm gemset create ' first, or append '--create'.

The command "rvm use 2.4 --install --binary --fuzzy" failed and exited with 2 during .
@BanzaiMan
Copy link
Contributor

Do you have a build log URL that shows the problem you are describing here?

@BanzaiMan
Copy link
Contributor

@segiddins
Copy link
Author

@BanzaiMan
Copy link
Contributor

Please try 2.4.0.

@segiddins
Copy link
Author

But that wont automatically update when 2.4.1, etc are released, like 2.1 and 2.2 do

@BanzaiMan
Copy link
Contributor

I don't think 2.1 or 2.2 work that way, either. For example, 2.2 points to 2.2.5 at the moment, though the latest version is 2.2.6. Similarly for 2.1.

@BanzaiMan
Copy link
Contributor

In other words, MAJOR.MINOR is an alias defined for the runtimes pre-installed on the build image. As such, 2.4 will not work until a version of 2.4.x is pre-installed. This will come in time, but until then, .0 is necessary.

@segiddins
Copy link
Author

Ah thanks, I thought it worked the same way as chruby (where I obviously have all the versions installed locally).

kronn added a commit to hitobito/hitobito that referenced this issue Jan 12, 2017
kenchan added a commit to pepabo/omniauth-colormeshop that referenced this issue Jan 26, 2017
cmason added a commit to cmason/eztz that referenced this issue Mar 6, 2017
aried3r added a commit to aried3r/acts_as_archival that referenced this issue Mar 15, 2017
aried3r added a commit to aried3r/acts_as_archival that referenced this issue Mar 15, 2017
aried3r added a commit to aried3r/acts_as_archival that referenced this issue Mar 15, 2017
aried3r added a commit to aried3r/acts_as_archival that referenced this issue Mar 15, 2017
thbar added a commit to thbar/kiba that referenced this issue Mar 21, 2017
thbar added a commit to thbar/kiba that referenced this issue Mar 21, 2017
* Update to ruby 2.4 final + enable 2.3 latest

See travis-ci/travis-ci#7077
junaruga added a commit to junaruga/mocha that referenced this issue Mar 22, 2017
@jrochkind
Copy link

It would be awesome if there were some way to tell travis "use the latest 2.4.x".

@stale
Copy link

stale bot commented Apr 12, 2018

Thanks for contributing to this issue. As it has been 90 days since the last activity, we are automatically closing the issue. This is often because the request was already solved in some way and it just wasn't updated or it's no longer applicable. If that's not the case, please do feel free to either reopen this issue or open a new one. We'll gladly take a look again! You can read more here: https://blog.travis-ci.com/2018-03-09-closing-old-issues

@stale stale bot added the stale label Apr 12, 2018
simonwiles added a commit to sul-cidr/noh that referenced this issue Dec 24, 2019
Builds on Travis were failing, returning an error "Could not find 'bundler' (1.16.2) required by your Gemfile.lock".  It seems this problem was caused by a forced upgrade of Ruby Gems, which, in turn, was caused because our Travis RVM config forces an old version of Ruby (2.3.3) which is not supported by the Travis build environment (see https://travis-ci.org/sul-cidr/noh/builds/629005327, esp. the `rvm use 2.3.3 --install --binary --fuzzy` command at line 176 and the `ruby --version` command at line 207).

The CI environment has Ruby 2.3.8 pre-installed, and switching the RVM config to use this version enables the use of the pre-installed `bundle` executable.  This allows builds to complete, and has the pleasant side-effect of speeding up the build-time considerably, too (see https://travis-ci.org/sul-cidr/noh/builds/629162946 -- I ran a manual build on Travis with a custom config).

It seems that RVM has no `2.3.x` syntax, or equivalent (see rvm/rvm#3512), which is disappointing.  However, it seems Travis does have functionality whereby specifying a `MAJOR.MINOR` without a `.PATCH` causes the build environment to use its pre-installed binaries for that version (see travis-ci/travis-ci#7077 and https://docs.travis-ci.com/user/languages/ruby/#specifying-ruby-versions-and-implementations).  This has the advantage of avoiding the problem encountered today, when Travis updates its build images, but presumably means that builds will fail if/when Ruby 2.3 is removed from those images.  On balance, this seems the lesser evil, so this commit sets the Travis RVM config to `2.3`.

Committing directly to `contents` in the interest of expediency.
DamienRobert pushed a commit to ruby-ore-templates/travis that referenced this issue Feb 25, 2020
According to travis-ci/travis-ci#7077

    MAJOR.MINOR is an alias defined for the runtimes pre-installed on
    the build image. As such, 2.4 will not work until a version of 2.4.x
    is pre-installed. This will come in time, but until then, .0 is
    necessary.

    I don't think 2.1 or 2.2 work that way, either. For example, 2.2
    points to 2.2.5 at the moment, though the latest version is 2.2.6.
    Similarly for 2.1.

So it seems best to specify the minor (minor) version.
Note: ruby 2.1.10 is out but not available on travis according to
http://rubies.travis-ci.org/

But according to the travis of bundler it still seems to work
https://travis-ci.org/bundler/bundler/
softdevlo added a commit to softdevlo/kiba that referenced this issue Aug 30, 2022
* Update to ruby 2.4 final + enable 2.3 latest

See travis-ci/travis-ci#7077
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants