sstephenson/ruby-build — Issue #110: Support relative paths as the last arg to ruby-build
Author: jason-o-matic
Created: 2011-12-26 17:05:02+00:00
State: open

I just wanted to test out the tool and the first thing I did failed. From the checked out ruby-build directory:

jason@lappy-2 [master] ruby-build $ ruby-build 1.9.2-p290 ./test_ruby_installation_that_i_created
Downloading http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz...
Installing yaml-0.1.4...

BUILD FAILED

Inspect or clean up the working tree at /var/folders/rP/rPZKaQnrFv41qNPtSdOaF++++TI/-Tmp-/ruby-build.20111226115702.4671
Results logged to /var/folders/rP/rPZKaQnrFv41qNPtSdOaF++++TI/-Tmp-/ruby-build.20111226115702.4671.log

Last 10 log lines:
x yaml-0.1.4/win32/vs2008/run_parser.vcproj
x yaml-0.1.4/win32/vs2008/yaml.vcproj
x yaml-0.1.4/win32/vs2008/test_version.vcproj
x yaml-0.1.4/win32/vs2008/run_emitter.vcproj
x yaml-0.1.4/win32/vs2008/example_reformatter.vcproj
x yaml-0.1.4/win32/vs2008/run_loader.vcproj
x yaml-0.1.4/win32/vs2008/yamldll.vcproj
x yaml-0.1.4/win32/config.h
/var/folders/rP/rPZKaQnrFv41qNPtSdOaF++++TI/-Tmp-/ruby-build.20111226115702.4671/yaml-0.1.4 /var/folders/rP/rPZKaQnrFv41qNPtSdOaF++++TI/-Tmp-/ruby-build.20111226115702.4671 ~/projects/ruby-build
configure: error: expected an absolute directory name for --prefix: ./test_ruby_installation_that_i_created

I had to instead run:

jason@lappy-2 [master] ruby-build $ ruby-build 1.9.2-p290 `pwd`/test_ruby_installation_that_i_created
Downloading http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz...
Installing yaml-0.1.4...
Installed yaml-0.1.4 to /Users/jason/projects/ruby-build/test_ruby_installation_that_i_created
Downloading http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p290.tar.gz...
Installing ruby-1.9.2-p290...
Installed ruby-1.9.2-p290 to /Users/jason/projects/ruby-build/test_ruby_installation_that_i_created
Downloading http://production.cf.rubygems.org/rubygems/rubygems-1.8.10.tgz...
Installing rubygems-1.8.10...
Installed rubygems-1.8.10 to /Users/jason/projects/ruby-build/test_ruby_installation_that_i_created

Not needing to absolute-ize my own directory would be a much better first impression.