Created attachment 364996 [details] build.log I'm experiencing the following error while "emerge -uND world": /usr/lib64/ruby/2.0.0/rubygems.rb:15:in `require': cannot load such file -- rubygems/compatibility (LoadError) from /usr/lib64/ruby/2.0.0/rubygems.rb:15: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 4639: Called ruby-ng_src_install * environment, line 4305: Called _ruby_each_implementation 'each_ruby_install' * environment, line 478: Called _ruby_invoke_environment 'ruby20' 'each_ruby_install' * environment, line 530: Called each_ruby_install * environment, line 831: Called each_fakegem_install * environment, line 804: Called ruby_fakegem_install_gemspec * environment, line 4486: Called die * The specific snippet of code: * fi ) || die "Unable to generate gemspec file."; The file with full log is attached.
This file is provided by dev-ruby/rubygems. Is that already installed when this happens? It should be, but let's check that first.
Created attachment 383402 [details] build.log Similar problem when emerging =media-video/mkvtoolnix-6.6.0 However, 'emerge -1av dev-lang/ruby' solves it.
(In reply to Andrey Aleksandrovich from comment #2) > Created attachment 383402 [details] > build.log > > Similar problem when emerging =media-video/mkvtoolnix-6.6.0 > However, 'emerge -1av dev-lang/ruby' solves it. Can you confirm that you did not have any version of ruby installed yet before emerging this, and that it was pulled in as part of this emerge action? I suspect the issue is with the fact that we need to use PDEPEND to pull in the additional ruby components (because we need to have ruby installed first).
I had the problem today with "emerge -uND world" and dev-ruby/rake-10.3.2 : --------------------------------------------------------------------- % cat /var/tmp/portage/dev-ruby/rake-10.3.2/temp/build.log * Package: dev-ruby/rake-10.3.2 * Repository: gentoo * Maintainer: ruby@gentoo.org * USE: abi_x86_64 amd64 elibc_glibc kernel_linux ruby_targets_ruby21 userland_GNU * FEATURES: preserve-libs sandbox userpriv usersandbox * Running unpack phase for all ... * Unpacking .gem file... ... [ ok ] * Uncompressing metadata ... [ ok ] * Unpacking data.tar.gz ... [ ok ] * Running prepare phase for all ... * Running source copy phase for ruby21 ... * Running prepare phase for ruby21 ... * Running compile phase for all ... * Running install phase for ruby21 ... /usr/lib64/ruby/2.1.0/rubygems.rb:15:in `require': cannot load such file -- rubygems/compatibility (LoadError) from /usr/lib64/ruby/2.1.0/rubygems.rb:15:in `<top (required)>' from <internal:gem_prelude>:1:in `require' from <internal:gem_prelude>:1:in `<compiled>' * ERROR: dev-ruby/rake-10.3.2::gentoo failed (install phase): * Unable to generate gemspec file. --------------------------------------------------------------------- Checking previous comments, i checked : dev-lang/ruby-2.1.5 (last ~amd64) is currently installed no dev-ruby/rubygems is installed virtual/rubygems is installed (both "6" and "(~)7") I fixed the stuff by issuing : emerge -C virtual/rubygems
(In reply to Hans de Graaff from comment #3) > (In reply to Andrey Aleksandrovich from comment #2) > > Created attachment 383402 [details] > > build.log > > > > Similar problem when emerging =media-video/mkvtoolnix-6.6.0 > > However, 'emerge -1av dev-lang/ruby' solves it. > > Can you confirm that you did not have any version of ruby installed yet > before emerging this, and that it was pulled in as part of this emerge > action? > > I suspect the issue is with the fact that we need to use PDEPEND to pull in > the additional ruby components (because we need to have ruby installed > first). I can confirm this. On a bare system this happened when emerging media-video/mkvtoolnix-6.6.0. The suggested emerge -1v dev-lang/ruby pulled a whole bunch of other ruby dependencies as new packages which where not pulled when emerging mkvtoolix.
Created attachment 432322 [details] emerge-info.txt >>> Install rake-11.1.2 into /var/tmp/portage/dev-ruby/rake-11.1.2/image/ category dev-ruby * Running install phase for ruby20 ... /usr/lib64/ruby/2.0.0/rubygems.rb:15:in `require': cannot load such file -- rubygems/compatibility (LoadError) from /usr/lib64/ruby/2.0.0/rubygems.rb:15:in `<top (required)>' from <internal:gem_prelude>:1:in `require' from <internal:gem_prelude>:1:in `<compiled>'
Created attachment 432324 [details] dev-ruby:rake-11.1.2:20160427-184943.log
Created attachment 432326 [details] emerge-history.txt
Created attachment 432328 [details] environment