I have been chasing my tail with ruby tonight. The masking of ruby18 meant that I had to unmerge a lot of ruby packages and then portage chose what to merge afresh. "All good to go" I thought until this was error showed up: ================================================================== >>> Emerging (1 of 9) dev-ruby/rake-0.9.6 * rake-0.9.6.gem SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ] >>> Unpacking source... * Running unpack phase for all ... * Unpacking .gem file... ... [ ok ] * Uncompressing metadata ... [ ok ] * Unpacking data.tar.gz ... [ ok ] >>> Source unpacked in /var/tmp/portage/dev-ruby/rake-0.9.6/work >>> Preparing source in /var/tmp/portage/dev-ruby/rake-0.9.6/work ... * Running prepare phase for all ...
gzip: doc/rake.1.gz: unexpected end of file
* Running source copy phase for ruby19 ...
* Running source copy phase for ruby20 ...
* Running prepare phase for ruby19 ...
* Running prepare phase for ruby20 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-ruby/rake-0.9.6/work ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-ruby/rake-0.9.6/work ...
* Running compile phase for all ...
>>> Source compiled.
>>> Test phase [not enabled]: dev-ruby/rake-0.9.6
>>> Install rake-0.9.6 into /var/tmp/portage/dev-ruby/rake-0.9.6/image/
category dev-ruby
* Running install phase for ruby19 ...
/usr/lib64/ruby/1.9.1/rubygems.rb:30:in `require': cannot load such file --
rubygems/defaults (LoadError)
from /usr/lib64/ruby/1.9.1/rubygems.rb:30:in `<top (required)>'
from <internal:gem_prelude>:1:in `require'
from <internal:gem_prelude>:1:in `<compiled>'
* ERROR: dev-ruby/rake-0.9.6::gentoo failed (install phase):
* Unable to generate gemspec file.
*
* Call stack:
* ebuild.sh, line 93: Called src_install
* environment, line 4316: Called ruby-ng_src_install
* environment, line 3978: Called _ruby_each_implementation
'each_ruby_install'
* environment, line 449: Called _ruby_invoke_environment 'ruby19'
'each_ruby_install'
* environment, line 501: Called each_ruby_install
* environment, line 802: Called each_fakegem_install
* environment, line 775: Called ruby_fakegem_install_gemspec
* environment, line 4159: Called die
* The specific snippet of code:
* fi ) || die "Unable to generate gemspec file.";
==================================================================
The missing file is there, I think:
# ls -la /usr/lib64/ruby/1.9.1/rubygems.rb
-rw-r--r-- 1 root root 34951 Apr 20 2012 /usr/lib64/ruby/1.9.1/rubygems.rb
What now?
--
Regards,
Mick
signature.asc
Description: This is a digitally signed message part.

