Gentoo Archives: gentoo-user

From: Paul Klos <gentoo@××××××××.nl>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Strange problem with Ruby (vagrant)
Date: Wed, 20 Nov 2019 11:58:13
Message-Id: 3542861.4ANIW45Oa9@r9ojjwpt
In Reply to: [gentoo-user] Strange problem with Ruby (vagrant) by Alexey Eschenko
1 Op woensdag 20 november 2019 09:32:17 CET schreef Alexey Eschenko:
2 > Hi.
3 >
4 > I need to use Vagrant but it doesn't work with strange error message:
5 > > $ vagrant
6 > > Traceback (most recent call last):
7 > > 2: from
8 > > /usr/lib64/ruby/gems/2.6.0/gems/vagrant-2.2.6/bin/vagrant:88:in `<main>'
9 > > 1: from
10 > > /usr/lib64/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in
11 > > `require'
12 > > /usr/lib64/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in
13 > > `require': cannot load such file -- vagrant (LoadError)
14 > > 8: from
15 > > /usr/lib64/ruby/gems/2.6.0/gems/vagrant-2.2.6/bin/vagrant:88:in `<main>'
16 > > 7: from
17 > > /usr/lib64/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:34:in
18 > > `require'
19 > > 6: from
20 > > /usr/lib64/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:123:in
21 > > `rescue in require'
22 > > 5: from /usr/lib64/ruby/site_ruby/2.6.0/rubygems.rb:218:in
23 > > `try_activate'
24 > > 4: from
25 > > /usr/lib64/ruby/site_ruby/2.6.0/rubygems/specification.rb:1417:in
26 > > `activate'
27 > > 3: from
28 > > /usr/lib64/ruby/site_ruby/2.6.0/rubygems/specification.rb:1435:in
29 > > `activate_dependencies'
30 > > 2: from
31 > > /usr/lib64/ruby/site_ruby/2.6.0/rubygems/specification.rb:1435:in `each'
32 > > 1: from
33 > > /usr/lib64/ruby/site_ruby/2.6.0/rubygems/specification.rb:1446:in
34 > > `block in activate_dependencies'
35 > > /usr/lib64/ruby/site_ruby/2.6.0/rubygems/dependency.rb:313:in
36 > > `to_specs': Could not find 'rubyzip' (~> 1.2.2) - did find:
37 > > [rubyzip-2.0.0] (Gem::MissingSpecVersionError)
38 > > Checked in
39 > > 'GEM_PATH=/home/skobkin/.gem/ruby/2.6.0:/usr/lib64/ruby/gems/2.6.0:/usr/lo
40 > > cal/lib64/ruby/gems/2.6.0', execute `gem env` for more information
41 > > 9: from
42 > > /usr/lib64/ruby/gems/2.6.0/gems/vagrant-2.2.6/bin/vagrant:88:in `<main>'
43 > > 8: from
44 > > /usr/lib64/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:34:in
45 > > `require'
46 > > 7: from
47 > > /usr/lib64/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:123:in
48 > > `rescue in require'
49 > > 6: from /usr/lib64/ruby/site_ruby/2.6.0/rubygems.rb:217:in
50 > > `try_activate'
51 > > 5: from /usr/lib64/ruby/site_ruby/2.6.0/rubygems.rb:224:in
52 > > `rescue in try_activate'
53 > > 4: from
54 > > /usr/lib64/ruby/site_ruby/2.6.0/rubygems/specification.rb:1417:in
55 > > `activate'
56 > > 3: from
57 > > /usr/lib64/ruby/site_ruby/2.6.0/rubygems/specification.rb:1435:in
58 > > `activate_dependencies'
59 > > 2: from
60 > > /usr/lib64/ruby/site_ruby/2.6.0/rubygems/specification.rb:1435:in `each'
61 > > 1: from
62 > > /usr/lib64/ruby/site_ruby/2.6.0/rubygems/specification.rb:1446:in
63 > > `block in activate_dependencies'
64 > > /usr/lib64/ruby/site_ruby/2.6.0/rubygems/dependency.rb:313:in
65 > > `to_specs': Could not find 'rubyzip' (~> 1.2.2) - did find:
66 > > [rubyzip-2.0.0] (Gem::MissingSpecVersionError)
67 > > Checked in
68 > > 'GEM_PATH=/home/skobkin/.gem/ruby/2.6.0:/usr/lib64/ruby/gems/2.6.0:/usr/lo
69 > > cal/lib64/ruby/gems/2.6.0', execute `gem env` for more information
70 >
71 > I'm calling it's strange because I have rubyzip package in my system (as
72 > said in error message).
73 >
74 > > $ eix rubyzip
75 > > [I] dev-ruby/rubyzip
76 > > Available versions:
77 > > (1) 1.2.2^t (~)1.2.3^t (~)1.2.4^t (~)1.3.0^t
78 > > (2) (~)2.0.0^t
79 > > {test RUBY_TARGETS="ruby24 ruby25 ruby26"}
80 > > Installed versions: 2.0.0(2)^t(01:44:09 PM 11/19/2019)(-test
81 > > RUBY_TARGETS="ruby26 -ruby24 -ruby25")
82 > > Homepage: https://github.com/rubyzip/rubyzip
83 > > Description: A ruby library for reading and writing zip files
84 >
85 > I've decided that it's typical dependency problem and installed
86 >
87 > rubyzip-1.2.2. Then I've got new error:
88 > > $ vagrant
89 > > Traceback (most recent call last):
90 > > <removed>
91 > > /usr/lib64/ruby/site_ruby/2.6.0/rubygems/specification.rb:2298:in
92 > > `raise_if_conflicts': Unable to activate vagrant_cloud-2.0.3, because
93 > > rest-client-2.1.0 conflicts with rest-client (~> 2.0.2)
94 > > (Gem::ConflictError)
95 > > <removed>
96 >
97 > Then I've checked which packages require rest-client and got these:
98 > > $ equery d rest-client
99 > > * These packages depend on rest-client:
100 > > app-emulation/vagrant-2.2.6 (ruby_targets_ruby24 ?
101 > > dev-ruby/rest-client:2[ruby_targets_ruby24])
102 > > (ruby_targets_ruby25 ?
103 > > dev-ruby/rest-client:2[ruby_targets_ruby25])
104 > > (ruby_targets_ruby26 ?
105 > > dev-ruby/rest-client:2[ruby_targets_ruby26])
106 > > dev-ruby/vagrant_cloud-2.0.3 (ruby_targets_ruby24 ?
107 > >
108 > > >=dev-ruby/rest-client-2.0.2[ruby_targets_ruby24])
109 > >
110 > > (ruby_targets_ruby25 ?
111 > >
112 > > >=dev-ruby/rest-client-2.0.2[ruby_targets_ruby25])
113 > >
114 > > (ruby_targets_ruby26 ?
115 > >
116 > > >=dev-ruby/rest-client-2.0.2[ruby_targets_ruby26])
117 >
118 > So I've removed rest-client-2.1.0 and installed 2.0.2. And then:
119 > > $
120 > > vagrant
121 > >
122 > >
123 > > Traceback (most recent call last):
124 > > <removed>
125 > > /usr/lib64/ruby/site_ruby/2.6.0/rubygems/dependency.rb:311:in
126 > > `to_specs': Could not find 'ruby_dep' (>= 1.3.1) among 71 total gem(s)
127 > > (Gem::MissingSpecError)
128 > > Checked in
129 > > 'GEM_PATH=/home/skobkin/.gem/ruby/2.6.0:/usr/lib64/ruby/gems/2.6.0:/usr/lo
130 > > cal/lib64/ruby/gems/2.6.0', execute `gem env` for more information
131 > > <removed>
132 >
133 > So I want to ask if someone at all have working Vagrant installation on
134 > ~amd64 or it's just broken?
135
136 I've had a similar situation last week or so, although not extensive as you. I
137 just needed to reinstall ruby_dep, which had been depcleaned for some reason.
138
139 Cheers,
140
141 Paul