Skip to content
This repository has been archived by the owner on Oct 1, 2022. It is now read-only.

Work around Rubinius build script choking on RUBYLIB #10

Closed
wants to merge 1 commit into from

Conversation

mislav
Copy link
Member

@mislav mislav commented Oct 6, 2013

Rubinius' ./configure script is has a guard that aborts the build if RUBYLIB environment variable is set. As an unfortunate consequence, anybody using "rbenv-gem-rehash" plugin won't be able to build Rubinius.

This works around the issue by not writing to RUBYLIB if the name of the script to be executed is ./configure. Granted, this might affect more projects than just Rubinius, but this assumes that a script named ./configure won't install any gems that need to be rehashed afterwards.

This is a terrible thing to do, but I don't see a cleaner workaround.

Fixes #8. Also see rubinius/rubinius#2659

Rubinius' `./configure` script is has a guard that aborts the build if
RUBYLIB environment variable is set. As an unfortunate consequence,
anybody using "rbenv-gem-rehash" plugin won't be able to build Rubinius.

This works around the issue by not writing to RUBYLIB if the name of the
script to be executed is `./configure`. Granted, this might affect more
projects than just Rubinius, but this assumes that a script named
`./configure` won't install any gems that need to be rehashed afterwards.

See rubinius/rubinius#2659
@samgranieri
Copy link

this hit me too

@johnbellone
Copy link

+1 here.

@mislav
Copy link
Member Author

mislav commented Oct 19, 2013

Rubinius 2.1 has this fixed. I don't consider this workaround needed anymore sine rbx 2.0 didn't live particularly long. Users should install 2.1 instead.

@mislav mislav closed this Oct 19, 2013
@mislav mislav deleted the rbx-fix branch October 19, 2013 23:43
@bobbdelsol
Copy link

The Homebrew formula is still using 2.0.0

@mislav
Copy link
Member Author

mislav commented Nov 12, 2013

@bobbdelsol The homebrew formula for what? You should upgrade ruby-build from Homebrew to the latest version and install rbx 2.1 or newer from it. You shouldn't have issues with installing or using it. If you have problems please let us know on the issue tracker for ruby-build.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Setting the environment variable ENV['RUBYLIB'] conflict with building rubinius
4 participants