Summary: | unable to install dev-ruby/json: cannot load such file -- rake (LoadError) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | YLD <nurachi> |
Component: | [OLD] Library | Assignee: | Gentoo Ruby Team <ruby> |
Status: | RESOLVED INVALID | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | 10.1 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
YLD
2015-09-09 10:02:31 UTC
Same problem refzerenced several month ago in the forum https://forums.gentoo.org/viewtopic-t-984716-view-previous.html Did this happen when first installing ruby? Is dev-ruby/rake installed? No Ruby was already installed as was rake. I also tried to first uninstall all Ruby versions before reinstalling @world set. No luck. Rake was always pulled in before dev-ruby/json. Which version of ruby do you have eselected? eselect ruby --list (In reply to Hans de Graaff from comment #4) > Which version of ruby do you have eselected? > > eselect ruby --list Ruby 2.0.x eselect ruby list Available Ruby profiles: [1] ruby20 * [2] ruby21 The version also appeared in the compilation logs: * Running compile phase for ruby20 ... I finally managed to upgrade most of my system.
* i diabled ruby, qt5 and designer flags
* masked all the dev-qt/*-5.4.2 package (some of them were requiring ruby)
* emptyed RUBY_TARGETS
After that i:
1) set RUBY_TARGET to ruby20 only
2) installed ruby 2.0.0_p645 only
3) eselect it
4) tried again to install dev-ruby/json
The first strange thing is that virtual/rubygems required all of the ruby versions:
USE="-ruby -qt5 -designer" emerge dev-ruby/json -tp
These are the packages that would be merged, in reverse order:
Calculating dependencies... done!
[nomerge ] dev-ruby/json-1.8.2-r1 USE="-doc {-test}" RUBY_TARGETS="ruby20 -ruby19 -ruby21"
[nomerge ] dev-ruby/rake-10.4.2 USE="-doc {-test}" RUBY_TARGETS="ruby20 -ruby19 -ruby21 -ruby22"
[nomerge ] virtual/rubygems-10
[nomerge ] dev-ruby/rubygems-2.2.5-r1 USE="server {-test}" RUBY_TARGETS="ruby19 ruby20 ruby21"
[ebuild N ] dev-ruby/builder-3.2.2 USE="-doc {-test}" RUBY_TARGETS="ruby20 -ruby19"
[ebuild N ] dev-ruby/rubygems-2.2.5-r1 USE="server {-test}" RUBY_TARGETS="ruby19 ruby20 ruby21"
[ebuild NS ] dev-lang/ruby-1.9.3_p551-r1 [2.0.0_p645, 2.1.6-r1] USE="berkdb gdbm ipv6 ncurses readline ssl yaml -debug -doc -examples -rdoc -rubytests -socks5 -xemacs"
[ebuild N ] dev-ruby/json-1.8.2-r1 USE="-doc {-test}" RUBY_TARGETS="ruby20 -ruby19 -ruby21"
[ebuild N ~] dev-ruby/rake-10.4.2 USE="-doc {-test}" RUBY_TARGETS="ruby20 -ruby19 -ruby21 -ruby22"
The following USE changes are necessary to proceed:
(see "package.use" in the portage(5) man page for more details)
# required by virtual/rubygems-10::gentoo[ruby_targets_ruby21]
# required by dev-lang/ruby-1.9.3_p551-r1::gentoo
>=dev-ruby/rubygems-2.2.5-r1 ruby_targets_ruby21 ruby_targets_ruby19
!!! The following installed packages are masked:
- dev-qt/qtwebkit-4.8.6-r1::gentoo (masked by: package.mask)
/etc/portage/package.mask:
#=dev-qt/qtwidgets-5.4.2
After re-installing virtual/rubygems it left only 2 packages (rake and json), but still not luck.
If failed again at the same step (cannot load rake) durng emerge process nor from console:
machine# rake
/usr/lib64/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- rake (LoadError)
from /usr/lib64/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/lib64/ruby/gems/2.0.0/gems/rake-0.9.6/bin/rake:35:in `<top (required)>'
from /usr/bin/rake:9:in `load'
from /usr/bin/rake:9:in `<main>'
It appears that this was a su/sudo problem. I typed "su" instead of "su -" that way system gem configuration was mixed up with user rvm/gem setup. gem env helped me to resolve the problem (GEM_PATHS, INSTALLATION DIRECTORY, EXECUTABLE DIRECTORY): gem env RubyGems Environment: - RUBYGEMS VERSION: 2.2.5 - RUBY VERSION: 2.0.0 (2015-04-13 patchlevel 645) [x86_64-linux] - INSTALLATION DIRECTORY: /home/me/.rvm/gems/ruby-2.1.2 - RUBY EXECUTABLE: /usr/bin/ruby20 - EXECUTABLE DIRECTORY: /home/me/.rvm/gems/ruby-2.1.2/bin - SPEC CACHE DIRECTORY: /root/.gem/specs - RUBYGEMS PLATFORMS: - ruby - x86_64-linux - GEM PATHS: - /home/me/.rvm/gems/ruby-2.1.2 - /home/me/.rvm/gems/ruby-2.1.2@global - GEM CONFIGURATION: - :update_sources => true - :verbose => true - :backtrace => false - :bulk_threshold => 1000 - REMOTE SOURCES: - https://rubygems.org/ - SHELL PATH: - /sbin - /bin - /usr/sbin - /usr/bin After a "su -", "su -l" or "sudo -i" gem env output was correct and i did not encounter any problem to install dev-ruby/json as i was able to upgrade my whole system. Sorry for the noise and thank you very much for you time and help. |