This is more of a universal ticket to keep track of a few issues I'm currently bumping into when trying to build a Rubinius binary (in particular for Amazon CentOS).
Currently the following problems are present:
/home/yorickpeterse/.rubies/ruby-2.1.0/bin/ruby: No such file or directory -- clean (LoadError)
I'm keeping these in a single issue for the time being since they're most likely related to each other.
As an extra note, the above issues occur both on my local Arch Linux development environment as well as on our production Amazon CentOS servers. They occur either when building from Git or from a Tar archive (e.g. the one of 2.2.4).
Git commit 18b26ab was a late night attempt it fixing some of the above but I reverted it due to it breaking a few other things.
Observation regarding the Gem constant error, it seems Rubinius thinks that the corresponding file (rubygems/user_interaction) is already loaded when this is not the case. The require() call returns false but the constant it should define isn't there yet. Interesting enough GEM_PATH and GEM_HOME are reset in the Rake task that calls this code. This suggests that they need to be at an earlier point.
Only clean GEM_ENV/GEM_HOME when actually needed.
See #2915 for more information.