Installing facter without having rubygems installed fails with: >>> Install facter-1.3.8 into /var/tmp/portage/dev-ruby/facter-1.3.8/image/ category dev-ruby /usr/bin/ruby: no such file to load -- auto_gem (LoadError) * * ERROR: dev-ruby/facter-1.3.8 failed. * Call stack: * ebuild.sh, line 49: Called src_install * environment, line 2219: Called ruby_einstall * environment, line 2125: Called die * The specific snippet of code: * ${RUBY} install.rb config --prefix=${D}/usr "$@" ${RUBY_ECONF} || die "install.rb config failed"; * The die message: * install.rb config failed Emerging dev-ruby/rubygems fixes the problem.
hmm, on my env (~amd64, ruby-1.8.6_p287-r1), it installs successful without rubygems. Could you put your emerge --info here? and what version of ruby do you use?
Thanks for the feedback. In fact I'm using the ruby version. I did check again now and it is indeed not dependant on dev-ruby/rubygems. I don't know exactly why emerging that package helped. The problem is apparently rather linked to the RUBYOPTS variable. I found the same problem mentioned here: http://fatpenguinblog.com/scott-rippee/usrbinruby-no-such-file-to-load-auto_gem-loaderror/ This is the value of RUBYOPT on my system: > echo $RUBYOPT -rauto_gem Using RUBYOPT="" emerge facter indeed corrects the problem. I mark this as invalid now though maybe it still has some relevance in the ruby world of Gentoo. I don't know why RUBYOPT had that value. I emerged ruby and facter from binary packages in a fresh untarred stage.