質問編集履歴

2

追記しました

2020/06/23 10:04

投稿

kai20000803
kai20000803

スコア29

test CHANGED
File without changes
test CHANGED
@@ -18,7 +18,247 @@
18
18
 
19
19
  ### このエラー文にあるようにbundle installをすると
20
20
 
21
- An error occurred while installing mysql2 (0.5.3), and Bundler cannot continue. Make sure that `gem install mysql2 -v '0.5.3' --source 'https://rubygems.org/'` succeeds before bundling. In Gemfile: mysql2
21
+ 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`.
22
+
23
+ Fetching gem metadata from https://rubygems.org/............
24
+
25
+ Fetching gem metadata from https://rubygems.org/.
26
+
27
+ Resolving dependencies....
28
+
29
+ Using rake 13.0.1
30
+
31
+ Using concurrent-ruby 1.1.6
32
+
33
+ Using i18n 1.8.3
34
+
35
+ Using minitest 5.14.1
36
+
37
+ Using thread_safe 0.3.6
38
+
39
+ Using tzinfo 1.2.7
40
+
41
+ Using activesupport 5.2.4.3
42
+
43
+ Using builder 3.2.4
44
+
45
+ Using erubi 1.9.0
46
+
47
+ Using mini_portile2 2.4.0
48
+
49
+ Using nokogiri 1.10.9
50
+
51
+ Using rails-dom-testing 2.0.3
52
+
53
+ Using crass 1.0.6
54
+
55
+ Using loofah 2.6.0
56
+
57
+ Using rails-html-sanitizer 1.3.0
58
+
59
+ Using actionview 5.2.4.3
60
+
61
+ Using rack 2.2.3
62
+
63
+ Using rack-test 1.1.0
64
+
65
+ Using actionpack 5.2.4.3
66
+
67
+ Using nio4r 2.5.2
68
+
69
+ Using websocket-extensions 0.1.5
70
+
71
+ Using websocket-driver 0.7.2
72
+
73
+ Using actioncable 5.2.4.3
74
+
75
+ Using globalid 0.4.2
76
+
77
+ Using activejob 5.2.4.3
78
+
79
+ Using mini_mime 1.0.2
80
+
81
+ Using mail 2.7.1
82
+
83
+ Using actionmailer 5.2.4.3
84
+
85
+ Using activemodel 5.2.4.3
86
+
87
+ Using arel 9.0.0
88
+
89
+ Using activerecord 5.2.4.3
90
+
91
+ Using mimemagic 0.3.5
92
+
93
+ Using marcel 0.3.3
94
+
95
+ Using activestorage 5.2.4.3
96
+
97
+ Using bindex 0.8.1
98
+
99
+ Using msgpack 1.3.3
100
+
101
+ Using bootsnap 1.4.6
102
+
103
+ Using bundler 2.1.4
104
+
105
+ Using byebug 11.1.3
106
+
107
+ Using coffee-script-source 1.12.2
108
+
109
+ Using execjs 2.7.0
110
+
111
+ Using coffee-script 2.4.1
112
+
113
+ Using method_source 1.0.0
114
+
115
+ Using thor 1.0.1
116
+
117
+ Using railties 5.2.4.3
118
+
119
+ Using coffee-rails 4.2.2
120
+
121
+ Using ffi 1.13.1
122
+
123
+ Using jbuilder 2.10.0
124
+
125
+ Using rb-fsevent 0.10.4
126
+
127
+ Using rb-inotify 0.10.1
128
+
129
+ Using ruby_dep 1.5.0
130
+
131
+ Using listen 3.1.5
132
+
133
+ Fetching mysql2 0.5.3
134
+
135
+ Installing mysql2 0.5.3 with native extensions
136
+
137
+ Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
138
+
139
+
140
+
141
+ current directory: /home/ec2-user/.rvm/gems/ruby-2.6.3/gems/mysql2-0.5.3/ext/mysql2
142
+
143
+ /home/ec2-user/.rvm/rubies/ruby-2.6.3/bin/ruby -I
144
+
145
+ /home/ec2-user/.rvm/rubies/ruby-2.6.3/lib/ruby/site_ruby/2.6.0 -r
146
+
147
+ ./siteconf20200623-6737-azqw8f.rb extconf.rb
148
+
149
+ --with-ldflags\=-L/usr/local/opt/openssl/lib
150
+
151
+ checking for rb_absint_size()... yes
152
+
153
+ checking for rb_absint_singlebit_p()... yes
154
+
155
+ checking for rb_wait_for_single_fd()... yes
156
+
157
+ -----
158
+
159
+ Using mysql_config at /usr/bin/mysql_config
160
+
161
+ -----
162
+
163
+ checking for mysql.h... no
164
+
165
+ checking for mysql/mysql.h... no
166
+
167
+ -----
168
+
169
+ mysql.h is missing. You may need to 'sudo apt-get install libmariadb-dev', 'sudo apt-get
170
+
171
+ install libmysqlclient-dev' or 'sudo yum install mysql-devel', and try again.
172
+
173
+ -----
174
+
175
+ *** extconf.rb failed ***
176
+
177
+ Could not create Makefile due to some reason, probably lack of necessary
178
+
179
+ libraries and/or headers. Check the mkmf.log file for more details. You may
180
+
181
+ need configuration options.
182
+
183
+
184
+
185
+ Provided configuration options:
186
+
187
+ --with-opt-dir
188
+
189
+ --without-opt-dir
190
+
191
+ --with-opt-include
192
+
193
+ --without-opt-include=${opt-dir}/include
194
+
195
+ --with-opt-lib
196
+
197
+ --without-opt-lib=${opt-dir}/lib
198
+
199
+ --with-make-prog
200
+
201
+ --without-make-prog
202
+
203
+ --srcdir=.
204
+
205
+ --curdir
206
+
207
+ --ruby=/home/ec2-user/.rvm/rubies/ruby-2.6.3/bin/$(RUBY_BASE_NAME)
208
+
209
+ --with-mysql-dir
210
+
211
+ --without-mysql-dir
212
+
213
+ --with-mysql-include
214
+
215
+ --without-mysql-include=${mysql-dir}/include
216
+
217
+ --with-mysql-lib
218
+
219
+ --without-mysql-lib=${mysql-dir}/lib
220
+
221
+ --with-mysql-config
222
+
223
+ --without-mysql-config
224
+
225
+
226
+
227
+ To see why this extension failed to compile, please check the mkmf.log which can be
228
+
229
+ found here:
230
+
231
+
232
+
233
+ /home/ec2-user/.rvm/gems/ruby-2.6.3/extensions/x86_64-linux/2.6.0/mysql2-0.5.3/mkmf.log
234
+
235
+
236
+
237
+ extconf failed, exit code 1
238
+
239
+
240
+
241
+ Gem files will remain installed in /home/ec2-user/.rvm/gems/ruby-2.6.3/gems/mysql2-0.5.3
242
+
243
+ for inspection.
244
+
245
+ Results logged to
246
+
247
+ /home/ec2-user/.rvm/gems/ruby-2.6.3/extensions/x86_64-linux/2.6.0/mysql2-0.5.3/gem_make.out
248
+
249
+
250
+
251
+ An error occurred while installing mysql2 (0.5.3), and Bundler cannot continue.
252
+
253
+ Make sure that `gem install mysql2 -v '0.5.3' --source 'https://rubygems.org/'` succeeds
254
+
255
+ before bundling.
256
+
257
+
258
+
259
+ In Gemfile:
260
+
261
+ mysql2
22
262
 
23
263
  となってしまいます
24
264
 

1

内容の追記

2020/06/23 10:04

投稿

kai20000803
kai20000803

スコア29

test CHANGED
File without changes
test CHANGED
@@ -13,3 +13,15 @@
13
13
  ### 何をしたのか
14
14
 
15
15
  rails s をするとこうなりました
16
+
17
+
18
+
19
+ ### このエラー文にあるようにbundle installをすると
20
+
21
+ An error occurred while installing mysql2 (0.5.3), and Bundler cannot continue. Make sure that `gem install mysql2 -v '0.5.3' --source 'https://rubygems.org/'` succeeds before bundling. In Gemfile: mysql2
22
+
23
+ となってしまいます
24
+
25
+ 初心者なので対処法がわかりません
26
+
27
+ お願いします