Ruby build fails on OS X due to whitespace in HDD name
It appears that my Ruby build is failing because my other HDD name contains a space. I am not sure if this is an issue with the Ruby build scripts or if it is an issue with ruby-install. I thought I would start the adventure by opening this issue here.
configure: creating ./config.status
config.status: creating GNUmakefile
config.status: creating Makefile
config.status: creating ruby-2.2.pc
>>> Cleaning ruby 2.2.1 ...
cleaning encodings
/bin/sh: /Volumes/Old: No such file or directory
/bin/sh: line 0: exec: /Volumes/Old: cannot execute: No such file or directory
make: *** [clean-enc] Error 126
!!! Cleaning ruby 2.2.1 failed!
I have tried to specify an install dir ruby-install --install-dir ~/.rubies/2.2.1 ruby and got the same error. The interesting thing is that it looks like it is trying to access my other HDD. I am not sure why. Everything, including the running OS, is installed on my new HDD.
Any help, advice, or a point to another direction would be much appreciated!
I am running OS X 10.10.2 and ruby-install was installed a couple of hours ago from HEAD and is sitting @fa7cfafc2d2fd786c56e5301ae9938d8ea7d3165
This is a known issue with MRI. I'm guessing you're $HOME or the src directory is still on the old HDD?
Aforementioned upstream bug: https://bugs.ruby-lang.org/issues/9010
Confirmed that I can reproduce this with:
$ HOME="$PWD/fake home" ruby-install ruby 2.2.1
linking ruby
gcc: error: home/.rubies/ruby-2.2.1/lib: No such file or directory
gcc: error: home/.rubies/ruby-2.2.1/lib: No such file or directory
make[2]: *** [ruby] Error 1
make[2]: Leaving directory `/home/hal/fake home/src/ruby-2.2.1'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/hal/fake home/src/ruby-2.2.1'
make: *** [build-ext] Error 2
@postmodern Neither my $HOME nor the target src directory is on the old hdd. I honestly have no idea why it wanted to look at that drive.
I worked around the issue by renaming both HDDs so that they didn't contain a space.