Skip to content

Instantly share code, notes, and snippets.

@driv3r
Created August 8, 2013 13:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save driv3r/6184443 to your computer and use it in GitHub Desktop.
Save driv3r/6184443 to your computer and use it in GitHub Desktop.
Crash while trying to run `rbenv install rbx-2.0.0-dev` inside chef recipe. It waits for user input `y` for gems like rake, rdoc, ri and others which are in preinstall-gems.
/tmp/ruby-build.20130808125730.21992/rubinius-2.0.0-dev/staging/bin/rbx /tmp/ruby-build.20130808125730.21992/rubinius-2.0.0-dev/rakelib/preinstall_gems.rb
Pre-installing gems for 1.9.3...
An exception occurred running /tmp/ruby-build.20130808125730.21992/rubinius-2.0.0-dev/rakelib/preinstall_gems.rb
"rake" from rake conflicts with /tmp/ruby-build.20130808125730.21992/rubinius-2.0.0-dev/staging/bin/rake (Gem::InstallError)
Backtrace:
Gem::Installer#check_executable_overwrite at staging/lib/rubygems
/installer.rb:175
{ } in Gem::Installer#generate_bin at staging/lib/rubygems/installer.rb:375
Array#each at kernel/bootstrap/array.rb:68
Gem::Installer#generate_bin at staging/lib/rubygems/installer.rb:362
Gem::Installer#install at staging/lib/rubygems/installer.rb:222
{ } in Gem::DependencyInstaller#install at staging/lib/rubygems
/dependency_installer.rb:371
{ } in Enumerable(Array)#each_with_index at kernel/common/enumerable19.rb:159
Array#each at kernel/bootstrap/array.rb:68
Enumerable(Array)#each_with_index at kernel/common/enumerable19.rb:157
Gem::DependencyInstaller#install at staging/lib/rubygems
/dependency_installer.rb:331
{ } in Object#__script__ at rakelib/preinstall_gems.rb:28
Array#each at kernel/bootstrap/array.rb:68
Object#__script__ at rakelib/preinstall_gems.rb:16
Rubinius::CodeLoader#load_script at kernel/delta/codeloader.rb:68
Rubinius::CodeLoader.load_script at kernel/delta/codeloader.rb:119
Rubinius::Loader#script at kernel/loader.rb:645
Rubinius::Loader#main at kernel/loader.rb:844
rake aborted!
Command failed with status (1): [/tmp/ruby-build.20130808125730.21992/rubin...]
/tmp/ruby-build.20130808125730.21992/rubinius-2.0.0-dev/rakelib/gems.rake:12:in `block (2 levels) in <top (required)>'
Tasks: TOP => install => gems:install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment