1 |
Hi. |
2 |
|
3 |
I need to use Vagrant but it doesn't work with strange error message: |
4 |
|
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/local/lib64/ruby/gems/2.6.0', |
40 |
> 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/local/lib64/ruby/gems/2.6.0', |
69 |
> 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 |
rubyzip-1.2.2. Then I've got new error: |
87 |
|
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 |
|
99 |
> $ equery d rest-client |
100 |
> * These packages depend on rest-client: |
101 |
> app-emulation/vagrant-2.2.6 (ruby_targets_ruby24 ? |
102 |
> dev-ruby/rest-client:2[ruby_targets_ruby24]) |
103 |
> (ruby_targets_ruby25 ? |
104 |
> dev-ruby/rest-client:2[ruby_targets_ruby25]) |
105 |
> (ruby_targets_ruby26 ? |
106 |
> dev-ruby/rest-client:2[ruby_targets_ruby26]) |
107 |
> dev-ruby/vagrant_cloud-2.0.3 (ruby_targets_ruby24 ? |
108 |
> >=dev-ruby/rest-client-2.0.2[ruby_targets_ruby24]) |
109 |
> (ruby_targets_ruby25 ? |
110 |
> >=dev-ruby/rest-client-2.0.2[ruby_targets_ruby25]) |
111 |
> (ruby_targets_ruby26 ? |
112 |
> >=dev-ruby/rest-client-2.0.2[ruby_targets_ruby26]) |
113 |
|
114 |
So I've removed rest-client-2.1.0 and installed 2.0.2. And then: |
115 |
|
116 |
> $ |
117 |
> vagrant |
118 |
> |
119 |
> Traceback (most recent call last): |
120 |
> <removed> |
121 |
> /usr/lib64/ruby/site_ruby/2.6.0/rubygems/dependency.rb:311:in |
122 |
> `to_specs': Could not find 'ruby_dep' (>= 1.3.1) among 71 total gem(s) |
123 |
> (Gem::MissingSpecError) |
124 |
> Checked in |
125 |
> 'GEM_PATH=/home/skobkin/.gem/ruby/2.6.0:/usr/lib64/ruby/gems/2.6.0:/usr/local/lib64/ruby/gems/2.6.0', |
126 |
> execute `gem env` for more information |
127 |
> <removed> |
128 |
|
129 |
So I want to ask if someone at all have working Vagrant installation on |
130 |
~amd64 or it's just broken? |
131 |
|
132 |
-- |
133 |
Kind regards, |
134 |
Alexey Eschenko |
135 |
https://skobk.in/ |