質問編集履歴
2
「自分で試したこと」の部分の変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -18,6 +18,8 @@
|
|
18
18
|
|
19
19
|
$ ruby -v
|
20
20
|
|
21
|
+
|
22
|
+
|
21
23
|
ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x86_64-darwin17]
|
22
24
|
|
23
25
|
```
|
@@ -32,6 +34,8 @@
|
|
32
34
|
|
33
35
|
$ mysql --version
|
34
36
|
|
37
|
+
|
38
|
+
|
35
39
|
mysql Ver 14.14 Distrib 5.7.32, for osx10.16 (x86_64) using EditLine wr
|
36
40
|
|
37
41
|
apper
|
@@ -48,6 +52,8 @@
|
|
48
52
|
|
49
53
|
$ brew -v
|
50
54
|
|
55
|
+
|
56
|
+
|
51
57
|
Homebrew 3.0.5
|
52
58
|
|
53
59
|
Homebrew/homebrew-core (git revision f376c69429; last commit 2021-03-15)
|
@@ -74,9 +80,9 @@
|
|
74
80
|
|
75
81
|
Following files may not be writable, so sudo is needed:
|
76
82
|
|
77
|
-
/Users/
|
83
|
+
/Users/ユーザ名/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/build_info/mysql2-0.5
|
78
|
-
|
84
|
+
|
79
|
-
|
85
|
+
.3.info
|
80
86
|
|
81
87
|
Fetching mysql2 0.5.3
|
82
88
|
|
@@ -84,6 +90,8 @@
|
|
84
90
|
|
85
91
|
|
86
92
|
|
93
|
+
|
94
|
+
|
87
95
|
Your user account isn't allowed to install to the system RubyGems.
|
88
96
|
|
89
97
|
You can cancel this installation and run:
|
@@ -96,9 +104,7 @@
|
|
96
104
|
|
97
105
|
|
98
106
|
|
99
|
-
to install the gems into ./vendor/bundle/, or you can enter your pas
|
107
|
+
to install the gems into ./vendor/bundle/, or you can enter your password
|
100
|
-
|
101
|
-
sword
|
102
108
|
|
103
109
|
and install the bundled gems to RubyGems using sudo.
|
104
110
|
|
@@ -108,454 +114,422 @@
|
|
108
114
|
|
109
115
|
Installing mysql2 0.5.3 with native extensions
|
110
116
|
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
ch
|
162
|
-
|
163
|
-
c
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
in
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
c
|
190
|
-
|
191
|
-
/
|
192
|
-
|
193
|
-
-r
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
r
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
rnal
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
rnal
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
r
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
co
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
m
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
'h
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
m
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
```
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
/l
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
ch
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
c
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
che
|
370
|
-
|
371
|
-
c
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
che
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
c
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
c
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
re
|
402
|
-
|
403
|
-
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
c
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
/
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
/
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
co
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
s
|
500
|
-
|
501
|
-
m
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
em
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
Building native extensions. This could take a while...
|
532
|
-
|
533
|
-
ERROR: Error installing mysql2:
|
534
|
-
|
535
|
-
ERROR: Failed to build gem native extension.
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
current directory: /Users/masatosankai/.rbenv/versions/3.0.0/lib/ruby
|
540
|
-
|
541
|
-
/gems/3.0.0/gems/mysql2-0.5.3/ext/mysql2
|
542
|
-
|
543
|
-
/Users/masatosankai/.rbenv/versions/3.0.0/bin/ruby -I /Users/masatosankai
|
544
|
-
|
545
|
-
/.rbenv/versions/3.0.0/lib/ruby/3.0.0 -r ./siteconf20210328-34853-lzd1f4.
|
546
|
-
|
547
|
-
rb extconf.rb
|
548
|
-
|
549
|
-
checking for rb_absint_size()... yes
|
550
|
-
|
551
|
-
checking for rb_absint_singlebit_p()... yes
|
552
|
-
|
553
|
-
checking for rb_wait_for_single_fd()... yes
|
554
|
-
|
555
|
-
-----
|
556
|
-
|
557
|
-
Using mysql_config at /usr/local/opt/mysql@5.7/bin/mysql_config
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
```
|
117
|
+
Bundle complete! 1 Gemfile dependency, 2 gems now installed.
|
118
|
+
|
119
|
+
Use `bundle info [gemname]` to see where a bundled gem is installed.
|
120
|
+
|
121
|
+
```
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
```
|
126
|
+
|
127
|
+
$ brew install openssl@1.1
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
Error: openssl@1.1 1.1.1j is already installed.
|
132
|
+
|
133
|
+
To upgrade to 1.1.1k, run:
|
134
|
+
|
135
|
+
brew upgrade openssl@1.1
|
136
|
+
|
137
|
+
```
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
```
|
142
|
+
|
143
|
+
$ brew upgrade openssl@1.1
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
==> Upgrading 1 outdated package:
|
148
|
+
|
149
|
+
openssl@1.1 1.1.1j -> 1.1.1k
|
150
|
+
|
151
|
+
==> Upgrading openssl@1.1 1.1.1j -> 1.1.1k
|
152
|
+
|
153
|
+
==> Downloading https://homebrew.bintray.com/bottles/openssl%401.1-1.1.1k.big_sur.bot
|
154
|
+
|
155
|
+
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/17d94c51ddfa8364baed5f3a75
|
156
|
+
|
157
|
+
######################################################################## 100.0%
|
158
|
+
|
159
|
+
==> Pouring openssl@1.1-1.1.1k.big_sur.bottle.tar.gz
|
160
|
+
|
161
|
+
==> Regenerating CA certificate bundle from keychain, this may take a while...
|
162
|
+
|
163
|
+
==> Caveats
|
164
|
+
|
165
|
+
A CA file has been bootstrapped using certificates from the system
|
166
|
+
|
167
|
+
keychain. To add additional certificates, place .pem files in
|
168
|
+
|
169
|
+
/usr/local/etc/openssl@1.1/certs
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
and run
|
176
|
+
|
177
|
+
/usr/local/opt/openssl@1.1/bin/c_rehash
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
openssl@1.1 is keg-only, which means it was not symlinked into /usr/local,
|
182
|
+
|
183
|
+
because macOS provides LibreSSL.
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
If you need to have openssl@1.1 first in your PATH, run:
|
188
|
+
|
189
|
+
echo 'export PATH="/usr/local/opt/openssl@1.1/bin:$PATH"' >> /Users/ユーザ名/.b
|
190
|
+
|
191
|
+
ash_profile
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
For compilers to find openssl@1.1 you may need to set:
|
196
|
+
|
197
|
+
export LDFLAGS="-L/usr/local/opt/openssl@1.1/lib"
|
198
|
+
|
199
|
+
export CPPFLAGS="-I/usr/local/opt/openssl@1.1/include"
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
For pkg-config to find openssl@1.1 you may need to set:
|
204
|
+
|
205
|
+
export PKG_CONFIG_PATH="/usr/local/opt/openssl@1.1/lib/pkgconfig"
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
==> Summary
|
210
|
+
|
211
|
+
???? /usr/local/Cellar/openssl@1.1/1.1.1k: 8,071 files, 18.5MB
|
212
|
+
|
213
|
+
Removing: /usr/local/Cellar/openssl@1.1/1.1.1j... (8,071 files, 18.5MB)
|
214
|
+
|
215
|
+
Removing: /Users/ユーザ名/Library/Caches/Homebrew/openssl@1.1--1.1.1j.big_sur.bot
|
216
|
+
|
217
|
+
tle.tar.gz... (5.4MB)
|
218
|
+
|
219
|
+
```
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
```
|
224
|
+
|
225
|
+
$ brew install openssl@1.1
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
Warning: openssl@1.1 1.1.1k is already installed and up-to-date.
|
230
|
+
|
231
|
+
To reinstall 1.1.1k, run:
|
232
|
+
|
233
|
+
brew reinstall openssl@1.1
|
234
|
+
|
235
|
+
```
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
```
|
240
|
+
|
241
|
+
$ brew reinstall openssl@1.1
|
242
|
+
|
243
|
+
|
244
|
+
|
245
|
+
==> Downloading https://homebrew.bintray.com/bottles/openssl%401.1-1.1.1k.big_sur.bot
|
246
|
+
|
247
|
+
Already downloaded: /Users/ユーザ名/Library/Caches/Homebrew/downloads/fae83f76186
|
248
|
+
|
249
|
+
7e592ca8209f4cf851a681825ea9a2b5af870b9237aa35ca1ef0f--openssl@1.1-1.1.1k.big_sur.bot
|
250
|
+
|
251
|
+
tle.tar.gz
|
252
|
+
|
253
|
+
==> Reinstalling openssl@1.1
|
254
|
+
|
255
|
+
==> Pouring openssl@1.1-1.1.1k.big_sur.bottle.tar.gz
|
256
|
+
|
257
|
+
==> Regenerating CA certificate bundle from keychain, this may take a while...
|
258
|
+
|
259
|
+
==> Caveats
|
260
|
+
|
261
|
+
A CA file has been bootstrapped using certificates from the system
|
262
|
+
|
263
|
+
keychain. To add additional certificates, place .pem files in
|
264
|
+
|
265
|
+
/usr/local/etc/openssl@1.1/certs
|
266
|
+
|
267
|
+
|
268
|
+
|
269
|
+
|
270
|
+
|
271
|
+
and run
|
272
|
+
|
273
|
+
/usr/local/opt/openssl@1.1/bin/c_rehash
|
274
|
+
|
275
|
+
|
276
|
+
|
277
|
+
openssl@1.1 is keg-only, which means it was not symlinked into /usr/local,
|
278
|
+
|
279
|
+
because macOS provides LibreSSL.
|
280
|
+
|
281
|
+
|
282
|
+
|
283
|
+
If you need to have openssl@1.1 first in your PATH, run:
|
284
|
+
|
285
|
+
echo 'export PATH="/usr/local/opt/openssl@1.1/bin:$PATH"' >> /Users/ユーザ名/.b
|
286
|
+
|
287
|
+
ash_profile
|
288
|
+
|
289
|
+
|
290
|
+
|
291
|
+
For compilers to find openssl@1.1 you may need to set:
|
292
|
+
|
293
|
+
export LDFLAGS="-L/usr/local/opt/openssl@1.1/lib"
|
294
|
+
|
295
|
+
export CPPFLAGS="-I/usr/local/opt/openssl@1.1/include"
|
296
|
+
|
297
|
+
|
298
|
+
|
299
|
+
For pkg-config to find openssl@1.1 you may need to set:
|
300
|
+
|
301
|
+
export PKG_CONFIG_PATH="/usr/local/opt/openssl@1.1/lib/pkgconfig"
|
302
|
+
|
303
|
+
|
304
|
+
|
305
|
+
==> Summary
|
306
|
+
|
307
|
+
???? /usr/local/Cellar/openssl@1.1/1.1.1k: 8,071 files, 18.5MB
|
308
|
+
|
309
|
+
```
|
310
|
+
|
311
|
+
|
312
|
+
|
313
|
+
```
|
314
|
+
|
315
|
+
$ gem install mysql2 -- --with-cppflags=-I/usr/l
|
316
|
+
|
317
|
+
ocal/opt/openssl@1.1/include --with-ldflags=-L/usr/local/opt/openssl@1.1/lib
|
318
|
+
|
319
|
+
|
320
|
+
|
321
|
+
Building native extensions with: '--with-cppflags=-I/usr/local/opt/openssl@1.1/includ
|
322
|
+
|
323
|
+
e --with-ldflags=-L/usr/local/opt/openssl@1.1/lib'
|
324
|
+
|
325
|
+
This could take a while...
|
326
|
+
|
327
|
+
ERROR: While executing gem ... (Errno::EACCES)
|
328
|
+
|
329
|
+
Permission denied @ rb_sysopen - /Users/ユーザ名/.rbenv/versions/3.0.0/lib/ru
|
330
|
+
|
331
|
+
by/gems/3.0.0/build_info/mysql2-0.5.3.info
|
332
|
+
|
333
|
+
```
|
334
|
+
|
335
|
+
|
336
|
+
|
337
|
+
```
|
338
|
+
|
339
|
+
$ brew info openssl@1.1
|
340
|
+
|
341
|
+
|
342
|
+
|
343
|
+
openssl@1.1: stable 1.1.1k (bottled) [keg-only]
|
344
|
+
|
345
|
+
Cryptography and SSL/TLS Toolkit
|
346
|
+
|
347
|
+
https://openssl.org/
|
348
|
+
|
349
|
+
/usr/local/Cellar/openssl@1.1/1.1.1k (8,071 files, 18.5MB)
|
350
|
+
|
351
|
+
Poured from bottle on 2021-03-29 at 14:37:20
|
352
|
+
|
353
|
+
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/openssl@1.1.rb
|
354
|
+
|
355
|
+
License: OpenSSL
|
356
|
+
|
357
|
+
==> Caveats
|
358
|
+
|
359
|
+
A CA file has been bootstrapped using certificates from the system
|
360
|
+
|
361
|
+
keychain. To add additional certificates, place .pem files in
|
362
|
+
|
363
|
+
/usr/local/etc/openssl@1.1/certs
|
364
|
+
|
365
|
+
|
366
|
+
|
367
|
+
|
368
|
+
|
369
|
+
and run
|
370
|
+
|
371
|
+
/usr/local/opt/openssl@1.1/bin/c_rehash
|
372
|
+
|
373
|
+
|
374
|
+
|
375
|
+
openssl@1.1 is keg-only, which means it was not symlinked into /usr/local,
|
376
|
+
|
377
|
+
because macOS provides LibreSSL.
|
378
|
+
|
379
|
+
|
380
|
+
|
381
|
+
If you need to have openssl@1.1 first in your PATH, run:
|
382
|
+
|
383
|
+
echo 'export PATH="/usr/local/opt/openssl@1.1/bin:$PATH"' >> /Users/ユーザ名/.b
|
384
|
+
|
385
|
+
ash_profile
|
386
|
+
|
387
|
+
|
388
|
+
|
389
|
+
For compilers to find openssl@1.1 you may need to set:
|
390
|
+
|
391
|
+
export LDFLAGS="-L/usr/local/opt/openssl@1.1/lib"
|
392
|
+
|
393
|
+
export CPPFLAGS="-I/usr/local/opt/openssl@1.1/include"
|
394
|
+
|
395
|
+
|
396
|
+
|
397
|
+
For pkg-config to find openssl@1.1 you may need to set:
|
398
|
+
|
399
|
+
export PKG_CONFIG_PATH="/usr/local/opt/openssl@1.1/lib/pkgconfig"
|
400
|
+
|
401
|
+
|
402
|
+
|
403
|
+
==> Analytics
|
404
|
+
|
405
|
+
install: 841,099 (30 days), 2,355,026 (90 days), 8,918,368 (365 days)
|
406
|
+
|
407
|
+
install-on-request: 73,357 (30 days), 317,809 (90 days), 1,268,061 (365 days)
|
408
|
+
|
409
|
+
build-error: 0 (30 days)
|
410
|
+
|
411
|
+
```
|
412
|
+
|
413
|
+
|
414
|
+
|
415
|
+
```
|
416
|
+
|
417
|
+
$ bundle config --local build.mysql2 "--with-cpp
|
418
|
+
|
419
|
+
|
420
|
+
|
421
|
+
flags=-I/usr/local/opt/openssl@1.1/include --with-ldflags=-L/usr/local/opt/openssl@1.
|
422
|
+
|
423
|
+
1/lib"
|
424
|
+
|
425
|
+
|
426
|
+
|
427
|
+
You are replacing the current local value of build.mysql2, which is currently "--with
|
428
|
+
|
429
|
+
-ldflags=-L/usr/local/opt/openssl@1.1/lib --with-cppflags=-I/usr/local/opt/openssl@1.
|
430
|
+
|
431
|
+
1/include"
|
432
|
+
|
433
|
+
```
|
434
|
+
|
435
|
+
|
436
|
+
|
437
|
+
```
|
438
|
+
|
439
|
+
$ bundle install
|
440
|
+
|
441
|
+
|
442
|
+
|
443
|
+
Fetching gem metadata from https://rubygems.org/.
|
444
|
+
|
445
|
+
Using bundler 2.2.3
|
446
|
+
|
447
|
+
Following files may not be writable, so sudo is needed:
|
448
|
+
|
449
|
+
/Users/ユーザ名/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/build_info/mysql2-0.5
|
450
|
+
|
451
|
+
.3.info
|
452
|
+
|
453
|
+
Fetching mysql2 0.5.3
|
454
|
+
|
455
|
+
|
456
|
+
|
457
|
+
|
458
|
+
|
459
|
+
Your user account isn't allowed to install to the system RubyGems.
|
460
|
+
|
461
|
+
You can cancel this installation and run:
|
462
|
+
|
463
|
+
|
464
|
+
|
465
|
+
bundle config set --local path 'vendor/bundle'
|
466
|
+
|
467
|
+
bundle install
|
468
|
+
|
469
|
+
|
470
|
+
|
471
|
+
to install the gems into ./vendor/bundle/, or you can enter your password
|
472
|
+
|
473
|
+
and install the bundled gems to RubyGems using sudo.
|
474
|
+
|
475
|
+
|
476
|
+
|
477
|
+
|
478
|
+
|
479
|
+
Password:
|
480
|
+
|
481
|
+
|
482
|
+
|
483
|
+
|
484
|
+
|
485
|
+
Your user account isn't allowed to install to the system RubyGems.
|
486
|
+
|
487
|
+
You can cancel this installation and run:
|
488
|
+
|
489
|
+
|
490
|
+
|
491
|
+
bundle config set --local path 'vendor/bundle'
|
492
|
+
|
493
|
+
bundle install
|
494
|
+
|
495
|
+
|
496
|
+
|
497
|
+
to install the gems into ./vendor/bundle/, or you can enter your password
|
498
|
+
|
499
|
+
and install the bundled gems to RubyGems using sudo.
|
500
|
+
|
501
|
+
|
502
|
+
|
503
|
+
Password:
|
504
|
+
|
505
|
+
Installing mysql2 0.5.3 with native extensions
|
506
|
+
|
507
|
+
Bundle complete! 1 Gemfile dependency, 2 gems now installed.
|
508
|
+
|
509
|
+
Use `bundle info [gemname]` to see where a bundled gem is installed.
|
510
|
+
|
511
|
+
```
|
512
|
+
|
513
|
+
|
514
|
+
|
515
|
+
```
|
516
|
+
|
517
|
+
$ bundle install
|
518
|
+
|
519
|
+
|
520
|
+
|
521
|
+
Using bundler 2.2.3
|
522
|
+
|
523
|
+
Using mysql2 0.5.3
|
524
|
+
|
525
|
+
Following files may not be writable, so sudo is needed:
|
526
|
+
|
527
|
+
/Users/ユーザ名/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/build_info/mysql2-0.5
|
528
|
+
|
529
|
+
.3.info
|
530
|
+
|
531
|
+
Bundle complete! 1 Gemfile dependency, 2 gems now installed.
|
532
|
+
|
533
|
+
Use `bundle info [gemname]` to see where a bundled gem is installed.
|
534
|
+
|
535
|
+
```
|
1
文章の追加。
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
使用環境はrubyバージョン3.0.0, mysqlバージョン5.7, bundlerバージョン2.2.3です。
|
2
|
+
|
3
|
+
使用機器macOS Big Sur バージョン11.2.2です。使用中のテキストエディタはAtomです。
|
4
|
+
|
5
|
+
|
6
|
+
|
7
|
+
|
8
|
+
|
1
9
|
rbenvを使って``ruby 3.0.0``をインストールしたり、Homebrewを使って(brewコマンドを使って)``mysql 5.7 ``をインストールした場合、どのようなコマンドを入力すればよいのでしょうか。
|
2
10
|
|
3
11
|
|