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

Environment variable for Ruby configuration #285

Open
FranklinYu opened this issue Nov 13, 2016 · 1 comment
Open

Environment variable for Ruby configuration #285

FranklinYu opened this issue Nov 13, 2016 · 1 comment

Comments

@FranklinYu
Copy link

FranklinYu commented Nov 13, 2016

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.

@postmodern
Copy link
Owner

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?

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