if ruby path is not setup for the user running the ruby install command (root under sudo) for example, the install will fail because ruby is directly wo the full path in ./recipes/centos/ruby.rb:
# Install rubygems
build.install("rubygems", rubygems_build_options) do |dir|
run_via "cd #{dir} && ruby setup.rb"
end
the ruby gem install will fail with the following error if ran as sudo
failed: "sh -c "sudo -p 'sudo password: ' cd /tmp/rubygems/rubygems-1.3.1 && ruby setup.rb"" on test.sensr.net
cd is a built in command , should use instead:
sudo sh -c "cd /tmp/rubygems/rubygems-1.3.1 && ruby setup.rb"