質問編集履歴
1
新たなエラー
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
Linux環境でrailsの構築をしていたところ下記のエラーが出てきてしまいました。
|
2
2
|
|
3
|
+
```
|
4
|
+
|
3
5
|
```ここに言語を入力
|
4
6
|
|
5
7
|
$ rails s
|
@@ -11,3 +13,457 @@
|
|
11
13
|
いろいろと調べてはみたのですが一向に解決しません。
|
12
14
|
|
13
15
|
どうかよろしくお願いします。
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
versionを書き直し、bundle installを実行した結果発生したエラー
|
20
|
+
|
21
|
+
```ここに言語を入力
|
22
|
+
|
23
|
+
$ bundle install
|
24
|
+
|
25
|
+
Fetching gem metadata from https://rubygems.org/............
|
26
|
+
|
27
|
+
Resolving dependencies...
|
28
|
+
|
29
|
+
Using rake 13.0.3
|
30
|
+
|
31
|
+
Following files may not be writable, so sudo is needed:
|
32
|
+
|
33
|
+
/usr/local/bin
|
34
|
+
|
35
|
+
/var/lib/gems/2.7.0
|
36
|
+
|
37
|
+
/var/lib/gems/2.7.0/build_info
|
38
|
+
|
39
|
+
/var/lib/gems/2.7.0/cache
|
40
|
+
|
41
|
+
/var/lib/gems/2.7.0/doc
|
42
|
+
|
43
|
+
/var/lib/gems/2.7.0/extensions
|
44
|
+
|
45
|
+
/var/lib/gems/2.7.0/gems
|
46
|
+
|
47
|
+
/var/lib/gems/2.7.0/specifications
|
48
|
+
|
49
|
+
Using concurrent-ruby 1.1.9
|
50
|
+
|
51
|
+
Using minitest 5.14.4
|
52
|
+
|
53
|
+
Using websocket-extensions 0.1.5
|
54
|
+
|
55
|
+
Using marcel 1.0.1
|
56
|
+
|
57
|
+
Using mini_mime 1.1.0
|
58
|
+
|
59
|
+
Using erubi 1.10.0
|
60
|
+
|
61
|
+
Using public_suffix 4.0.6
|
62
|
+
|
63
|
+
Using zeitwerk 2.4.2
|
64
|
+
|
65
|
+
Using bundler 2.2.21
|
66
|
+
|
67
|
+
Fetching msgpack 1.4.2
|
68
|
+
|
69
|
+
Fetching bindex 0.8.1
|
70
|
+
|
71
|
+
Using crass 1.0.6
|
72
|
+
|
73
|
+
Using regexp_parser 2.1.1
|
74
|
+
|
75
|
+
Using childprocess 3.0.0
|
76
|
+
|
77
|
+
Fetching nio4r 2.5.7
|
78
|
+
|
79
|
+
Using builder 3.2.4
|
80
|
+
|
81
|
+
Using rb-fsevent 0.11.0
|
82
|
+
|
83
|
+
Using method_source 1.0.0
|
84
|
+
|
85
|
+
Using thor 1.1.0
|
86
|
+
|
87
|
+
Using rubyzip 2.3.0
|
88
|
+
|
89
|
+
Using tilt 2.0.10
|
90
|
+
|
91
|
+
Using semantic_range 3.0.0
|
92
|
+
|
93
|
+
Fetching racc 1.5.2
|
94
|
+
|
95
|
+
Fetching byebug 11.1.3
|
96
|
+
|
97
|
+
Fetching ffi 1.15.3
|
98
|
+
|
99
|
+
Using rack 2.2.3
|
100
|
+
|
101
|
+
Using sqlite3 1.4.2
|
102
|
+
|
103
|
+
Using turbolinks-source 5.2.0
|
104
|
+
|
105
|
+
Using spring 2.1.1
|
106
|
+
|
107
|
+
Using tzinfo 2.0.4
|
108
|
+
|
109
|
+
Using i18n 1.8.10
|
110
|
+
|
111
|
+
Using mail 2.7.1
|
112
|
+
|
113
|
+
Using addressable 2.7.0
|
114
|
+
|
115
|
+
Using selenium-webdriver 3.142.7
|
116
|
+
|
117
|
+
Using rack-test 1.1.0
|
118
|
+
|
119
|
+
Using rack-mini-profiler 2.3.2
|
120
|
+
|
121
|
+
Fetching websocket-driver 0.7.5
|
122
|
+
|
123
|
+
Using rack-proxy 0.7.0
|
124
|
+
|
125
|
+
Using sprockets 4.0.2
|
126
|
+
|
127
|
+
Using turbolinks 5.2.1
|
128
|
+
|
129
|
+
Using activesupport 6.1.4
|
130
|
+
|
131
|
+
Using globalid 0.4.2
|
132
|
+
|
133
|
+
Using activemodel 6.1.4
|
134
|
+
|
135
|
+
Using jbuilder 2.11.2
|
136
|
+
|
137
|
+
Using activejob 6.1.4
|
138
|
+
|
139
|
+
Using activerecord 6.1.4
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
Your user account isn't allowed to install to the system RubyGems.
|
146
|
+
|
147
|
+
You can cancel this installation and run:
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
bundle config set --local path 'vendor/bundle'
|
152
|
+
|
153
|
+
bundle install
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
to install the gems into ./vendor/bundle/, or you can enter your password
|
158
|
+
|
159
|
+
and install the bundled gems to RubyGems using sudo.
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
Password:
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
Your user account isn't allowed to install to the system RubyGems.
|
170
|
+
|
171
|
+
You can cancel this installation and run:
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
bundle config set --local path 'vendor/bundle'
|
176
|
+
|
177
|
+
bundle install
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
to install the gems into ./vendor/bundle/, or you can enter your password
|
182
|
+
|
183
|
+
and install the bundled gems to RubyGems using sudo.
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
Password:
|
188
|
+
|
189
|
+
Installing bindex 0.8.1 with native extensions
|
190
|
+
|
191
|
+
Installing websocket-driver 0.7.5 with native extensions
|
192
|
+
|
193
|
+
Installing byebug 11.1.3 with native extensions
|
194
|
+
|
195
|
+
Installing nio4r 2.5.7 with native extensions
|
196
|
+
|
197
|
+
Installing msgpack 1.4.2 with native extensions
|
198
|
+
|
199
|
+
Installing racc 1.5.2 with native extensions
|
200
|
+
|
201
|
+
Installing ffi 1.15.3 with native extensions
|
202
|
+
|
203
|
+
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
current directory: /tmp/bundler20210705-1059-gzagzeracc-1.5.2/gems/racc-1.5.2/ext/racc/cparse
|
208
|
+
|
209
|
+
/usr/bin/ruby2.7 -I /usr/lib/ruby/2.7.0 -r ./siteconf20210705-1059-1gdcw6r.rb extconf.rb
|
210
|
+
|
211
|
+
mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
You might have to install separate package for the ruby development
|
216
|
+
|
217
|
+
environment, ruby-dev or ruby-devel for example.
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
extconf failed, exit code 1
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
Gem files will remain installed in /tmp/bundler20210705-1059-gzagzeracc-1.5.2/gems/racc-1.5.2 for inspection.
|
226
|
+
|
227
|
+
Results logged to /tmp/bundler20210705-1059-gzagzeracc-1.5.2/extensions/x86_64-linux/2.7.0/racc-1.5.2/gem_make.out
|
228
|
+
|
229
|
+
|
230
|
+
|
231
|
+
An error occurred while installing racc (1.5.2), and Bundler cannot continue.
|
232
|
+
|
233
|
+
Make sure that `gem install racc -v '1.5.2' --source 'https://rubygems.org/'` succeeds before bundling.
|
234
|
+
|
235
|
+
|
236
|
+
|
237
|
+
In Gemfile:
|
238
|
+
|
239
|
+
rails was resolved to 6.1.4, which depends on
|
240
|
+
|
241
|
+
actioncable was resolved to 6.1.4, which depends on
|
242
|
+
|
243
|
+
actionpack was resolved to 6.1.4, which depends on
|
244
|
+
|
245
|
+
actionview was resolved to 6.1.4, which depends on
|
246
|
+
|
247
|
+
rails-dom-testing was resolved to 2.0.3, which depends on
|
248
|
+
|
249
|
+
nokogiri was resolved to 1.11.7, which depends on
|
250
|
+
|
251
|
+
racc
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
|
256
|
+
|
257
|
+
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
|
258
|
+
|
259
|
+
|
260
|
+
|
261
|
+
current directory: /tmp/bundler20210705-1059-gkp5h8nio4r-2.5.7/gems/nio4r-2.5.7/ext/nio4r
|
262
|
+
|
263
|
+
/usr/bin/ruby2.7 -I /usr/lib/ruby/2.7.0 -r ./siteconf20210705-1059-5l87mg.rb extconf.rb
|
264
|
+
|
265
|
+
mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h
|
266
|
+
|
267
|
+
|
268
|
+
|
269
|
+
You might have to install separate package for the ruby development
|
270
|
+
|
271
|
+
environment, ruby-dev or ruby-devel for example.
|
272
|
+
|
273
|
+
|
274
|
+
|
275
|
+
extconf failed, exit code 1
|
276
|
+
|
277
|
+
|
278
|
+
|
279
|
+
Gem files will remain installed in /tmp/bundler20210705-1059-gkp5h8nio4r-2.5.7/gems/nio4r-2.5.7 for inspection.
|
280
|
+
|
281
|
+
Results logged to /tmp/bundler20210705-1059-gkp5h8nio4r-2.5.7/extensions/x86_64-linux/2.7.0/nio4r-2.5.7/gem_make.out
|
282
|
+
|
283
|
+
|
284
|
+
|
285
|
+
An error occurred while installing nio4r (2.5.7), and Bundler cannot continue.
|
286
|
+
|
287
|
+
Make sure that `gem install nio4r -v '2.5.7' --source 'https://rubygems.org/'` succeeds before bundling.
|
288
|
+
|
289
|
+
|
290
|
+
|
291
|
+
In Gemfile:
|
292
|
+
|
293
|
+
rails was resolved to 6.1.4, which depends on
|
294
|
+
|
295
|
+
actioncable was resolved to 6.1.4, which depends on
|
296
|
+
|
297
|
+
nio4r
|
298
|
+
|
299
|
+
|
300
|
+
|
301
|
+
|
302
|
+
|
303
|
+
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
|
304
|
+
|
305
|
+
|
306
|
+
|
307
|
+
current directory:
|
308
|
+
|
309
|
+
/tmp/bundler20210705-1059-x387udwebsocket-driver-0.7.5/gems/websocket-driver-0.7.5/ext/websocket-driver
|
310
|
+
|
311
|
+
/usr/bin/ruby2.7 -I /usr/lib/ruby/2.7.0 -r ./siteconf20210705-1059-u3wati.rb extconf.rb
|
312
|
+
|
313
|
+
mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h
|
314
|
+
|
315
|
+
|
316
|
+
|
317
|
+
You might have to install separate package for the ruby development
|
318
|
+
|
319
|
+
environment, ruby-dev or ruby-devel for example.
|
320
|
+
|
321
|
+
|
322
|
+
|
323
|
+
extconf failed, exit code 1
|
324
|
+
|
325
|
+
|
326
|
+
|
327
|
+
Gem files will remain installed in /tmp/bundler20210705-1059-x387udwebsocket-driver-0.7.5/gems/websocket-driver-0.7.5
|
328
|
+
|
329
|
+
for inspection.
|
330
|
+
|
331
|
+
Results logged to
|
332
|
+
|
333
|
+
/tmp/bundler20210705-1059-x387udwebsocket-driver-0.7.5/extensions/x86_64-linux/2.7.0/websocket-driver-0.7.5/gem_make.out
|
334
|
+
|
335
|
+
An error occurred while installing websocket-driver (0.7.5), and Bundler cannot continue.
|
336
|
+
|
337
|
+
Make sure that `gem install websocket-driver -v '0.7.5' --source 'https://rubygems.org/'` succeeds before bundling.
|
338
|
+
|
339
|
+
|
340
|
+
|
341
|
+
In Gemfile:
|
342
|
+
|
343
|
+
rails was resolved to 6.1.4, which depends on
|
344
|
+
|
345
|
+
actioncable was resolved to 6.1.4, which depends on
|
346
|
+
|
347
|
+
websocket-driver
|
348
|
+
|
349
|
+
|
350
|
+
|
351
|
+
|
352
|
+
|
353
|
+
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
|
354
|
+
|
355
|
+
|
356
|
+
|
357
|
+
current directory: /tmp/bundler20210705-1059-qzsws5bindex-0.8.1/gems/bindex-0.8.1/ext/skiptrace
|
358
|
+
|
359
|
+
/usr/bin/ruby2.7 -I /usr/lib/ruby/2.7.0 -r ./siteconf20210705-1059-1a7r67v.rb extconf.rb
|
360
|
+
|
361
|
+
mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h
|
362
|
+
|
363
|
+
|
364
|
+
|
365
|
+
You might have to install separate package for the ruby development
|
366
|
+
|
367
|
+
environment, ruby-dev or ruby-devel for example.
|
368
|
+
|
369
|
+
|
370
|
+
|
371
|
+
extconf failed, exit code 1
|
372
|
+
|
373
|
+
|
374
|
+
|
375
|
+
Gem files will remain installed in /tmp/bundler20210705-1059-qzsws5bindex-0.8.1/gems/bindex-0.8.1 for inspection.
|
376
|
+
|
377
|
+
Results logged to /tmp/bundler20210705-1059-qzsws5bindex-0.8.1/extensions/x86_64-linux/2.7.0/bindex-0.8.1/gem_make.out
|
378
|
+
|
379
|
+
|
380
|
+
|
381
|
+
An error occurred while installing bindex (0.8.1), and Bundler cannot continue.
|
382
|
+
|
383
|
+
Make sure that `gem install bindex -v '0.8.1' --source 'https://rubygems.org/'` succeeds before bundling.
|
384
|
+
|
385
|
+
|
386
|
+
|
387
|
+
In Gemfile:
|
388
|
+
|
389
|
+
web-console was resolved to 4.1.0, which depends on
|
390
|
+
|
391
|
+
bindex
|
392
|
+
|
393
|
+
|
394
|
+
|
395
|
+
|
396
|
+
|
397
|
+
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
|
398
|
+
|
399
|
+
|
400
|
+
|
401
|
+
current directory: /tmp/bundler20210705-1059-otqpqimsgpack-1.4.2/gems/msgpack-1.4.2/ext/msgpack
|
402
|
+
|
403
|
+
/usr/bin/ruby2.7 -I /usr/lib/ruby/2.7.0 -r ./siteconf20210705-1059-17xxby8.rb extconf.rb
|
404
|
+
|
405
|
+
mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h
|
406
|
+
|
407
|
+
|
408
|
+
|
409
|
+
You might have to install separate package for the ruby development
|
410
|
+
|
411
|
+
environment, ruby-dev or ruby-devel for example.
|
412
|
+
|
413
|
+
|
414
|
+
|
415
|
+
extconf failed, exit code 1
|
416
|
+
|
417
|
+
|
418
|
+
|
419
|
+
Gem files will remain installed in /tmp/bundler20210705-1059-otqpqimsgpack-1.4.2/gems/msgpack-1.4.2 for inspection.
|
420
|
+
|
421
|
+
Results logged to /tmp/bundler20210705-1059-otqpqimsgpack-1.4.2/extensions/x86_64-linux/2.7.0/msgpack-1.4.2/gem_make.out
|
422
|
+
|
423
|
+
An error occurred while installing msgpack (1.4.2), and Bundler cannot continue.
|
424
|
+
|
425
|
+
Make sure that `gem install msgpack -v '1.4.2' --source 'https://rubygems.org/'` succeeds before bundling.
|
426
|
+
|
427
|
+
|
428
|
+
|
429
|
+
In Gemfile:
|
430
|
+
|
431
|
+
bootsnap was resolved to 1.7.5, which depends on
|
432
|
+
|
433
|
+
msgpack
|
434
|
+
|
435
|
+
|
436
|
+
|
437
|
+
|
438
|
+
|
439
|
+
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
|
440
|
+
|
441
|
+
|
442
|
+
|
443
|
+
current directory: /tmp/bundler20210705-1059-tdyhiqbyebug-11.1.3/gems/byebug-11.1.3/ext/byebug
|
444
|
+
|
445
|
+
/usr/bin/ruby2.7 -I /usr/lib/ruby/2.7.0 -r ./siteconf20210705-1059-m03g8z.rb extconf.rb
|
446
|
+
|
447
|
+
mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h
|
448
|
+
|
449
|
+
|
450
|
+
|
451
|
+
You might have to install separate package for the ruby development
|
452
|
+
|
453
|
+
environment, ruby-dev or ruby-devel for example.
|
454
|
+
|
455
|
+
|
456
|
+
|
457
|
+
extconf failed, exit code 1
|
458
|
+
|
459
|
+
|
460
|
+
|
461
|
+
Gem files will remain installed in /tmp/bundler20210705-1059-tdyhiqbyebug-11.1.3/gems/byebug-11.1.3 for inspection.
|
462
|
+
|
463
|
+
Results logged to /tmp/bundler20210705-1059-tdyhiqbyebug-11.1.3/extensions/x86_64-linux/2.7.0/byebug-11.1.3/gem_make.out
|
464
|
+
|
465
|
+
An error occurred while installing byebug (11.1.3), and Bundler cannot continue.
|
466
|
+
|
467
|
+
Make sure that `gem install byebug -v '11.1.3' --source 'https://rubygems.org/'` succeeds before bundling.
|
468
|
+
|
469
|
+
```
|