Giter Site home page Giter Site logo

Fails to install ruby 2.3 about setup-ruby HOT 8 CLOSED

ruby avatar ruby commented on August 9, 2024
Fails to install ruby 2.3

from setup-ruby.

Comments (8)

eregon avatar eregon commented on August 9, 2024

Ruby 2.3 is not supported currently (or not yet).
Do you need it for testing some gem which still supports 2.3?

FWIW, Ruby 2.3 is end-of-life and does not support any recent OpenSSL (1.1.x), but I can give it a try to build it in https://github.com/eregon/ruby-install-builder
Ruby <= 2.3 needs OpenSSL 1.0.2 which is also end-of-life since 31 Dec 2019 and therefore considered insecure.

from setup-ruby.

eregon avatar eregon commented on August 9, 2024

BTW, the message above is actually an error message from actions/setup-ruby, not from this action.

from setup-ruby.

eregon avatar eregon commented on August 9, 2024

FWIW, the error message of this action for 2.3 is:

Run eregon/use-ruby-action@master
  with:
    ruby-version: 2.3
##[error]Unknown version 2.3 (2.3)
##[error]Node run failed with exit code 1

We could probably make that better.

from setup-ruby.

eregon avatar eregon commented on August 9, 2024

I improved the error message in 7d189e2:
https://github.com/eregon/use-ruby-action/runs/373716540

##[error]Unknown version 2.3 for ruby
        input: 2.3
        available versions for ruby: 2.4.9, 2.5.7, 2.6.5, 2.7.0
        File an issue at https://github.com/eregon/ruby-install-builder/issues if would like support for a new version
##[error]Node run failed with exit code 1

from setup-ruby.

eregon avatar eregon commented on August 9, 2024

I tried in https://github.com/eregon/ruby-install-builder/runs/373803355 but it's a mess:

  • Homebrew no longer has an [email protected] formula
  • ubuntu-16.04 runners have openssl 1.1 and apparently no way to install openssl 1.0
  • ubuntu-18.04 can install openssl 1.0 with apt-get install -y libssl1.0-dev

So it's not looking good so far.

I think it's time to say goodbye to Ruby 2.3. It can only be run insecurely at this point and no longer builds on any recent OS or with any supported OpenSSL version.

from setup-ruby.

solnic avatar solnic commented on August 9, 2024

Do you need it for testing some gem which still supports 2.3?

Yes, unfortunately, but I think we can actually drop it. I gotta talk to other core team folks about it.

from setup-ruby.

eregon avatar eregon commented on August 9, 2024

Thanks, please tell me the result.

I'm looking to use ruby-build which might help as it builds its own openssl, but currently only on macOS (--if has_broken_mac_openssl in https://github.com/rbenv/ruby-build/blob/bac1f1cae63cea697ca8d63b167e0bd7587295ee/share/ruby-build/2.3.8#L1). It seems possible to make it build old openssl versions as well on Linux, I'll try that.

from setup-ruby.

eregon avatar eregon commented on August 9, 2024

I managed to get builds of Ruby 2.3 working with ruby-build and making ruby-build build its own OpenSSL on Ubuntu too.

I mentioned this in the README:

Note that Ruby 2.3 and the OpenSSL version it needs (1.0.2) are both end-of-life, which means Ruby 2.3 is unmaintained and considered insecure.

But if you need to use Ruby 2.3, it should work as good as any other build of Ruby 2.3.

from setup-ruby.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.