質問編集履歴

2

「自分で試したこと」の部分の変更

2021/03/29 06:36

投稿

Marchan4
Marchan4

スコア15

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/masatosankai/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/build_
83
+ /Users/ユーザ名/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/build_info/mysql2-0.5
78
-
84
+
79
- info/mysql2-0.5.3.info
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
- Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
112
-
113
-
114
-
115
- current directory:
116
-
117
- /var/folders/dw/kmw_z3yn035_rwps2mh1n5q80000gn/T/bundler20210328-34165
118
-
119
- -rzwojsmysql2-0.5.3/gems/mysql2-0.5.3/ext/mysql2
120
-
121
- /Users/masatosankai/.rbenv/versions/3.0.0/bin/ruby -I
122
-
123
- /Users/masatosankai/.rbenv/versions/3.0.0/lib/ruby/3.0.0 -r
124
-
125
- ./siteconf20210328-34165-nxc9bm.rb extconf.rb
126
-
127
- checking for rb_absint_size()... yes
128
-
129
- checking for rb_absint_singlebit_p()... yes
130
-
131
- checking for rb_wait_for_single_fd()... yes
132
-
133
- -----
134
-
135
- Using mysql_config at /usr/local/opt/mysql@5.7/bin/mysql_config
136
-
137
- -----
138
-
139
- checking for mysql.h... yes
140
-
141
- checking for errmsg.h... yes
142
-
143
- checking for SSL_MODE_DISABLED in mysql.h... yes
144
-
145
- checking for SSL_MODE_PREFERRED in mysql.h... yes
146
-
147
- checking for SSL_MODE_REQUIRED in mysql.h... yes
148
-
149
- checking for SSL_MODE_VERIFY_CA in mysql.h... yes
150
-
151
- checking for SSL_MODE_VERIFY_IDENTITY in mysql.h... yes
152
-
153
- checking for MYSQL.net.vio in mysql.h... yes
154
-
155
- checking for MYSQL.net.pvio in mysql.h... no
156
-
157
- checking for MYSQL_ENABLE_CLEARTEXT_PLUGIN in mysql.h... yes
158
-
159
- checking for SERVER_QUERY_NO_GOOD_INDEX_USED in mysql.h... yes
160
-
161
- checking for SERVER_QUERY_NO_INDEX_USED in mysql.h... yes
162
-
163
- checking for SERVER_QUERY_WAS_SLOW in mysql.h... yes
164
-
165
- checking for MYSQL_OPTION_MULTI_STATEMENTS_ON in mysql.h... yes
166
-
167
- checking for MYSQL_OPTION_MULTI_STATEMENTS_OFF in mysql.h... yes
168
-
169
- checking for my_bool in mysql.h... yes
170
-
171
- -----
172
-
173
- Don't know how to set rpath on your system, if MySQL libraries are not
174
-
175
- in path mysql2 may not load
176
-
177
- -----
178
-
179
- -----
180
-
181
- Setting libpath to /usr/local/opt/mysql@5.7/lib
182
-
183
- -----
184
-
185
- creating Makefile
186
-
187
-
188
-
189
- current directory:
190
-
191
- /var/folders/dw/kmw_z3yn035_rwps2mh1n5q80000gn/T/bundler20210328-34165
192
-
193
- -rzwojsmysql2-0.5.3/gems/mysql2-0.5.3/ext/mysql2
194
-
195
- make "DESTDIR=" clean
196
-
197
-
198
-
199
- current directory:
200
-
201
- /var/folders/dw/kmw_z3yn035_rwps2mh1n5q80000gn/T/bundler20210328-34165
202
-
203
- -rzwojsmysql2-0.5.3/gems/mysql2-0.5.3/ext/mysql2
204
-
205
- make "DESTDIR="
206
-
207
- compiling client.c
208
-
209
- client.c:787:14: warning: incompatible pointer types passing 'VALUE
210
-
211
- (void *)' (aka 'unsigned long (void *)') to parameter of type 'VALUE
212
-
213
- (*)(VALUE)' (aka 'unsigned long (*)(unsigned long)')
214
-
215
- [-Wincompatible-pointer-types]
216
-
217
- rb_rescue2(do_send_query, (VALUE)&args, disconnect_and_raise, self,
218
-
219
- rb_eException, (VALUE)0);
220
-
221
- ^~~~~~~~~~~~~
222
-
223
- /Users/masatosankai/.rbenv/versions/3.0.0/include/ruby-3.0.0/ruby/inte
224
-
225
- rnal/iterator.h:51:25:
226
-
227
- note: passing argument to parameter here
228
-
229
- VALUE
230
-
231
- rb_rescue2(VALUE(*)(VALUE),VALUE,VALUE(*)(VALUE,VALUE),VALUE,...);
232
-
233
- ^
234
-
235
- client.c:795:16: warning: incompatible pointer types passing 'VALUE
236
-
237
- (void *)' (aka 'unsigned long (void *)') to parameter of type 'VALUE
238
-
239
- (*)(VALUE)' (aka 'unsigned long (*)(unsigned long)')
240
-
241
- [-Wincompatible-pointer-types]
242
-
243
- rb_rescue2(do_query, (VALUE)&async_args, disconnect_and_raise,
244
-
245
- self, rb_eException, (VALUE)0);
246
-
247
- ^~~~~~~~
248
-
249
- /Users/masatosankai/.rbenv/versions/3.0.0/include/ruby-3.0.0/ruby/inte
250
-
251
- rnal/iterator.h:51:25:
252
-
253
- note: passing argument to parameter here
254
-
255
- VALUE
256
-
257
- rb_rescue2(VALUE(*)(VALUE),VALUE,VALUE(*)(VALUE,VALUE),VALUE,...);
258
-
259
- ^
260
-
261
-
262
-
263
- 2 warnings generated.
264
-
265
- compiling infile.c
266
-
267
- compiling mysql2_ext.c
268
-
269
- compiling result.c
270
-
271
- compiling statement.c
272
-
273
- linking shared-object mysql2/mysql2.bundle
274
-
275
- ld: library not found for -lssl
276
-
277
- clang: error: linker command failed with exit code 1 (use -v to see
278
-
279
- invocation)
280
-
281
- make: *** [mysql2.bundle] Error 1
282
-
283
-
284
-
285
- make failed, exit code 2
286
-
287
-
288
-
289
- Gem files will remain installed in
290
-
291
- /var/folders/dw/kmw_z3yn035_rwps2mh1n5q80000gn/T/bundler20210328-34165
292
-
293
- -rzwojsmysql2-0.5.3/gems/mysql2-0.5.3
294
-
295
- for inspection.
296
-
297
- Results logged to
298
-
299
- /var/folders/dw/kmw_z3yn035_rwps2mh1n5q80000gn/T/bundler20210328-34165
300
-
301
- -rzwojsmysql2-0.5.3/extensions/x86_64-darwin-17/3.0.0/mysql2-0.5.3/gem
302
-
303
- _make.out
304
-
305
-
306
-
307
- An error occurred while installing mysql2 (0.5.3), and
308
-
309
-
310
-
311
- Bundler cannot continue.
312
-
313
- Make sure that `gem install mysql2 -v '0.5.3' --source
314
-
315
- 'https://rubygems.org/'` succeeds before bundling.
316
-
317
-
318
-
319
- In Gemfile:
320
-
321
- mysql2
322
-
323
- ```
324
-
325
-
326
-
327
- ```
328
-
329
- $ gem install mysql2
330
-
331
-
332
-
333
- Building native extensions. This could take a while...
334
-
335
- ERROR: Error installing mysql2:
336
-
337
- ERROR: Failed to build gem native extension.
338
-
339
-
340
-
341
- current directory: /Users/masatosankai/.rbenv/versions/3.0.0
342
-
343
- /lib/ruby/gems/3.0.0/gems/mysql2-0.5.3/ext/mysql2
344
-
345
- /Users/masatosankai/.rbenv/versions/3.0.0/bin/ruby -I /Users/mas
346
-
347
- atosankai/.rbenv/versions/3.0.0/lib/ruby/3.0.0 -r ./siteconf2021
348
-
349
- 0328-34496-t0ef0t.rb extconf.rb
350
-
351
- checking for rb_absint_size()... yes
352
-
353
- checking for rb_absint_singlebit_p()... yes
354
-
355
- checking for rb_wait_for_single_fd()... yes
356
-
357
- -----
358
-
359
- Using mysql_config at /usr/local/opt/mysql@5.7/bin/mysql_config
360
-
361
- -----
362
-
363
-
364
-
365
- checking for mysql.h... yes
366
-
367
- checking for errmsg.h... yes
368
-
369
- checking for SSL_MODE_DISABLED in mysql.h... yes
370
-
371
- checking for SSL_MODE_PREFERRED in mysql.h... yes
372
-
373
- checking for SSL_MODE_REQUIRED in mysql.h... yes
374
-
375
- checking for SSL_MODE_VERIFY_CA in mysql.h... yes
376
-
377
- checking for SSL_MODE_VERIFY_IDENTITY in mysql.h... yes
378
-
379
- checking for MYSQL.net.vio in mysql.h... yes
380
-
381
- checking for MYSQL.net.pvio in mysql.h... no
382
-
383
- checking for MYSQL_ENABLE_CLEARTEXT_PLUGIN in mysql.h... yes
384
-
385
- checking for SERVER_QUERY_NO_GOOD_INDEX_USED in mysql.h... yes
386
-
387
- checking for SERVER_QUERY_NO_INDEX_USED in mysql.h... yes
388
-
389
- checking for SERVER_QUERY_WAS_SLOW in mysql.h... yes
390
-
391
- checking for MYSQL_OPTION_MULTI_STATEMENTS_ON in mysql.h... yes
392
-
393
- checking for MYSQL_OPTION_MULTI_STATEMENTS_OFF in mysql.h... yes
394
-
395
- checking for my_bool in mysql.h... yes
396
-
397
- -----
398
-
399
- Don't know how to set rpath on your system, if MySQL libraries a
400
-
401
- re not in path mysql2 may not load
402
-
403
- -----
404
-
405
- -----
406
-
407
- Setting libpath to /usr/local/opt/mysql@5.7/lib
408
-
409
- -----
410
-
411
- creating Makefile
412
-
413
-
414
-
415
- current directory: /Users/masatosankai/.rbenv/versions/3.0.0/lib
416
-
417
- /ruby/gems/3.0.0/gems/mysql2-0.5.3/ext/mysql2
418
-
419
- make "DESTDIR=" clean
420
-
421
-
422
-
423
- current directory: /Users/masatosankai/.rbenv/versions/3.0.0/lib
424
-
425
- /ruby/gems/3.0.0/gems/mysql2-0.5.3/ext/mysql2
426
-
427
- make "DESTDIR="
428
-
429
- compiling client.c
430
-
431
- client.c:787:14: warning: incompatible pointer types passing 'VA
432
-
433
- LUE (void *)' (aka 'unsigned long (void *)') to parameter of typ
434
-
435
- e 'VALUE (*)(VALUE)' (aka 'unsigned long (*)(unsigned long)') [-
436
-
437
- Wincompatible-pointer-types]
438
-
439
- rb_rescue2(do_send_query, (VALUE)&args, disconnect_and_raise,
440
-
441
- self, rb_eException, (VALUE)0);
442
-
443
- ^~~~~~~~~~~~~
444
-
445
- /Users/masatosankai/.rbenv/versions/3.0.0/include/ruby-3.0.0/rub
446
-
447
- y/internal/iterator.h:51:25: note: passing argument to parameter
448
-
449
- here
450
-
451
- VALUE rb_rescue2(VALUE(*)(VALUE),VALUE,VALUE(*)(VALUE,VALUE),VAL
452
-
453
- UE,...);
454
-
455
- ^
456
-
457
- client.c:795:16: warning: incompatible pointer types passing 'VA
458
-
459
- LUE (void *)' (aka 'unsigned long (void *)') to parameter of typ
460
-
461
- e 'VALUE (*)(VALUE)' (aka 'unsigned long (*)(unsigned long)') [-
462
-
463
- Wincompatible-pointer-types]
464
-
465
- rb_rescue2(do_query, (VALUE)&async_args, disconnect_and_rais
466
-
467
- e, self, rb_eException, (VALUE)0);
468
-
469
- ^~~~~~~~
470
-
471
- /Users/masatosankai/.rbenv/versions/3.0.0/include/ruby-3.0.0/rub
472
-
473
- y/internal/iterator.h:51:25: note: passing argument to parameter
474
-
475
- here
476
-
477
- VALUE rb_rescue2(VALUE(*)(VALUE),VALUE,VALUE(*)(VALUE,VALUE),VAL
478
-
479
- UE,...);
480
-
481
- ^
482
-
483
- 2 warnings generated.
484
-
485
- compiling infile.c
486
-
487
- compiling mysql2_ext.c
488
-
489
- compiling result.c
490
-
491
- compiling statement.c
492
-
493
- linking shared-object mysql2/mysql2.bundle
494
-
495
- ld: library not found for -lssl
496
-
497
- clang: error: linker command failed with exit code 1 (use -v to
498
-
499
- see invocation)
500
-
501
- make: *** [mysql2.bundle] Error 1
502
-
503
-
504
-
505
- make failed, exit code 2
506
-
507
-
508
-
509
- Gem files will remain installed in /Users/masatosankai/.rbenv/ve
510
-
511
- rsions/3.0.0/lib/ruby/gems/3.0.0/gems/mysql2-0.5.3 for inspectio
512
-
513
- n.
514
-
515
- Results logged to /Users/masatosankai/.rbenv/versions/3.0.0/lib/
516
-
517
- ruby/gems/3.0.0/extensions/x86_64-darwin-17/3.0.0/mysql2-0.5.3/g
518
-
519
- em_make.out
520
-
521
- ```
522
-
523
-
524
-
525
- ```
526
-
527
- $ gem install mysql2 -v '0.5.3' --source 'https://rubygems.org/'
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

文章の追加。

2021/03/29 06:36

投稿

Marchan4
Marchan4

スコア15

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