質問編集履歴

7

エラーの出たログを追記しました

2021/02/13 15:24

投稿

haru24s
haru24s

スコア4

test CHANGED
File without changes
test CHANGED
@@ -155,3 +155,179 @@
155
155
  ```
156
156
 
157
157
  以前と変わった部分以前の、/Users/satoushun/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/bcrypt-3.1.16 までは持ち主?がShunですが、それ以降はまたrootとなっているようです。rbenv等のインストール先かその他何か間違えてしまったでしょうか...?
158
+
159
+
160
+
161
+ ファイル所有者がrootのものをユーザーに変えた後のbundle install
162
+
163
+ ```
164
+
165
+ The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.
166
+
167
+ Fetching gem metadata from https://rubygems.org/............
168
+
169
+ Fetching gem metadata from https://rubygems.org/.
170
+
171
+ Resolving dependencies...
172
+
173
+ Using rake 13.0.3
174
+
175
+ Using concurrent-ruby 1.1.7
176
+
177
+ Using i18n 1.8.5
178
+
179
+ Using minitest 5.14.2
180
+
181
+ Using thread_safe 0.3.6
182
+
183
+ Using tzinfo 1.2.9
184
+
185
+ Using activesupport 5.2.4.4
186
+
187
+ Using builder 3.2.4
188
+
189
+ Using erubi 1.10.0
190
+
191
+ Using mini_portile2 2.4.0
192
+
193
+ Using nokogiri 1.10.10
194
+
195
+ Using rails-dom-testing 2.0.3
196
+
197
+ Using crass 1.0.6
198
+
199
+ Using loofah 2.8.0
200
+
201
+ Using rails-html-sanitizer 1.3.0
202
+
203
+ Using actionview 5.2.4.4
204
+
205
+ Using rack 2.2.3
206
+
207
+ Using rack-test 1.1.0
208
+
209
+ Using actionpack 5.2.4.4
210
+
211
+ Using nio4r 2.5.4
212
+
213
+ Using websocket-extensions 0.1.5
214
+
215
+ Using websocket-driver 0.7.3
216
+
217
+ Using actioncable 5.2.4.4
218
+
219
+ Using globalid 0.4.2
220
+
221
+ Using activejob 5.2.4.4
222
+
223
+ Using mini_mime 1.0.2
224
+
225
+ Using mail 2.7.1
226
+
227
+ Using actionmailer 5.2.4.4
228
+
229
+ Using activemodel 5.2.4.4
230
+
231
+ Using arel 9.0.0
232
+
233
+ Using activerecord 5.2.4.4
234
+
235
+ Using mimemagic 0.3.5
236
+
237
+ Using marcel 0.3.3
238
+
239
+ Using activestorage 5.2.4.4
240
+
241
+ Using public_suffix 4.0.6
242
+
243
+ Using addressable 2.7.0
244
+
245
+ Using io-like 0.3.1
246
+
247
+ Using archive-zip 0.12.0
248
+
249
+ Fetching bcrypt 3.1.16
250
+
251
+ Installing bcrypt 3.1.16 with native extensions
252
+
253
+ Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
254
+
255
+
256
+
257
+ current directory:
258
+
259
+ /Users/satoushun/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/bcrypt-3.1.16/ext/mri
260
+
261
+ /Users/satoushun/.rbenv/versions/2.6.6/bin/ruby -I
262
+
263
+ /Users/satoushun/.rbenv/versions/2.6.6/lib/ruby/2.6.0 -r
264
+
265
+ ./siteconf20210214-15412-3fkfoj.rb extconf.rb
266
+
267
+ creating Makefile
268
+
269
+
270
+
271
+ current directory:
272
+
273
+ /Users/satoushun/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/bcrypt-3.1.16/ext/mri
274
+
275
+ make "DESTDIR=" clean
276
+
277
+ xcrun: error: invalid active developer path
278
+
279
+ (/Library/Developer/CommandLineTools), missing xcrun at:
280
+
281
+ /Library/Developer/CommandLineTools/usr/bin/xcrun
282
+
283
+
284
+
285
+ current directory:
286
+
287
+ /Users/satoushun/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/bcrypt-3.1.16/ext/mri
288
+
289
+ make "DESTDIR="
290
+
291
+ xcrun: error: invalid active developer path
292
+
293
+ (/Library/Developer/CommandLineTools), missing xcrun at:
294
+
295
+ /Library/Developer/CommandLineTools/usr/bin/xcrun
296
+
297
+
298
+
299
+ make failed, exit code 1
300
+
301
+
302
+
303
+ Gem files will remain installed in
304
+
305
+ /Users/satoushun/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/bcrypt-3.1.16
306
+
307
+ for inspection.
308
+
309
+ Results logged to
310
+
311
+ /Users/satoushun/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/extensions/x86_64-darwin-20/2.6.0/bcrypt-3.1.16/gem_make.out
312
+
313
+
314
+
315
+ An error occurred while installing bcrypt (3.1.16), and Bundler cannot
316
+
317
+ continue.
318
+
319
+ Make sure that `gem install bcrypt -v '3.1.16' --source 'https://rubygems.org/'`
320
+
321
+ succeeds before bundling.
322
+
323
+
324
+
325
+ In Gemfile:
326
+
327
+ bcrypt
328
+
329
+ ```
330
+
331
+ Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
332
+
333
+ この部分が赤字でエラー文かと思います

6

編集

2021/02/13 15:24

投稿

haru24s
haru24s

スコア4

test CHANGED
File without changes
test CHANGED
@@ -155,41 +155,3 @@
155
155
  ```
156
156
 
157
157
  以前と変わった部分以前の、/Users/satoushun/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/bcrypt-3.1.16 までは持ち主?がShunですが、それ以降はまたrootとなっているようです。rbenv等のインストール先かその他何か間違えてしまったでしょうか...?
158
-
159
-
160
-
161
- 追記
162
-
163
- /Users/satoushun/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/extensions/x86_64-darwin-20/2.6.0/bcrypt-3.1.16/gem_make.out について権限を調べたところ、このように表示されました。このファイルにアクセス権が無いようなのですが、どうすればいいでしょうか? また、その2、3階層前の、〜 is a directory というのは特に問題ないのでしょうか...?
164
-
165
- ```
166
-
167
- MacBook-Pro:cocktails Shun$ ls -ld /Users/satoushun/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/extensions
168
-
169
- drwxr-xr-x 3 Shun staff 96 11 20 02:12 /Users/satoushun/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/extensions
170
-
171
-
172
-
173
- MacBook-Pro:cocktails Shun$ /Users/satoushun/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/extensions/x86_64-darwin-20
174
-
175
- -bash: /Users/satoushun/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/extensions/x86_64-darwin-20: is a directory
176
-
177
-
178
-
179
- MacBook-Pro:cocktails Shun$ /Users/satoushun/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/extensions/x86_64-darwin-20/2.6.0
180
-
181
- -bash: /Users/satoushun/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/extensions/x86_64-darwin-20/2.6.0: is a directory
182
-
183
-
184
-
185
- MacBook-Pro:cocktails Shun$ /Users/satoushun/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/extensions/x86_64-darwin-20/2.6.0/bcrypt-3.1.16
186
-
187
- -bash: /Users/satoushun/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/extensions/x86_64-darwin-20/2.6.0/bcrypt-3.1.16: is a directory
188
-
189
-
190
-
191
- MacBook-Pro:cocktails Shun$ /Users/satoushun/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/extensions/x86_64-darwin-20/2.6.0/bcrypt-3.1.16/gem_make.out
192
-
193
- -bash: /Users/satoushun/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/extensions/x86_64-darwin-20/2.6.0/bcrypt-3.1.16/gem_make.out: Permission denied
194
-
195
- ```

5

タグの追加

2021/02/13 15:17

投稿

haru24s
haru24s

スコア4

test CHANGED
File without changes
test CHANGED
File without changes

4

追記しました

2021/02/12 15:27

投稿

haru24s
haru24s

スコア4

test CHANGED
File without changes
test CHANGED
@@ -155,3 +155,41 @@
155
155
  ```
156
156
 
157
157
  以前と変わった部分以前の、/Users/satoushun/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/bcrypt-3.1.16 までは持ち主?がShunですが、それ以降はまたrootとなっているようです。rbenv等のインストール先かその他何か間違えてしまったでしょうか...?
158
+
159
+
160
+
161
+ 追記
162
+
163
+ /Users/satoushun/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/extensions/x86_64-darwin-20/2.6.0/bcrypt-3.1.16/gem_make.out について権限を調べたところ、このように表示されました。このファイルにアクセス権が無いようなのですが、どうすればいいでしょうか? また、その2、3階層前の、〜 is a directory というのは特に問題ないのでしょうか...?
164
+
165
+ ```
166
+
167
+ MacBook-Pro:cocktails Shun$ ls -ld /Users/satoushun/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/extensions
168
+
169
+ drwxr-xr-x 3 Shun staff 96 11 20 02:12 /Users/satoushun/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/extensions
170
+
171
+
172
+
173
+ MacBook-Pro:cocktails Shun$ /Users/satoushun/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/extensions/x86_64-darwin-20
174
+
175
+ -bash: /Users/satoushun/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/extensions/x86_64-darwin-20: is a directory
176
+
177
+
178
+
179
+ MacBook-Pro:cocktails Shun$ /Users/satoushun/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/extensions/x86_64-darwin-20/2.6.0
180
+
181
+ -bash: /Users/satoushun/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/extensions/x86_64-darwin-20/2.6.0: is a directory
182
+
183
+
184
+
185
+ MacBook-Pro:cocktails Shun$ /Users/satoushun/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/extensions/x86_64-darwin-20/2.6.0/bcrypt-3.1.16
186
+
187
+ -bash: /Users/satoushun/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/extensions/x86_64-darwin-20/2.6.0/bcrypt-3.1.16: is a directory
188
+
189
+
190
+
191
+ MacBook-Pro:cocktails Shun$ /Users/satoushun/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/extensions/x86_64-darwin-20/2.6.0/bcrypt-3.1.16/gem_make.out
192
+
193
+ -bash: /Users/satoushun/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/extensions/x86_64-darwin-20/2.6.0/bcrypt-3.1.16/gem_make.out: Permission denied
194
+
195
+ ```

3

追記しました

2021/02/12 14:33

投稿

haru24s
haru24s

スコア4

test CHANGED
File without changes
test CHANGED
@@ -117,3 +117,41 @@
117
117
  succeeds before bundling.
118
118
 
119
119
  ```
120
+
121
+
122
+
123
+ lsコマンドにてアクセス権を調べました。
124
+
125
+ ```
126
+
127
+ MacBook-Pro:cocktails Shun$ ls -ld /Users/satoushun/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/bcrypt-3.1.16
128
+
129
+ drwxr-xr-x 15 Shun staff 480 2 12 00:55 /Users/satoushun/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/bcrypt-3.1.16
130
+
131
+
132
+
133
+ MacBook-Pro:cocktails Shun$ ls -ld /Users/satoushun/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/bcrypt-3.1.16/ext
134
+
135
+ drwxr-xr-x 4 root staff 128 2 11 17:52 /Users/satoushun/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/bcrypt-3.1.16/ext
136
+
137
+
138
+
139
+ MacBook-Pro:cocktails Shun$ ls -ld /Users/satoushun/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/bcrypt-3.1.16/ext/jruby
140
+
141
+ drwxr-xr-x 3 root staff 96 2 11 17:52 /Users/satoushun/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/bcrypt-3.1.16/ext/jruby
142
+
143
+
144
+
145
+ MacBook-Pro:cocktails Shun$ ls -ld /Users/satoushun/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/bcrypt-3.1.16/ext/jruby/bcrypt_jruby
146
+
147
+ drwxr-xr-x 3 root staff 96 2 11 17:52 /Users/satoushun/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/bcrypt-3.1.16/ext/jruby/bcrypt_jruby
148
+
149
+
150
+
151
+ MacBook-Pro:cocktails Shun$ ls -ld /Users/satoushun/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/bcrypt-3.1.16/ext/jruby/bcrypt_jruby/BCrypt.java
152
+
153
+ -rw-r--r-- 1 root staff 33955 2 11 17:52 /Users/satoushun/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/bcrypt-3.1.16/ext/jruby/bcrypt_jruby/BCrypt.java
154
+
155
+ ```
156
+
157
+ 以前と変わった部分以前の、/Users/satoushun/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/bcrypt-3.1.16 までは持ち主?がShunですが、それ以降はまたrootとなっているようです。rbenv等のインストール先かその他何か間違えてしまったでしょうか...?

2

追記しました

2021/02/11 16:11

投稿

haru24s
haru24s

スコア4

test CHANGED
File without changes
test CHANGED
@@ -95,3 +95,25 @@
95
95
  -rw-r--r-- 1 root staff 61 2 11 17:52 /Users/satoushun/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/bcrypt-3.1.16/.gitignore
96
96
 
97
97
  ```
98
+
99
+
100
+
101
+ 追記(sudo chown Shun /Users/satoushun/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/bcrypt-3.1.16 実行後)
102
+
103
+
104
+
105
+ ```
106
+
107
+ Errno::EACCES: Permission denied @ rb_sysopen -
108
+
109
+ /Users/satoushun/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/bcrypt-3.1.16/ext/jruby/bcrypt_jruby/BCrypt.java
110
+
111
+ An error occurred while installing bcrypt (3.1.16), and Bundler
112
+
113
+ cannot continue.
114
+
115
+ Make sure that `gem install bcrypt -v '3.1.16' --source 'https://rubygems.org/'`
116
+
117
+ succeeds before bundling.
118
+
119
+ ```

1

追記

2021/02/11 16:01

投稿

haru24s
haru24s

スコア4

test CHANGED
File without changes
test CHANGED
@@ -29,3 +29,69 @@
29
29
  ```
30
30
 
31
31
  と出てしまいました。どうしたらインストールできるのでしょうか?
32
+
33
+
34
+
35
+ アドバイス頂いた通り、lsコマンドを順に試しました。
36
+
37
+ ```
38
+
39
+ satoushunnoMacBook-Pro:cocktails Shun$ ls -ld /Users/satoushun/.rbenv
40
+
41
+ drwxr-xr-x 5 Shun staff 160 11 20 01:58 /Users/satoushun/.rbenv
42
+
43
+
44
+
45
+ satoushunnoMacBook-Pro:cocktails Shun$ ls -ld /Users/satoushun/.rbenv/versions
46
+
47
+ drwxr-xr-x 3 Shun staff 96 11 20 01:39 /Users/satoushun/.rbenv/versions
48
+
49
+
50
+
51
+ satoushunnoMacBook-Pro:cocktails Shun$ ls -ld /Users/satoushun/.rbenv/versions/2.6.6
52
+
53
+ drwxr-xr-x 7 Shun staff 224 11 20 01:44 /Users/satoushun/.rbenv/versions/2.6.6
54
+
55
+
56
+
57
+ satoushunnoMacBook-Pro:cocktails Shun$ ls -ld /Users/satoushun/.rbenv/versions/2.6.6/lib
58
+
59
+ drwxr-xr-x 6 Shun staff 192 11 20 01:44 /Users/satoushun/.rbenv/versions/2.6.6/lib
60
+
61
+
62
+
63
+ satoushunnoMacBook-Pro:cocktails Shun$ ls -ld /Users/satoushun/.rbenv/versions/2.6.6/lib/ruby
64
+
65
+ drwxr-xr-x 6 Shun staff 192 11 20 01:44 /Users/satoushun/.rbenv/versions/2.6.6/lib/ruby
66
+
67
+
68
+
69
+ satoushunnoMacBook-Pro:cocktails Shun$ ls -ld /Users/satoushun/.rbenv/versions/2.6.6/lib/ruby/gems
70
+
71
+ drwxr-xr-x 3 Shun staff 96 11 20 01:44 /Users/satoushun/.rbenv/versions/2.6.6/lib/ruby/gems
72
+
73
+
74
+
75
+ satoushunnoMacBook-Pro:cocktails Shun$ ls -ld /Users/satoushun/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0
76
+
77
+ drwxr-xr-x 8 Shun staff 256 2 11 19:05 /Users/satoushun/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0
78
+
79
+
80
+
81
+ satoushunnoMacBook-Pro:cocktails Shun$ ls -ld /Users/satoushun/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems
82
+
83
+ drwxr-xr-x 118 Shun staff 3776 2 11 17:52 /Users/satoushun/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems
84
+
85
+
86
+
87
+ satoushunnoMacBook-Pro:cocktails Shun$ ls -ld /Users/satoushun/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/bcrypt-3.1.16
88
+
89
+ drwxr-xr-x 15 root staff 480 2 11 17:52 /Users/satoushun/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/bcrypt-3.1.16
90
+
91
+
92
+
93
+ satoushunnoMacBook-Pro:cocktails Shun$ ls -ld /Users/satoushun/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/bcrypt-3.1.16/.gitignore
94
+
95
+ -rw-r--r-- 1 root staff 61 2 11 17:52 /Users/satoushun/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/bcrypt-3.1.16/.gitignore
96
+
97
+ ```