[Rubygems-developers] RubyGems test failures related to multiple interpreters and executable prefix/suffix

Chad Woolley thewoolleyman at gmail.com
Tue Jul 21 04:38:17 EDT 2009


Thanks for your help Luis...

On Mon, Jul 20, 2009 at 7:31 PM, Luis Lavena<luislavena at gmail.com> wrote:
> What is the output of this:
>
> ruby -rrbconfig -e "puts RbConfig::CONFIG['ruby_install_name']"

"ruby1.8.6" on both machines

> What is the value of ENV['rake'] when Rake has been loaded?

$ cat Rakefile
task :default do
  puts ENV['rake']
end

$ rake
(in /tmp)
nil


>
> It shouldn't be prefixing it, unless is trying to resolve the symlink,
> which is doubtful.

It must be following the symlink, or figuring it out somehow.  Here is
the line that blow up in Gem::Ext::RakeBuilder.build:

cmd = ENV['rake'] || "#{Gem.ruby} -rubygems #{Gem.bin_path('rake')}"
rescue Gem.default_exec_format % 'rake'

...it is getting to the rescue clause, because Gem.bin_path('rake')
fails with "can't find gem rake (>= 0)"

Thanks,
-- Chad


More information about the Rubygems-developers mailing list