質問編集履歴

2

エラー分の表示がおかしくなっていたので修正しました。

2021/06/08 00:01

投稿

cheen
cheen

スコア1

test CHANGED
File without changes
test CHANGED
@@ -94,336 +94,326 @@
94
94
 
95
95
 
96
96
 
97
+ ``
98
+
99
+ Errno::EACCES: Permission denied @ dir_s_mkdir - /Users/name/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/extensions/x86_64-darwin-20/2.6.0/bindex-0.8.1
100
+
101
+ /Users/name/.rbenv/versions/2.6.5/lib/ruby/2.6.0/fileutils.rb:239:in `mkdir'
102
+
103
+ /Users/name/.rbenv/versions/2.6.5/lib/ruby/2.6.0/fileutils.rb:239:in `fu_mkdir'
104
+
105
+ /Users/name/.rbenv/versions/2.6.5/lib/ruby/2.6.0/fileutils.rb:217:in `block (2 levels) in mkdir_p'
106
+
107
+ /Users/name/.rbenv/versions/2.6.5/lib/ruby/2.6.0/fileutils.rb:215:in `reverse_each'
108
+
109
+ /Users/name/.rbenv/versions/2.6.5/lib/ruby/2.6.0/fileutils.rb:215:in `block in mkdir_p'
110
+
111
+ /Users/name/.rbenv/versions/2.6.5/lib/ruby/2.6.0/fileutils.rb:200:in `each'
112
+
113
+ /Users/name/.rbenv/versions/2.6.5/lib/ruby/2.6.0/fileutils.rb:200:in `mkdir_p'
114
+
115
+ /Users/name/.rbenv/versions/2.6.5/lib/ruby/2.6.0/rubygems/ext/builder.rb:241:in `write_gem_make_out'
116
+
117
+ /Users/name/.rbenv/versions/2.6.5/lib/ruby/2.6.0/rubygems/ext/builder.rb:142:in `build_error'
118
+
119
+ /Users/name/.rbenv/versions/2.6.5/lib/ruby/2.6.0/rubygems/ext/builder.rb:201:in `rescue in build_extension'
120
+
121
+ /Users/name/.rbenv/versions/2.6.5/lib/ruby/2.6.0/rubygems/ext/builder.rb:178:in `build_extension'
122
+
123
+ /Users/name/.rbenv/versions/2.6.5/lib/ruby/2.6.0/rubygems/ext/builder.rb:229:in `block in build_extensions'
124
+
125
+ /Users/name/.rbenv/versions/2.6.5/lib/ruby/2.6.0/rubygems/ext/builder.rb:226:in `each'
126
+
127
+ /Users/name/.rbenv/versions/2.6.5/lib/ruby/2.6.0/rubygems/ext/builder.rb:226:in `build_extensions'
128
+
129
+ /Users/name/.rbenv/versions/2.6.5/lib/ruby/2.6.0/rubygems/installer.rb:830:in `build_extensions'
130
+
131
+ /Users/name/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/bundler-2.2.19/lib/bundler/rubygems_gem_installer.rb:64:in `build_extensions'
132
+
133
+ /Users/name/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/bundler-2.2.19/lib/bundler/rubygems_gem_installer.rb:26:in `install'
134
+
135
+ /Users/name/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/bundler-2.2.19/lib/bundler/source/rubygems.rb:176:in `install'
136
+
137
+ /Users/name/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/bundler-2.2.19/lib/bundler/installer/gem_installer.rb:67:in `install'
138
+
139
+ /Users/name/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/bundler-2.2.19/lib/bundler/installer/gem_installer.rb:18:in `install_from_spec'
140
+
141
+ /Users/name/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/bundler-2.2.19/lib/bundler/installer/parallel_installer.rb:186:in `do_install'
142
+
143
+ /Users/name/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/bundler-2.2.19/lib/bundler/installer/parallel_installer.rb:177:in `block in worker_pool'
144
+
145
+ /Users/name/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/bundler-2.2.19/lib/bundler/worker.rb:62:in `apply_func'
146
+
147
+ /Users/name/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/bundler-2.2.19/lib/bundler/worker.rb:57:in `block in process_queue'
148
+
149
+ /Users/name/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/bundler-2.2.19/lib/bundler/worker.rb:54:in `loop'
150
+
151
+ /Users/name/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/bundler-2.2.19/lib/bundler/worker.rb:54:in `process_queue'
152
+
153
+ /Users/name/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/bundler-2.2.19/lib/bundler/worker.rb:88:in `block (2 levels) in create_threads'
154
+
155
+ ``
156
+
157
+
158
+
159
+ ## Environment
160
+
161
+
162
+
163
+ ``
164
+
165
+ Bundler 2.2.19
166
+
167
+ Platforms ruby, x86_64-darwin-20
168
+
169
+ Ruby 2.6.5p114 (2019-10-01 revision 67812) [x86_64-darwin20]
170
+
171
+ Full Path /Users/name/.rbenv/versions/2.6.5/bin/ruby
172
+
173
+ Config Dir /Users/name/.rbenv/versions/2.6.5/etc
174
+
175
+ RubyGems 3.0.3
176
+
177
+ Gem Home /Users/name/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0
178
+
179
+ Gem Path /Users/name/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0:/Users/name/.gem/ruby/2.6.0
180
+
181
+ User Home /Users/name
182
+
183
+ User Path /Users/name/.gem/ruby/2.6.0
184
+
185
+ Bin Dir /Users/name/.rbenv/versions/2.6.5/bin
186
+
187
+ OpenSSL
188
+
189
+ Compiled OpenSSL 1.1.1i 8 Dec 2020
190
+
191
+ Loaded OpenSSL 1.1.1i 8 Dec 2020
192
+
193
+ Cert File /usr/local/etc/openssl@1.1/cert.pem
194
+
195
+ Cert Dir /usr/local/etc/openssl@1.1/certs
196
+
197
+ Tools
198
+
199
+ Git 2.24.3 (Apple Git-128)
200
+
201
+ RVM not installed
202
+
203
+ rbenv rbenv 1.1.2
204
+
205
+ chruby not installed
206
+
207
+ ``
208
+
209
+
210
+
211
+ ## Bundler Build Metadata
212
+
213
+
214
+
215
+ ``
216
+
217
+ Built At 2021-05-31
218
+
219
+ Git SHA 43f80b12c0
220
+
221
+ Released Version true
222
+
223
+ ``
224
+
225
+
226
+
227
+ ## Bundler settings
228
+
229
+
230
+
231
+ ``
232
+
233
+ ignore_messages
234
+
235
+ Set via BUNDLE_IGNORE_MESSAGES: true
236
+
237
+ ``
238
+
239
+
240
+
241
+ ## Gemfile
242
+
243
+
244
+
245
+ ### Gemfile
246
+
247
+
248
+
249
+ ``ruby
250
+
251
+ source 'https://rubygems.org'
252
+
253
+ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
254
+
255
+
256
+
257
+ ruby '2.6.5'
258
+
259
+
260
+
261
+ # Bundle edge Rails instead: gem 'rails', github: 'rails/rails', branch: 'main'
262
+
263
+ gem 'rails', '~> 6.1.3', '>= 6.1.3.2'
264
+
265
+ # Use sqlite3 as the database for Active Record
266
+
267
+ gem 'sqlite3', '~> 1.4'
268
+
269
+ # Use Puma as the app server
270
+
271
+ gem 'puma', '~> 5.0'
272
+
273
+ # Use SCSS for stylesheets
274
+
275
+ gem 'sass-rails', '>= 6'
276
+
277
+ # Transpile app-like JavaScript. Read more: https://github.com/rails/webpacker
278
+
279
+ gem 'webpacker', '~> 5.0'
280
+
281
+ # Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
282
+
283
+ gem 'turbolinks', '~> 5'
284
+
285
+ # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
286
+
287
+ gem 'jbuilder', '~> 2.7'
288
+
289
+ # Use Redis adapter to run Action Cable in production
290
+
291
+ # gem 'redis', '~> 4.0'
292
+
293
+ # Use Active Model has_secure_password
294
+
295
+ # gem 'bcrypt', '~> 3.1.7'
296
+
297
+
298
+
299
+ # Use Active Storage variant
300
+
301
+ # gem 'image_processing', '~> 1.2'
302
+
303
+
304
+
305
+ # Reduces boot times through caching; required in config/boot.rb
306
+
307
+ gem 'bootsnap', '>= 1.4.4', require: false
308
+
309
+
310
+
311
+ group :development, :test do
312
+
313
+ # Call 'byebug' anywhere in the code to stop execution and get a debugger console
314
+
315
+ gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
316
+
317
+ end
318
+
319
+
320
+
321
+ group :development do
322
+
323
+ # Access an interactive console on exception pages or by calling 'console' anywhere in the code.
324
+
325
+ gem 'web-console', '>= 4.1.0'
326
+
327
+ # Display performance information such as SQL time and flame graphs for each request in your browser.
328
+
329
+ # Can be configured to work on production as well see: https://github.com/MiniProfiler/rack-mini-profiler/blob/master/README.md
330
+
331
+ gem 'rack-mini-profiler', '~> 2.0'
332
+
333
+ gem 'listen', '~> 3.3'
334
+
335
+ # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
336
+
337
+ gem 'spring'
338
+
339
+ end
340
+
341
+
342
+
343
+ group :test do
344
+
345
+ # Adds support for Capybara system testing and selenium driver
346
+
347
+ gem 'capybara', '>= 3.26'
348
+
349
+ gem 'selenium-webdriver'
350
+
351
+ # Easy installation and use of web drivers to run system tests with browsers
352
+
353
+ gem 'webdrivers'
354
+
355
+ end
356
+
357
+
358
+
359
+ # Windows does not include zoneinfo files, so bundle the tzinfo-data gem
360
+
361
+ gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
362
+
363
+ ``
364
+
365
+
366
+
367
+ ### Gemfile.lock
368
+
369
+
370
+
371
+ ``
372
+
373
+ <No /Users/name/rails_tutorial/sample_app/Gemfile.lock found>
374
+
375
+ ``
376
+
377
+
378
+
379
+ --- TEMPLATE END ----------------------------------------------------------------
380
+
381
+
382
+
383
+ Unfortunately, an unexpected error occurred, and Bundler cannot continue.
384
+
385
+
386
+
387
+ First, try this link to see if there are any existing issue reports for this error:
388
+
389
+ https://github.com/rubygems/rubygems/search?q=Permission+denied+%40+dir_s_mkdir+-+%2FUsers%2Fname%2F.rbenv%2Fversions%2F2.6.5%2Flib%2Fruby%2Fgems%2F2.6.0%2Fextensions%2Fx86_64-darwin-20%2F2.6.0%2Fbindex-0.8.1&type=Issues
390
+
391
+
392
+
393
+ If there aren't any reports for this error yet, please create copy and paste the report template above into a new issue. Don't forget to anonymize any private data! The new issue form is located at:
394
+
395
+ https://github.com/rubygems/rubygems/issues/new?labels=Bundler&template=bundler-related-issue.md
396
+
397
+ run bundle binstubs bundler
398
+
399
+ Could not find gem 'puma (~> 5.0)' in rubygems repository https://rubygems.org/ or installed locally.
400
+
401
+ The source does not contain any versions of 'puma'
402
+
403
+ rails webpacker:install
404
+
405
+ Could not find gem 'puma (~> 5.0)' in rubygems repository https://rubygems.org/ or installed locally.
406
+
407
+ The source does not contain any versions of 'puma'
408
+
409
+ Run `bundle install` to install missing gems.
410
+
97
411
  ```
98
412
 
99
- Errno::EACCES: Permission denied @ dir_s_mkdir - /Users/name/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/extensions/x86_64-darwin-20/2.6.0/bindex-0.8.1
100
-
101
- /Users/name/.rbenv/versions/2.6.5/lib/ruby/2.6.0/fileutils.rb:239:in `mkdir'
102
-
103
- /Users/name/.rbenv/versions/2.6.5/lib/ruby/2.6.0/fileutils.rb:239:in `fu_mkdir'
104
-
105
- /Users/name/.rbenv/versions/2.6.5/lib/ruby/2.6.0/fileutils.rb:217:in `block (2 levels) in mkdir_p'
106
-
107
- /Users/name/.rbenv/versions/2.6.5/lib/ruby/2.6.0/fileutils.rb:215:in `reverse_each'
108
-
109
- /Users/name/.rbenv/versions/2.6.5/lib/ruby/2.6.0/fileutils.rb:215:in `block in mkdir_p'
110
-
111
- /Users/name/.rbenv/versions/2.6.5/lib/ruby/2.6.0/fileutils.rb:200:in `each'
112
-
113
- /Users/name/.rbenv/versions/2.6.5/lib/ruby/2.6.0/fileutils.rb:200:in `mkdir_p'
114
-
115
- /Users/name/.rbenv/versions/2.6.5/lib/ruby/2.6.0/rubygems/ext/builder.rb:241:in `write_gem_make_out'
116
-
117
- /Users/name/.rbenv/versions/2.6.5/lib/ruby/2.6.0/rubygems/ext/builder.rb:142:in `build_error'
118
-
119
- /Users/name/.rbenv/versions/2.6.5/lib/ruby/2.6.0/rubygems/ext/builder.rb:201:in `rescue in build_extension'
120
-
121
- /Users/name/.rbenv/versions/2.6.5/lib/ruby/2.6.0/rubygems/ext/builder.rb:178:in `build_extension'
122
-
123
- /Users/name/.rbenv/versions/2.6.5/lib/ruby/2.6.0/rubygems/ext/builder.rb:229:in `block in build_extensions'
124
-
125
- /Users/name/.rbenv/versions/2.6.5/lib/ruby/2.6.0/rubygems/ext/builder.rb:226:in `each'
126
-
127
- /Users/name/.rbenv/versions/2.6.5/lib/ruby/2.6.0/rubygems/ext/builder.rb:226:in `build_extensions'
128
-
129
- /Users/name/.rbenv/versions/2.6.5/lib/ruby/2.6.0/rubygems/installer.rb:830:in `build_extensions'
130
-
131
- /Users/name/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/bundler-2.2.19/lib/bundler/rubygems_gem_installer.rb:64:in `build_extensions'
132
-
133
- /Users/name/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/bundler-2.2.19/lib/bundler/rubygems_gem_installer.rb:26:in `install'
134
-
135
- /Users/name/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/bundler-2.2.19/lib/bundler/source/rubygems.rb:176:in `install'
136
-
137
- /Users/name/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/bundler-2.2.19/lib/bundler/installer/gem_installer.rb:67:in `install'
138
-
139
- /Users/name/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/bundler-2.2.19/lib/bundler/installer/gem_installer.rb:18:in `install_from_spec'
140
-
141
- /Users/name/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/bundler-2.2.19/lib/bundler/installer/parallel_installer.rb:186:in `do_install'
142
-
143
- /Users/name/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/bundler-2.2.19/lib/bundler/installer/parallel_installer.rb:177:in `block in worker_pool'
144
-
145
- /Users/name/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/bundler-2.2.19/lib/bundler/worker.rb:62:in `apply_func'
146
-
147
- /Users/name/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/bundler-2.2.19/lib/bundler/worker.rb:57:in `block in process_queue'
148
-
149
- /Users/name/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/bundler-2.2.19/lib/bundler/worker.rb:54:in `loop'
150
-
151
- /Users/name/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/bundler-2.2.19/lib/bundler/worker.rb:54:in `process_queue'
152
-
153
- /Users/name/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/bundler-2.2.19/lib/bundler/worker.rb:88:in `block (2 levels) in create_threads'
154
-
155
- ```
156
-
157
-
158
-
159
- ## Environment
160
-
161
-
162
-
163
- ```
164
-
165
- Bundler 2.2.19
166
-
167
- Platforms ruby, x86_64-darwin-20
168
-
169
- Ruby 2.6.5p114 (2019-10-01 revision 67812) [x86_64-darwin20]
170
-
171
- Full Path /Users/name/.rbenv/versions/2.6.5/bin/ruby
172
-
173
- Config Dir /Users/name/.rbenv/versions/2.6.5/etc
174
-
175
- RubyGems 3.0.3
176
-
177
- Gem Home /Users/name/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0
178
-
179
- Gem Path /Users/name/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0:/Users/name/.gem/ruby/2.6.0
180
-
181
- User Home /Users/name
182
-
183
- User Path /Users/name/.gem/ruby/2.6.0
184
-
185
- Bin Dir /Users/name/.rbenv/versions/2.6.5/bin
186
-
187
- OpenSSL
188
-
189
- Compiled OpenSSL 1.1.1i 8 Dec 2020
190
-
191
- Loaded OpenSSL 1.1.1i 8 Dec 2020
192
-
193
- Cert File /usr/local/etc/openssl@1.1/cert.pem
194
-
195
- Cert Dir /usr/local/etc/openssl@1.1/certs
196
-
197
- Tools
198
-
199
- Git 2.24.3 (Apple Git-128)
200
-
201
- RVM not installed
202
-
203
- rbenv rbenv 1.1.2
204
-
205
- chruby not installed
206
-
207
- ```
208
-
209
-
210
-
211
- ## Bundler Build Metadata
212
-
213
-
214
-
215
- ```
216
-
217
- Built At 2021-05-31
218
-
219
- Git SHA 43f80b12c0
220
-
221
- Released Version true
222
-
223
- ```
224
-
225
-
226
-
227
- ## Bundler settings
228
-
229
-
230
-
231
- ```
232
-
233
- ignore_messages
234
-
235
- Set via BUNDLE_IGNORE_MESSAGES: true
236
-
237
- ```
238
-
239
-
240
-
241
- ## Gemfile
242
-
243
-
244
-
245
- ### Gemfile
246
-
247
-
248
-
249
- ```ruby
250
-
251
- source 'https://rubygems.org'
252
-
253
- git_source(:github) { |repo| "https://github.com/#{repo}.git" }
254
-
255
-
256
-
257
- ruby '2.6.5'
258
-
259
-
260
-
261
- # Bundle edge Rails instead: gem 'rails', github: 'rails/rails', branch: 'main'
262
-
263
- gem 'rails', '~> 6.1.3', '>= 6.1.3.2'
264
-
265
- # Use sqlite3 as the database for Active Record
266
-
267
- gem 'sqlite3', '~> 1.4'
268
-
269
- # Use Puma as the app server
270
-
271
- gem 'puma', '~> 5.0'
272
-
273
- # Use SCSS for stylesheets
274
-
275
- gem 'sass-rails', '>= 6'
276
-
277
- # Transpile app-like JavaScript. Read more: https://github.com/rails/webpacker
278
-
279
- gem 'webpacker', '~> 5.0'
280
-
281
- # Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
282
-
283
- gem 'turbolinks', '~> 5'
284
-
285
- # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
286
-
287
- gem 'jbuilder', '~> 2.7'
288
-
289
- # Use Redis adapter to run Action Cable in production
290
-
291
- # gem 'redis', '~> 4.0'
292
-
293
- # Use Active Model has_secure_password
294
-
295
- # gem 'bcrypt', '~> 3.1.7'
296
-
297
-
298
-
299
- # Use Active Storage variant
300
-
301
- # gem 'image_processing', '~> 1.2'
302
-
303
-
304
-
305
- # Reduces boot times through caching; required in config/boot.rb
306
-
307
- gem 'bootsnap', '>= 1.4.4', require: false
308
-
309
-
310
-
311
- group :development, :test do
312
-
313
- # Call 'byebug' anywhere in the code to stop execution and get a debugger console
314
-
315
- gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
316
-
317
- end
318
-
319
-
320
-
321
- group :development do
322
-
323
- # Access an interactive console on exception pages or by calling 'console' anywhere in the code.
324
-
325
- gem 'web-console', '>= 4.1.0'
326
-
327
- # Display performance information such as SQL time and flame graphs for each request in your browser.
328
-
329
- # Can be configured to work on production as well see: https://github.com/MiniProfiler/rack-mini-profiler/blob/master/README.md
330
-
331
- gem 'rack-mini-profiler', '~> 2.0'
332
-
333
- gem 'listen', '~> 3.3'
334
-
335
- # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
336
-
337
- gem 'spring'
338
-
339
- end
340
-
341
-
342
-
343
- group :test do
344
-
345
- # Adds support for Capybara system testing and selenium driver
346
-
347
- gem 'capybara', '>= 3.26'
348
-
349
- gem 'selenium-webdriver'
350
-
351
- # Easy installation and use of web drivers to run system tests with browsers
352
-
353
- gem 'webdrivers'
354
-
355
- end
356
-
357
-
358
-
359
- # Windows does not include zoneinfo files, so bundle the tzinfo-data gem
360
-
361
- gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
362
-
363
- ```
364
-
365
-
366
-
367
- ### Gemfile.lock
368
-
369
-
370
-
371
- ```
372
-
373
- <No /Users/name/rails_tutorial/sample_app/Gemfile.lock found>
374
-
375
- ```
376
-
377
-
378
-
379
- --- TEMPLATE END ----------------------------------------------------------------
380
-
381
-
382
-
383
- Unfortunately, an unexpected error occurred, and Bundler cannot continue.
384
-
385
-
386
-
387
- First, try this link to see if there are any existing issue reports for this error:
388
-
389
- https://github.com/rubygems/rubygems/search?q=Permission+denied+%40+dir_s_mkdir+-+%2FUsers%2Fname%2F.rbenv%2Fversions%2F2.6.5%2Flib%2Fruby%2Fgems%2F2.6.0%2Fextensions%2Fx86_64-darwin-20%2F2.6.0%2Fbindex-0.8.1&type=Issues
390
-
391
-
392
-
393
- If there aren't any reports for this error yet, please create copy and paste the report template above into a new issue. Don't forget to anonymize any private data! The new issue form is located at:
394
-
395
- https://github.com/rubygems/rubygems/issues/new?labels=Bundler&template=bundler-related-issue.md
396
-
397
- run bundle binstubs bundler
398
-
399
- Could not find gem 'puma (~> 5.0)' in rubygems repository https://rubygems.org/ or installed locally.
400
-
401
- The source does not contain any versions of 'puma'
402
-
403
- rails webpacker:install
404
-
405
- Could not find gem 'puma (~> 5.0)' in rubygems repository https://rubygems.org/ or installed locally.
406
-
407
- The source does not contain any versions of 'puma'
408
-
409
- Run `bundle install` to install missing gems.
410
-
411
413
  となります。
412
414
 
413
415
 
414
416
 
415
- ### 該当のソースコード
416
-
417
-
418
-
419
- ```ここに言語名を入力
420
-
421
-
422
-
423
- ```
424
-
425
-
426
-
427
417
  ### 試したこと
428
418
 
429
419
 

1

実行したディレクトリの場所とエラー分を全文にしました。よろしくお願いします。

2021/06/08 00:01

投稿

cheen
cheen

スコア1

test CHANGED
File without changes
test CHANGED
@@ -10,10 +10,372 @@
10
10
 
11
11
  ### 発生している問題・エラーメッセージ
12
12
 
13
+ /Users/name/rails_tutorial のディレクトリで
14
+
13
15
  rails new sample_app と打つと
14
16
 
15
17
  ```
16
18
 
19
+ (base) cheen:rails new sample_app
20
+
21
+ create
22
+
23
+ create README.md
24
+
25
+ …(文字数の関係で割愛)
26
+
27
+ Fetching gem metadata from https://rubygems.org/............
28
+
29
+ Resolving dependencies....
30
+
31
+ Using rake 13.0.3
32
+
33
+ …(文字数の関係で割愛)
34
+
35
+
36
+
37
+ --- ERROR REPORT TEMPLATE -------------------------------------------------------
38
+
39
+ # Error Report
40
+
41
+
42
+
43
+ ## Questions
44
+
45
+
46
+
47
+ Please fill out answers to these questions, it'll help us figure out
48
+
49
+ why things are going wrong.
50
+
51
+
52
+
53
+ - **What did you do?**
54
+
55
+
56
+
57
+ I ran the command `/Users/name/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/bundler-2.2.19/exe/bundle install`
58
+
59
+
60
+
61
+ - **What did you expect to happen?**
62
+
63
+
64
+
65
+ I expected Bundler to...
66
+
67
+
68
+
69
+ - **What happened instead?**
70
+
71
+
72
+
73
+ Instead, what happened was...
74
+
75
+
76
+
77
+ - **Have you tried any solutions posted on similar issues in our issue tracker, stack overflow, or google?**
78
+
79
+
80
+
81
+ I tried...
82
+
83
+
84
+
85
+ - **Have you read our issues document, https://github.com/rubygems/rubygems/blob/master/bundler/doc/contributing/ISSUES.md?**
86
+
87
+
88
+
89
+ ...
90
+
91
+
92
+
93
+ ## Backtrace
94
+
95
+
96
+
97
+ ```
98
+
99
+ Errno::EACCES: Permission denied @ dir_s_mkdir - /Users/name/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/extensions/x86_64-darwin-20/2.6.0/bindex-0.8.1
100
+
101
+ /Users/name/.rbenv/versions/2.6.5/lib/ruby/2.6.0/fileutils.rb:239:in `mkdir'
102
+
103
+ /Users/name/.rbenv/versions/2.6.5/lib/ruby/2.6.0/fileutils.rb:239:in `fu_mkdir'
104
+
105
+ /Users/name/.rbenv/versions/2.6.5/lib/ruby/2.6.0/fileutils.rb:217:in `block (2 levels) in mkdir_p'
106
+
107
+ /Users/name/.rbenv/versions/2.6.5/lib/ruby/2.6.0/fileutils.rb:215:in `reverse_each'
108
+
109
+ /Users/name/.rbenv/versions/2.6.5/lib/ruby/2.6.0/fileutils.rb:215:in `block in mkdir_p'
110
+
111
+ /Users/name/.rbenv/versions/2.6.5/lib/ruby/2.6.0/fileutils.rb:200:in `each'
112
+
113
+ /Users/name/.rbenv/versions/2.6.5/lib/ruby/2.6.0/fileutils.rb:200:in `mkdir_p'
114
+
115
+ /Users/name/.rbenv/versions/2.6.5/lib/ruby/2.6.0/rubygems/ext/builder.rb:241:in `write_gem_make_out'
116
+
117
+ /Users/name/.rbenv/versions/2.6.5/lib/ruby/2.6.0/rubygems/ext/builder.rb:142:in `build_error'
118
+
119
+ /Users/name/.rbenv/versions/2.6.5/lib/ruby/2.6.0/rubygems/ext/builder.rb:201:in `rescue in build_extension'
120
+
121
+ /Users/name/.rbenv/versions/2.6.5/lib/ruby/2.6.0/rubygems/ext/builder.rb:178:in `build_extension'
122
+
123
+ /Users/name/.rbenv/versions/2.6.5/lib/ruby/2.6.0/rubygems/ext/builder.rb:229:in `block in build_extensions'
124
+
125
+ /Users/name/.rbenv/versions/2.6.5/lib/ruby/2.6.0/rubygems/ext/builder.rb:226:in `each'
126
+
127
+ /Users/name/.rbenv/versions/2.6.5/lib/ruby/2.6.0/rubygems/ext/builder.rb:226:in `build_extensions'
128
+
129
+ /Users/name/.rbenv/versions/2.6.5/lib/ruby/2.6.0/rubygems/installer.rb:830:in `build_extensions'
130
+
131
+ /Users/name/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/bundler-2.2.19/lib/bundler/rubygems_gem_installer.rb:64:in `build_extensions'
132
+
133
+ /Users/name/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/bundler-2.2.19/lib/bundler/rubygems_gem_installer.rb:26:in `install'
134
+
135
+ /Users/name/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/bundler-2.2.19/lib/bundler/source/rubygems.rb:176:in `install'
136
+
137
+ /Users/name/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/bundler-2.2.19/lib/bundler/installer/gem_installer.rb:67:in `install'
138
+
139
+ /Users/name/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/bundler-2.2.19/lib/bundler/installer/gem_installer.rb:18:in `install_from_spec'
140
+
141
+ /Users/name/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/bundler-2.2.19/lib/bundler/installer/parallel_installer.rb:186:in `do_install'
142
+
143
+ /Users/name/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/bundler-2.2.19/lib/bundler/installer/parallel_installer.rb:177:in `block in worker_pool'
144
+
145
+ /Users/name/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/bundler-2.2.19/lib/bundler/worker.rb:62:in `apply_func'
146
+
147
+ /Users/name/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/bundler-2.2.19/lib/bundler/worker.rb:57:in `block in process_queue'
148
+
149
+ /Users/name/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/bundler-2.2.19/lib/bundler/worker.rb:54:in `loop'
150
+
151
+ /Users/name/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/bundler-2.2.19/lib/bundler/worker.rb:54:in `process_queue'
152
+
153
+ /Users/name/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/bundler-2.2.19/lib/bundler/worker.rb:88:in `block (2 levels) in create_threads'
154
+
155
+ ```
156
+
157
+
158
+
159
+ ## Environment
160
+
161
+
162
+
163
+ ```
164
+
165
+ Bundler 2.2.19
166
+
167
+ Platforms ruby, x86_64-darwin-20
168
+
169
+ Ruby 2.6.5p114 (2019-10-01 revision 67812) [x86_64-darwin20]
170
+
171
+ Full Path /Users/name/.rbenv/versions/2.6.5/bin/ruby
172
+
173
+ Config Dir /Users/name/.rbenv/versions/2.6.5/etc
174
+
175
+ RubyGems 3.0.3
176
+
177
+ Gem Home /Users/name/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0
178
+
179
+ Gem Path /Users/name/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0:/Users/name/.gem/ruby/2.6.0
180
+
181
+ User Home /Users/name
182
+
183
+ User Path /Users/name/.gem/ruby/2.6.0
184
+
185
+ Bin Dir /Users/name/.rbenv/versions/2.6.5/bin
186
+
187
+ OpenSSL
188
+
189
+ Compiled OpenSSL 1.1.1i 8 Dec 2020
190
+
191
+ Loaded OpenSSL 1.1.1i 8 Dec 2020
192
+
193
+ Cert File /usr/local/etc/openssl@1.1/cert.pem
194
+
195
+ Cert Dir /usr/local/etc/openssl@1.1/certs
196
+
197
+ Tools
198
+
199
+ Git 2.24.3 (Apple Git-128)
200
+
201
+ RVM not installed
202
+
203
+ rbenv rbenv 1.1.2
204
+
205
+ chruby not installed
206
+
207
+ ```
208
+
209
+
210
+
211
+ ## Bundler Build Metadata
212
+
213
+
214
+
215
+ ```
216
+
217
+ Built At 2021-05-31
218
+
219
+ Git SHA 43f80b12c0
220
+
221
+ Released Version true
222
+
223
+ ```
224
+
225
+
226
+
227
+ ## Bundler settings
228
+
229
+
230
+
231
+ ```
232
+
233
+ ignore_messages
234
+
235
+ Set via BUNDLE_IGNORE_MESSAGES: true
236
+
237
+ ```
238
+
239
+
240
+
241
+ ## Gemfile
242
+
243
+
244
+
245
+ ### Gemfile
246
+
247
+
248
+
249
+ ```ruby
250
+
251
+ source 'https://rubygems.org'
252
+
253
+ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
254
+
255
+
256
+
257
+ ruby '2.6.5'
258
+
259
+
260
+
261
+ # Bundle edge Rails instead: gem 'rails', github: 'rails/rails', branch: 'main'
262
+
263
+ gem 'rails', '~> 6.1.3', '>= 6.1.3.2'
264
+
265
+ # Use sqlite3 as the database for Active Record
266
+
267
+ gem 'sqlite3', '~> 1.4'
268
+
269
+ # Use Puma as the app server
270
+
271
+ gem 'puma', '~> 5.0'
272
+
273
+ # Use SCSS for stylesheets
274
+
275
+ gem 'sass-rails', '>= 6'
276
+
277
+ # Transpile app-like JavaScript. Read more: https://github.com/rails/webpacker
278
+
279
+ gem 'webpacker', '~> 5.0'
280
+
281
+ # Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
282
+
283
+ gem 'turbolinks', '~> 5'
284
+
285
+ # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
286
+
287
+ gem 'jbuilder', '~> 2.7'
288
+
289
+ # Use Redis adapter to run Action Cable in production
290
+
291
+ # gem 'redis', '~> 4.0'
292
+
293
+ # Use Active Model has_secure_password
294
+
295
+ # gem 'bcrypt', '~> 3.1.7'
296
+
297
+
298
+
299
+ # Use Active Storage variant
300
+
301
+ # gem 'image_processing', '~> 1.2'
302
+
303
+
304
+
305
+ # Reduces boot times through caching; required in config/boot.rb
306
+
307
+ gem 'bootsnap', '>= 1.4.4', require: false
308
+
309
+
310
+
311
+ group :development, :test do
312
+
313
+ # Call 'byebug' anywhere in the code to stop execution and get a debugger console
314
+
315
+ gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
316
+
317
+ end
318
+
319
+
320
+
321
+ group :development do
322
+
323
+ # Access an interactive console on exception pages or by calling 'console' anywhere in the code.
324
+
325
+ gem 'web-console', '>= 4.1.0'
326
+
327
+ # Display performance information such as SQL time and flame graphs for each request in your browser.
328
+
329
+ # Can be configured to work on production as well see: https://github.com/MiniProfiler/rack-mini-profiler/blob/master/README.md
330
+
331
+ gem 'rack-mini-profiler', '~> 2.0'
332
+
333
+ gem 'listen', '~> 3.3'
334
+
335
+ # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
336
+
337
+ gem 'spring'
338
+
339
+ end
340
+
341
+
342
+
343
+ group :test do
344
+
345
+ # Adds support for Capybara system testing and selenium driver
346
+
347
+ gem 'capybara', '>= 3.26'
348
+
349
+ gem 'selenium-webdriver'
350
+
351
+ # Easy installation and use of web drivers to run system tests with browsers
352
+
353
+ gem 'webdrivers'
354
+
355
+ end
356
+
357
+
358
+
359
+ # Windows does not include zoneinfo files, so bundle the tzinfo-data gem
360
+
361
+ gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
362
+
363
+ ```
364
+
365
+
366
+
367
+ ### Gemfile.lock
368
+
369
+
370
+
371
+ ```
372
+
373
+ <No /Users/name/rails_tutorial/sample_app/Gemfile.lock found>
374
+
375
+ ```
376
+
377
+
378
+
17
379
  --- TEMPLATE END ----------------------------------------------------------------
18
380
 
19
381
 
@@ -24,7 +386,7 @@
24
386
 
25
387
  First, try this link to see if there are any existing issue reports for this error:
26
388
 
27
- https://github.com/rubygems/rubygems/search?q=Permission+denied+%40+dir_s_mkdir+-+%2FUsers%2Fgin%2F.rbenv%2Fversions%2F2.6.5%2Flib%2Fruby%2Fgems%2F2.6.0%2Fextensions%2Fx86_64-darwin-20%2F2.6.0%2Fbindex-0.8.1&type=Issues
389
+ https://github.com/rubygems/rubygems/search?q=Permission+denied+%40+dir_s_mkdir+-+%2FUsers%2Fname%2F.rbenv%2Fversions%2F2.6.5%2Flib%2Fruby%2Fgems%2F2.6.0%2Fextensions%2Fx86_64-darwin-20%2F2.6.0%2Fbindex-0.8.1&type=Issues
28
390
 
29
391
 
30
392
 
@@ -46,8 +408,6 @@
46
408
 
47
409
  Run `bundle install` to install missing gems.
48
410
 
49
- ```
50
-
51
411
  となります。
52
412
 
53
413
 
@@ -70,9 +430,11 @@
70
430
 
71
431
  最初はできていたのですが、
72
432
 
433
+ sample_app内で
434
+
73
435
  rails s
74
436
 
75
- サーバーが立ち上がらないことから色々と調べて、
437
+ してもサーバーが立ち上がらないことから色々と調べて、
76
438
 
77
439
  gem install sqlite3 -v '1.4.1' --source 'https://rubygems.org/'
78
440