Giter Club home page Giter Club logo

Comments (19)

rkh avatar rkh commented on July 3, 2024 1

I generally would not mind replacing rvm usage at Travis CI with something I understand.

from ruby-install.

rkh avatar rkh commented on July 3, 2024 1

I'm not working with Ruby in a professional setting at the moment, so I don't think I'll have time to look into this any time soon, sorry.

from ruby-install.

postmodern avatar postmodern commented on July 3, 2024

Rubinius is working on binary builds and JRuby/MagLev already supports them. MRI is the odd one out, unless we use RVM's builds. We should eventually add alternate functions for unpacking binary installs.

from ruby-install.

postmodern avatar postmodern commented on July 3, 2024

This would entail adding a --binary option and BINARY_INSTALL env variable which would disable downloading/compiling the source archive.

from ruby-install.

postmodern avatar postmodern commented on July 3, 2024

JRuby and Rubinius both have binary packages. RVM provides precompiled versions of MRI. http://rvm.io/binaries/

from ruby-install.

postmodern avatar postmodern commented on July 3, 2024

Pushing this back to 0.3.0, since binary support will require changing a considerable amount of code. 0.2.0 already has enough new features as well.

from ruby-install.

brndnblck avatar brndnblck commented on July 3, 2024

Will this make it into 0.4.0?

from ruby-install.

postmodern avatar postmodern commented on July 3, 2024

Possibly. The problem is that RVM only supports binary builds for the latest versions of OSes, which means we'll have to fall back to compiling if the binary cannot be downloaded.

from ruby-install.

brndnblck avatar brndnblck commented on July 3, 2024

I think a binary if you can approach, but fall back to compilation would be a very reasonable solution.

from ruby-install.

havenwood avatar havenwood commented on July 3, 2024

Or failing if no binary is available is another option, which would mean having to remove the -b flag to compile when binary installation fails.

from ruby-install.

rkh avatar rkh commented on July 3, 2024

Can I use ruby-install to replace https://github.com/tokaido/tokaido-build?

from ruby-install.

postmodern avatar postmodern commented on July 3, 2024

@rkh based on the build.sh and some grepping, rvm install --movable basically adds these ./configure options:

  (( ${rvm_movable_flag:-0} > 0 ))  || return 0
  case "${_system_type}" in
    (Darwin)
      rvm_configure_flags+=(
        --enable-load-relative --with-static-linked-ext
        --with-out-ext=dl/win32,fiddle/win32,tk/tkutil,tk,win32ole,-test-/win32/dln,-test-/win32/fd_setsize
      )
      rvm_patch_names+=( osx_static )
      ;;
    (*)
      rvm_configure_flags+=( --enable-load-relative )
      ;;
  esac
  rvm_configure_flags+=( --sysconfdir=/etc )
  rvm_make_flags+=( -j3 )

You should be able to replace rvm install ruby --movable with ruby-install -i /path/to/where_ever ruby -- --enable-static --enable-load-relative.

from ruby-install.

rkh avatar rkh commented on July 3, 2024

Thanks, I'll give this a try after the upcoming conference action.

from ruby-install.

sarahhodne avatar sarahhodne commented on July 3, 2024

Opened a PR for this: #138.

from ruby-install.

FranklinYu avatar FranklinYu commented on July 3, 2024

rvm/rvm#4298 could be related.

from ruby-install.

postmodern avatar postmodern commented on July 3, 2024

Noticed that RVM's binaries haven't been updated recently. Not seeing binaries for newer versions of Ubuntu, Fedora, or OSX. https://rvm.io/binaries/ That seems like a blocker for average users not using ruby-install in an older VM or docker image.

from ruby-install.

FranklinYu avatar FranklinYu commented on July 3, 2024

@postmodern Yes, and rvm/rvm#4298 has been talking about it. RVM team made barely any progress about this since last year though.

from ruby-install.

rkh avatar rkh commented on July 3, 2024

Note that rvm also downloads binaries from http://rubies.travis-ci.org/.

from ruby-install.

FranklinYu avatar FranklinYu commented on July 3, 2024

@rkh Awesome! Iā€™m curious whether they are path-dependent though. Will need some research.

I think it would help if one picks a binary from the page, and try it in a virtual machine. At least we can verify the Ubuntu binaries this way.

from ruby-install.

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.