GithubHelp home page GithubHelp logo

Comments (4)

rmoriz avatar rmoriz commented on August 19, 2024 2

The key seems to be compilig ruby with --enable-load-relative.

We're using ruby-build to pre-build ruby installs for various users/servers.

…
export RUBY_VERSION=2.3.3
export RUBY_CONFIGURE_OPTS="--disable-install-doc --enable-load-relative"
ruby-build --verbose $RUBY_VERSION ~/.asdf/installs/ruby/$RUBY_VERSION
asdf local ruby $RUBY_VERSION && asdf list ruby && asdf reshim ruby ${RUBY_VERSION}
…

While this won't fix existing installs, it might be worth adding to asdf-ruby's install script.

from asdf-ruby.

Stratus3D avatar Stratus3D commented on August 19, 2024

@maxim that's true, it looks like Rubies installed by asdf-ruby also have hardcoded shebangs. I suppose it would be possible to write a simple shell script to replace the shebang lines, but I'm not sure it's worth it.

from asdf-ruby.

Stratus3D avatar Stratus3D commented on August 19, 2024

I've removed this migrating rubies section from the readme since it's simpler for users to reinstall than it is to migrate. @rmoriz if you think --enable-load-relative is worth having can you open another issue for it? Thanks!

from asdf-ruby.

rmoriz avatar rmoriz commented on August 19, 2024

As far as I understand, rvm uses --enable-load-relative. That said, asdf-ruby's README shows the path to https://github.com/rbenv/ruby-build#custom-build-configuration so if someone cares, they should find this issue and the solutions or the hint to the solution somewhere else.

I understand this is an edge case.

from asdf-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.