質問編集履歴
2
「自分で試したこと」の部分の変更
title
CHANGED
File without changes
|
body
CHANGED
@@ -8,6 +8,7 @@
|
|
8
8
|
|
9
9
|
```
|
10
10
|
$ ruby -v
|
11
|
+
|
11
12
|
ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x86_64-darwin17]
|
12
13
|
```
|
13
14
|
|
@@ -15,6 +16,7 @@
|
|
15
16
|
|
16
17
|
```
|
17
18
|
$ mysql --version
|
19
|
+
|
18
20
|
mysql Ver 14.14 Distrib 5.7.32, for osx10.16 (x86_64) using EditLine wr
|
19
21
|
apper
|
20
22
|
```
|
@@ -23,6 +25,7 @@
|
|
23
25
|
|
24
26
|
```
|
25
27
|
$ brew -v
|
28
|
+
|
26
29
|
Homebrew 3.0.5
|
27
30
|
Homebrew/homebrew-core (git revision f376c69429; last commit 2021-03-15)
|
28
31
|
Homebrew/homebrew-cask (git revision 83abe76d01; last commit 2021-03-15)
|
@@ -36,246 +39,230 @@
|
|
36
39
|
Fetching gem metadata from https://rubygems.org/.
|
37
40
|
Using bundler 2.2.3
|
38
41
|
Following files may not be writable, so sudo is needed:
|
39
|
-
/Users/
|
42
|
+
/Users/ユーザ名/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/build_info/mysql2-0.5
|
40
|
-
|
43
|
+
.3.info
|
41
44
|
Fetching mysql2 0.5.3
|
42
45
|
|
43
46
|
|
47
|
+
|
44
48
|
Your user account isn't allowed to install to the system RubyGems.
|
45
49
|
You can cancel this installation and run:
|
46
50
|
|
47
51
|
bundle config set --local path 'vendor/bundle'
|
48
52
|
bundle install
|
49
53
|
|
50
|
-
to install the gems into ./vendor/bundle/, or you can enter your
|
54
|
+
to install the gems into ./vendor/bundle/, or you can enter your password
|
51
|
-
sword
|
52
55
|
and install the bundled gems to RubyGems using sudo.
|
53
56
|
|
54
57
|
Password:
|
55
58
|
Installing mysql2 0.5.3 with native extensions
|
59
|
+
Bundle complete! 1 Gemfile dependency, 2 gems now installed.
|
56
|
-
|
60
|
+
Use `bundle info [gemname]` to see where a bundled gem is installed.
|
61
|
+
```
|
57
62
|
|
58
|
-
current directory:
|
59
|
-
/var/folders/dw/kmw_z3yn035_rwps2mh1n5q80000gn/T/bundler20210328-34165
|
60
|
-
-rzwojsmysql2-0.5.3/gems/mysql2-0.5.3/ext/mysql2
|
61
|
-
/Users/masatosankai/.rbenv/versions/3.0.0/bin/ruby -I
|
62
|
-
/Users/masatosankai/.rbenv/versions/3.0.0/lib/ruby/3.0.0 -r
|
63
|
-
./siteconf20210328-34165-nxc9bm.rb extconf.rb
|
64
|
-
checking for rb_absint_size()... yes
|
65
|
-
checking for rb_absint_singlebit_p()... yes
|
66
|
-
checking for rb_wait_for_single_fd()... yes
|
67
|
-
|
63
|
+
```
|
68
|
-
Using mysql_config at /usr/local/opt/mysql@5.7/bin/mysql_config
|
69
|
-
-----
|
70
|
-
checking for mysql.h... yes
|
71
|
-
checking for errmsg.h... yes
|
72
|
-
checking for SSL_MODE_DISABLED in mysql.h... yes
|
73
|
-
checking for SSL_MODE_PREFERRED in mysql.h... yes
|
74
|
-
checking for SSL_MODE_REQUIRED in mysql.h... yes
|
75
|
-
checking for SSL_MODE_VERIFY_CA in mysql.h... yes
|
76
|
-
checking for SSL_MODE_VERIFY_IDENTITY in mysql.h... yes
|
77
|
-
checking for MYSQL.net.vio in mysql.h... yes
|
78
|
-
checking for MYSQL.net.pvio in mysql.h... no
|
79
|
-
checking for MYSQL_ENABLE_CLEARTEXT_PLUGIN in mysql.h... yes
|
80
|
-
checking for SERVER_QUERY_NO_GOOD_INDEX_USED in mysql.h... yes
|
81
|
-
checking for SERVER_QUERY_NO_INDEX_USED in mysql.h... yes
|
82
|
-
checking for SERVER_QUERY_WAS_SLOW in mysql.h... yes
|
83
|
-
checking for MYSQL_OPTION_MULTI_STATEMENTS_ON in mysql.h... yes
|
84
|
-
checking for MYSQL_OPTION_MULTI_STATEMENTS_OFF in mysql.h... yes
|
85
|
-
checking for my_bool in mysql.h... yes
|
86
|
-
-----
|
87
|
-
Don't know how to set rpath on your system, if MySQL libraries are not
|
88
|
-
|
64
|
+
$ brew install openssl@1.1
|
89
|
-
-----
|
90
|
-
-----
|
91
|
-
Setting libpath to /usr/local/opt/mysql@5.7/lib
|
92
|
-
-----
|
93
|
-
creating Makefile
|
94
65
|
|
66
|
+
Error: openssl@1.1 1.1.1j is already installed.
|
95
|
-
|
67
|
+
To upgrade to 1.1.1k, run:
|
96
|
-
/var/folders/dw/kmw_z3yn035_rwps2mh1n5q80000gn/T/bundler20210328-34165
|
97
|
-
-rzwojsmysql2-0.5.3/gems/mysql2-0.5.3/ext/mysql2
|
98
|
-
|
68
|
+
brew upgrade openssl@1.1
|
69
|
+
```
|
99
70
|
|
100
|
-
|
71
|
+
```
|
101
|
-
/var/folders/dw/kmw_z3yn035_rwps2mh1n5q80000gn/T/bundler20210328-34165
|
102
|
-
-rzwojsmysql2-0.5.3/gems/mysql2-0.5.3/ext/mysql2
|
103
|
-
make "DESTDIR="
|
104
|
-
compiling client.c
|
105
|
-
client.c:787:14: warning: incompatible pointer types passing 'VALUE
|
106
|
-
(void *)' (aka 'unsigned long (void *)') to parameter of type 'VALUE
|
107
|
-
(*)(VALUE)' (aka 'unsigned long (*)(unsigned long)')
|
108
|
-
[-Wincompatible-pointer-types]
|
109
|
-
rb_rescue2(do_send_query, (VALUE)&args, disconnect_and_raise, self,
|
110
|
-
|
72
|
+
$ brew upgrade openssl@1.1
|
111
|
-
^~~~~~~~~~~~~
|
112
|
-
/Users/masatosankai/.rbenv/versions/3.0.0/include/ruby-3.0.0/ruby/inte
|
113
|
-
rnal/iterator.h:51:25:
|
114
|
-
note: passing argument to parameter here
|
115
|
-
VALUE
|
116
|
-
rb_rescue2(VALUE(*)(VALUE),VALUE,VALUE(*)(VALUE,VALUE),VALUE,...);
|
117
|
-
^
|
118
|
-
client.c:795:16: warning: incompatible pointer types passing 'VALUE
|
119
|
-
(void *)' (aka 'unsigned long (void *)') to parameter of type 'VALUE
|
120
|
-
(*)(VALUE)' (aka 'unsigned long (*)(unsigned long)')
|
121
|
-
[-Wincompatible-pointer-types]
|
122
|
-
rb_rescue2(do_query, (VALUE)&async_args, disconnect_and_raise,
|
123
|
-
self, rb_eException, (VALUE)0);
|
124
|
-
^~~~~~~~
|
125
|
-
/Users/masatosankai/.rbenv/versions/3.0.0/include/ruby-3.0.0/ruby/inte
|
126
|
-
rnal/iterator.h:51:25:
|
127
|
-
note: passing argument to parameter here
|
128
|
-
VALUE
|
129
|
-
rb_rescue2(VALUE(*)(VALUE),VALUE,VALUE(*)(VALUE,VALUE),VALUE,...);
|
130
|
-
^
|
131
73
|
|
132
|
-
2 warnings generated.
|
133
|
-
compiling infile.c
|
134
|
-
compiling mysql2_ext.c
|
135
|
-
compiling result.c
|
136
|
-
compiling statement.c
|
137
|
-
linking shared-object mysql2/mysql2.bundle
|
138
|
-
|
74
|
+
==> Upgrading 1 outdated package:
|
75
|
+
openssl@1.1 1.1.1j -> 1.1.1k
|
76
|
+
==> Upgrading openssl@1.1 1.1.1j -> 1.1.1k
|
77
|
+
==> Downloading https://homebrew.bintray.com/bottles/openssl%401.1-1.1.1k.big_sur.bot
|
78
|
+
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/17d94c51ddfa8364baed5f3a75
|
79
|
+
######################################################################## 100.0%
|
80
|
+
==> Pouring openssl@1.1-1.1.1k.big_sur.bottle.tar.gz
|
81
|
+
==> Regenerating CA certificate bundle from keychain, this may take a while...
|
82
|
+
==> Caveats
|
139
|
-
|
83
|
+
A CA file has been bootstrapped using certificates from the system
|
140
|
-
invocation)
|
141
|
-
|
84
|
+
keychain. To add additional certificates, place .pem files in
|
85
|
+
/usr/local/etc/openssl@1.1/certs
|
142
86
|
|
143
|
-
make failed, exit code 2
|
144
87
|
|
145
|
-
|
88
|
+
and run
|
146
|
-
/
|
89
|
+
/usr/local/opt/openssl@1.1/bin/c_rehash
|
147
|
-
-rzwojsmysql2-0.5.3/gems/mysql2-0.5.3
|
148
|
-
for inspection.
|
149
|
-
Results logged to
|
150
|
-
/var/folders/dw/kmw_z3yn035_rwps2mh1n5q80000gn/T/bundler20210328-34165
|
151
|
-
-rzwojsmysql2-0.5.3/extensions/x86_64-darwin-17/3.0.0/mysql2-0.5.3/gem
|
152
|
-
_make.out
|
153
90
|
|
154
|
-
|
91
|
+
openssl@1.1 is keg-only, which means it was not symlinked into /usr/local,
|
92
|
+
because macOS provides LibreSSL.
|
155
93
|
|
156
|
-
Bundler cannot continue.
|
157
|
-
|
94
|
+
If you need to have openssl@1.1 first in your PATH, run:
|
158
|
-
'
|
95
|
+
echo 'export PATH="/usr/local/opt/openssl@1.1/bin:$PATH"' >> /Users/ユーザ名/.b
|
96
|
+
ash_profile
|
159
97
|
|
98
|
+
For compilers to find openssl@1.1 you may need to set:
|
99
|
+
export LDFLAGS="-L/usr/local/opt/openssl@1.1/lib"
|
100
|
+
export CPPFLAGS="-I/usr/local/opt/openssl@1.1/include"
|
101
|
+
|
102
|
+
For pkg-config to find openssl@1.1 you may need to set:
|
103
|
+
export PKG_CONFIG_PATH="/usr/local/opt/openssl@1.1/lib/pkgconfig"
|
104
|
+
|
160
|
-
|
105
|
+
==> Summary
|
106
|
+
???? /usr/local/Cellar/openssl@1.1/1.1.1k: 8,071 files, 18.5MB
|
107
|
+
Removing: /usr/local/Cellar/openssl@1.1/1.1.1j... (8,071 files, 18.5MB)
|
108
|
+
Removing: /Users/ユーザ名/Library/Caches/Homebrew/openssl@1.1--1.1.1j.big_sur.bot
|
161
|
-
|
109
|
+
tle.tar.gz... (5.4MB)
|
162
110
|
```
|
163
111
|
|
164
112
|
```
|
165
|
-
$
|
113
|
+
$ brew install openssl@1.1
|
166
114
|
|
167
|
-
|
115
|
+
Warning: openssl@1.1 1.1.1k is already installed and up-to-date.
|
116
|
+
To reinstall 1.1.1k, run:
|
168
|
-
|
117
|
+
brew reinstall openssl@1.1
|
169
|
-
|
118
|
+
```
|
170
119
|
|
171
|
-
|
120
|
+
```
|
172
|
-
/lib/ruby/gems/3.0.0/gems/mysql2-0.5.3/ext/mysql2
|
173
|
-
/Users/masatosankai/.rbenv/versions/3.0.0/bin/ruby -I /Users/mas
|
174
|
-
atosankai/.rbenv/versions/3.0.0/lib/ruby/3.0.0 -r ./siteconf2021
|
175
|
-
|
121
|
+
$ brew reinstall openssl@1.1
|
176
|
-
checking for rb_absint_size()... yes
|
177
|
-
checking for rb_absint_singlebit_p()... yes
|
178
|
-
checking for rb_wait_for_single_fd()... yes
|
179
|
-
-----
|
180
|
-
Using mysql_config at /usr/local/opt/mysql@5.7/bin/mysql_config
|
181
|
-
-----
|
182
122
|
|
123
|
+
==> Downloading https://homebrew.bintray.com/bottles/openssl%401.1-1.1.1k.big_sur.bot
|
124
|
+
Already downloaded: /Users/ユーザ名/Library/Caches/Homebrew/downloads/fae83f76186
|
125
|
+
7e592ca8209f4cf851a681825ea9a2b5af870b9237aa35ca1ef0f--openssl@1.1-1.1.1k.big_sur.bot
|
126
|
+
tle.tar.gz
|
183
|
-
|
127
|
+
==> Reinstalling openssl@1.1
|
184
|
-
checking for errmsg.h... yes
|
185
|
-
checking for SSL_MODE_DISABLED in mysql.h... yes
|
186
|
-
checking for SSL_MODE_PREFERRED in mysql.h... yes
|
187
|
-
checking for SSL_MODE_REQUIRED in mysql.h... yes
|
188
|
-
checking for SSL_MODE_VERIFY_CA in mysql.h... yes
|
189
|
-
checking for SSL_MODE_VERIFY_IDENTITY in mysql.h... yes
|
190
|
-
|
128
|
+
==> Pouring openssl@1.1-1.1.1k.big_sur.bottle.tar.gz
|
191
|
-
checking for MYSQL.net.pvio in mysql.h... no
|
192
|
-
checking for MYSQL_ENABLE_CLEARTEXT_PLUGIN in mysql.h... yes
|
193
|
-
checking for SERVER_QUERY_NO_GOOD_INDEX_USED in mysql.h... yes
|
194
|
-
checking for SERVER_QUERY_NO_INDEX_USED in mysql.h... yes
|
195
|
-
checking for SERVER_QUERY_WAS_SLOW in mysql.h... yes
|
196
|
-
checking for MYSQL_OPTION_MULTI_STATEMENTS_ON in mysql.h... yes
|
197
|
-
checking for MYSQL_OPTION_MULTI_STATEMENTS_OFF in mysql.h... yes
|
198
|
-
checking for my_bool in mysql.h... yes
|
199
|
-
-----
|
200
|
-
|
129
|
+
==> Regenerating CA certificate bundle from keychain, this may take a while...
|
130
|
+
==> Caveats
|
131
|
+
A CA file has been bootstrapped using certificates from the system
|
201
|
-
|
132
|
+
keychain. To add additional certificates, place .pem files in
|
202
|
-
-----
|
203
|
-
-----
|
204
|
-
|
133
|
+
/usr/local/etc/openssl@1.1/certs
|
205
|
-
-----
|
206
|
-
creating Makefile
|
207
134
|
|
208
|
-
current directory: /Users/masatosankai/.rbenv/versions/3.0.0/lib
|
209
|
-
/ruby/gems/3.0.0/gems/mysql2-0.5.3/ext/mysql2
|
210
|
-
make "DESTDIR=" clean
|
211
135
|
|
212
|
-
|
136
|
+
and run
|
213
|
-
/
|
137
|
+
/usr/local/opt/openssl@1.1/bin/c_rehash
|
214
|
-
make "DESTDIR="
|
215
|
-
compiling client.c
|
216
|
-
client.c:787:14: warning: incompatible pointer types passing 'VA
|
217
|
-
LUE (void *)' (aka 'unsigned long (void *)') to parameter of typ
|
218
|
-
e 'VALUE (*)(VALUE)' (aka 'unsigned long (*)(unsigned long)') [-
|
219
|
-
Wincompatible-pointer-types]
|
220
|
-
rb_rescue2(do_send_query, (VALUE)&args, disconnect_and_raise,
|
221
|
-
self, rb_eException, (VALUE)0);
|
222
|
-
^~~~~~~~~~~~~
|
223
|
-
/Users/masatosankai/.rbenv/versions/3.0.0/include/ruby-3.0.0/rub
|
224
|
-
y/internal/iterator.h:51:25: note: passing argument to parameter
|
225
|
-
here
|
226
|
-
VALUE rb_rescue2(VALUE(*)(VALUE),VALUE,VALUE(*)(VALUE,VALUE),VAL
|
227
|
-
UE,...);
|
228
|
-
^
|
229
|
-
client.c:795:16: warning: incompatible pointer types passing 'VA
|
230
|
-
LUE (void *)' (aka 'unsigned long (void *)') to parameter of typ
|
231
|
-
e 'VALUE (*)(VALUE)' (aka 'unsigned long (*)(unsigned long)') [-
|
232
|
-
Wincompatible-pointer-types]
|
233
|
-
rb_rescue2(do_query, (VALUE)&async_args, disconnect_and_rais
|
234
|
-
e, self, rb_eException, (VALUE)0);
|
235
|
-
^~~~~~~~
|
236
|
-
/Users/masatosankai/.rbenv/versions/3.0.0/include/ruby-3.0.0/rub
|
237
|
-
y/internal/iterator.h:51:25: note: passing argument to parameter
|
238
|
-
here
|
239
|
-
VALUE rb_rescue2(VALUE(*)(VALUE),VALUE,VALUE(*)(VALUE,VALUE),VAL
|
240
|
-
UE,...);
|
241
|
-
^
|
242
|
-
2 warnings generated.
|
243
|
-
compiling infile.c
|
244
|
-
compiling mysql2_ext.c
|
245
|
-
compiling result.c
|
246
|
-
compiling statement.c
|
247
|
-
linking shared-object mysql2/mysql2.bundle
|
248
|
-
ld: library not found for -lssl
|
249
|
-
clang: error: linker command failed with exit code 1 (use -v to
|
250
|
-
see invocation)
|
251
|
-
make: *** [mysql2.bundle] Error 1
|
252
138
|
|
139
|
+
openssl@1.1 is keg-only, which means it was not symlinked into /usr/local,
|
253
|
-
|
140
|
+
because macOS provides LibreSSL.
|
254
141
|
|
255
|
-
|
142
|
+
If you need to have openssl@1.1 first in your PATH, run:
|
256
|
-
|
143
|
+
echo 'export PATH="/usr/local/opt/openssl@1.1/bin:$PATH"' >> /Users/ユーザ名/.b
|
257
|
-
|
144
|
+
ash_profile
|
145
|
+
|
146
|
+
For compilers to find openssl@1.1 you may need to set:
|
258
|
-
|
147
|
+
export LDFLAGS="-L/usr/local/opt/openssl@1.1/lib"
|
148
|
+
export CPPFLAGS="-I/usr/local/opt/openssl@1.1/include"
|
149
|
+
|
150
|
+
For pkg-config to find openssl@1.1 you may need to set:
|
151
|
+
export PKG_CONFIG_PATH="/usr/local/opt/openssl@1.1/lib/pkgconfig"
|
152
|
+
|
153
|
+
==> Summary
|
259
|
-
|
154
|
+
???? /usr/local/Cellar/openssl@1.1/1.1.1k: 8,071 files, 18.5MB
|
260
|
-
em_make.out
|
261
155
|
```
|
262
156
|
|
263
157
|
```
|
264
|
-
$ gem install mysql2 -
|
158
|
+
$ gem install mysql2 -- --with-cppflags=-I/usr/l
|
159
|
+
ocal/opt/openssl@1.1/include --with-ldflags=-L/usr/local/opt/openssl@1.1/lib
|
265
160
|
|
161
|
+
Building native extensions with: '--with-cppflags=-I/usr/local/opt/openssl@1.1/includ
|
162
|
+
e --with-ldflags=-L/usr/local/opt/openssl@1.1/lib'
|
266
|
-
|
163
|
+
This could take a while...
|
267
|
-
ERROR: Error installing mysql2:
|
268
|
-
|
164
|
+
ERROR: While executing gem ... (Errno::EACCES)
|
165
|
+
Permission denied @ rb_sysopen - /Users/ユーザ名/.rbenv/versions/3.0.0/lib/ru
|
166
|
+
by/gems/3.0.0/build_info/mysql2-0.5.3.info
|
167
|
+
```
|
269
168
|
|
270
|
-
current directory: /Users/masatosankai/.rbenv/versions/3.0.0/lib/ruby
|
271
|
-
/gems/3.0.0/gems/mysql2-0.5.3/ext/mysql2
|
272
|
-
/Users/masatosankai/.rbenv/versions/3.0.0/bin/ruby -I /Users/masatosankai
|
273
|
-
/.rbenv/versions/3.0.0/lib/ruby/3.0.0 -r ./siteconf20210328-34853-lzd1f4.
|
274
|
-
|
169
|
+
```
|
275
|
-
|
170
|
+
$ brew info openssl@1.1
|
276
|
-
checking for rb_absint_singlebit_p()... yes
|
277
|
-
checking for rb_wait_for_single_fd()... yes
|
278
|
-
-----
|
279
|
-
Using mysql_config at /usr/local/opt/mysql@5.7/bin/mysql_config
|
280
171
|
|
172
|
+
openssl@1.1: stable 1.1.1k (bottled) [keg-only]
|
173
|
+
Cryptography and SSL/TLS Toolkit
|
174
|
+
https://openssl.org/
|
175
|
+
/usr/local/Cellar/openssl@1.1/1.1.1k (8,071 files, 18.5MB)
|
176
|
+
Poured from bottle on 2021-03-29 at 14:37:20
|
177
|
+
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/openssl@1.1.rb
|
178
|
+
License: OpenSSL
|
179
|
+
==> Caveats
|
180
|
+
A CA file has been bootstrapped using certificates from the system
|
181
|
+
keychain. To add additional certificates, place .pem files in
|
182
|
+
/usr/local/etc/openssl@1.1/certs
|
183
|
+
|
184
|
+
|
185
|
+
and run
|
186
|
+
/usr/local/opt/openssl@1.1/bin/c_rehash
|
187
|
+
|
188
|
+
openssl@1.1 is keg-only, which means it was not symlinked into /usr/local,
|
189
|
+
because macOS provides LibreSSL.
|
190
|
+
|
191
|
+
If you need to have openssl@1.1 first in your PATH, run:
|
192
|
+
echo 'export PATH="/usr/local/opt/openssl@1.1/bin:$PATH"' >> /Users/ユーザ名/.b
|
193
|
+
ash_profile
|
194
|
+
|
195
|
+
For compilers to find openssl@1.1 you may need to set:
|
196
|
+
export LDFLAGS="-L/usr/local/opt/openssl@1.1/lib"
|
197
|
+
export CPPFLAGS="-I/usr/local/opt/openssl@1.1/include"
|
198
|
+
|
199
|
+
For pkg-config to find openssl@1.1 you may need to set:
|
200
|
+
export PKG_CONFIG_PATH="/usr/local/opt/openssl@1.1/lib/pkgconfig"
|
201
|
+
|
202
|
+
==> Analytics
|
203
|
+
install: 841,099 (30 days), 2,355,026 (90 days), 8,918,368 (365 days)
|
204
|
+
install-on-request: 73,357 (30 days), 317,809 (90 days), 1,268,061 (365 days)
|
205
|
+
build-error: 0 (30 days)
|
206
|
+
```
|
207
|
+
|
208
|
+
```
|
209
|
+
$ bundle config --local build.mysql2 "--with-cpp
|
210
|
+
|
211
|
+
flags=-I/usr/local/opt/openssl@1.1/include --with-ldflags=-L/usr/local/opt/openssl@1.
|
212
|
+
1/lib"
|
213
|
+
|
214
|
+
You are replacing the current local value of build.mysql2, which is currently "--with
|
215
|
+
-ldflags=-L/usr/local/opt/openssl@1.1/lib --with-cppflags=-I/usr/local/opt/openssl@1.
|
216
|
+
1/include"
|
217
|
+
```
|
218
|
+
|
219
|
+
```
|
220
|
+
$ bundle install
|
221
|
+
|
222
|
+
Fetching gem metadata from https://rubygems.org/.
|
223
|
+
Using bundler 2.2.3
|
224
|
+
Following files may not be writable, so sudo is needed:
|
225
|
+
/Users/ユーザ名/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/build_info/mysql2-0.5
|
226
|
+
.3.info
|
227
|
+
Fetching mysql2 0.5.3
|
228
|
+
|
229
|
+
|
230
|
+
Your user account isn't allowed to install to the system RubyGems.
|
231
|
+
You can cancel this installation and run:
|
232
|
+
|
233
|
+
bundle config set --local path 'vendor/bundle'
|
234
|
+
bundle install
|
235
|
+
|
236
|
+
to install the gems into ./vendor/bundle/, or you can enter your password
|
237
|
+
and install the bundled gems to RubyGems using sudo.
|
238
|
+
|
239
|
+
|
240
|
+
Password:
|
241
|
+
|
242
|
+
|
243
|
+
Your user account isn't allowed to install to the system RubyGems.
|
244
|
+
You can cancel this installation and run:
|
245
|
+
|
246
|
+
bundle config set --local path 'vendor/bundle'
|
247
|
+
bundle install
|
248
|
+
|
249
|
+
to install the gems into ./vendor/bundle/, or you can enter your password
|
250
|
+
and install the bundled gems to RubyGems using sudo.
|
251
|
+
|
252
|
+
Password:
|
253
|
+
Installing mysql2 0.5.3 with native extensions
|
254
|
+
Bundle complete! 1 Gemfile dependency, 2 gems now installed.
|
255
|
+
Use `bundle info [gemname]` to see where a bundled gem is installed.
|
256
|
+
```
|
257
|
+
|
258
|
+
```
|
259
|
+
$ bundle install
|
260
|
+
|
261
|
+
Using bundler 2.2.3
|
262
|
+
Using mysql2 0.5.3
|
263
|
+
Following files may not be writable, so sudo is needed:
|
264
|
+
/Users/ユーザ名/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/build_info/mysql2-0.5
|
265
|
+
.3.info
|
266
|
+
Bundle complete! 1 Gemfile dependency, 2 gems now installed.
|
267
|
+
Use `bundle info [gemname]` to see where a bundled gem is installed.
|
281
268
|
```
|
1
文章の追加。
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
使用環境はrubyバージョン3.0.0, mysqlバージョン5.7, bundlerバージョン2.2.3です。
|
2
|
+
使用機器macOS Big Sur バージョン11.2.2です。使用中のテキストエディタはAtomです。
|
3
|
+
|
4
|
+
|
1
5
|
rbenvを使って``ruby 3.0.0``をインストールしたり、Homebrewを使って(brewコマンドを使って)``mysql 5.7 ``をインストールした場合、どのようなコマンドを入力すればよいのでしょうか。
|
2
6
|
|
3
7
|
rubyの現在のバージョンは以下の通りです。
|