ruby-install icon indicating copy to clipboard operation
ruby-install copied to clipboard

Environment variable for Ruby configuration

Open FranklinYu opened this issue 9 years ago • 2 comments

E.g., do the same as

$ ruby-install ruby 2.3.0 -- --enable-shared --enable-dtrace CFLAGS="-O3"

with

$ export RUBY_INSTALL_OPTS='--enable-shared --enable-dtrace CFLAGS="-O3"'
$ ruby-install ruby 2.3.0

This has advantage that a user may want global (user-specific) Ruby configurations, such as --foo-lib-path=/my/path/to/foo. It is --with-readline-dir=/usr/local/opt/readline in my case (on OS X), but I believe there may be more use cases.

FranklinYu avatar Nov 13 '16 05:11 FranklinYu

This might not work since ruby-install can install other rubies, and while CRuby is currently the only ruby which supports additional configuration opts, what happens when we accidentally pass global CRuby configuration opts to another ruby that also has a ./configure script that accepts options?

postmodern avatar Feb 01 '25 20:02 postmodern

That’s fair; how about CRUBY_INSTALL_OPTS?

FranklinYu avatar Feb 15 '25 23:02 FranklinYu