質問編集履歴
1
追記しました
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,7 +1,128 @@
|
|
1
1
|
###エラー内容
|
2
2
|
Could not find gem 'mysql2 (>= 0.4.4, < 0.6.0)' in any of the gem sources listed in your Gemfile.
|
3
3
|
Run `bundle install` to install missing gems.
|
4
|
+
### bundle installをすると
|
5
|
+
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`.
|
6
|
+
Fetching gem metadata from https://rubygems.org/............
|
7
|
+
Fetching gem metadata from https://rubygems.org/.
|
8
|
+
Resolving dependencies....
|
9
|
+
Using rake 13.0.1
|
10
|
+
Using concurrent-ruby 1.1.6
|
11
|
+
Using i18n 1.8.3
|
12
|
+
Using minitest 5.14.1
|
13
|
+
Using thread_safe 0.3.6
|
14
|
+
Using tzinfo 1.2.7
|
15
|
+
Using activesupport 5.2.4.3
|
16
|
+
Using builder 3.2.4
|
17
|
+
Using erubi 1.9.0
|
18
|
+
Using mini_portile2 2.4.0
|
19
|
+
Using nokogiri 1.10.9
|
20
|
+
Using rails-dom-testing 2.0.3
|
21
|
+
Using crass 1.0.6
|
22
|
+
Using loofah 2.6.0
|
23
|
+
Using rails-html-sanitizer 1.3.0
|
24
|
+
Using actionview 5.2.4.3
|
25
|
+
Using rack 2.2.3
|
26
|
+
Using rack-test 1.1.0
|
27
|
+
Using actionpack 5.2.4.3
|
28
|
+
Using nio4r 2.5.2
|
29
|
+
Using websocket-extensions 0.1.5
|
30
|
+
Using websocket-driver 0.7.2
|
31
|
+
Using actioncable 5.2.4.3
|
32
|
+
Using globalid 0.4.2
|
33
|
+
Using activejob 5.2.4.3
|
34
|
+
Using mini_mime 1.0.2
|
35
|
+
Using mail 2.7.1
|
36
|
+
Using actionmailer 5.2.4.3
|
37
|
+
Using activemodel 5.2.4.3
|
38
|
+
Using arel 9.0.0
|
39
|
+
Using activerecord 5.2.4.3
|
40
|
+
Using mimemagic 0.3.5
|
41
|
+
Using marcel 0.3.3
|
42
|
+
Using activestorage 5.2.4.3
|
43
|
+
Using bindex 0.8.1
|
44
|
+
Using msgpack 1.3.3
|
45
|
+
Using bootsnap 1.4.6
|
46
|
+
Using bundler 2.1.4
|
47
|
+
Using byebug 11.1.3
|
48
|
+
Using coffee-script-source 1.12.2
|
49
|
+
Using execjs 2.7.0
|
50
|
+
Using coffee-script 2.4.1
|
51
|
+
Using method_source 1.0.0
|
52
|
+
Using thor 1.0.1
|
53
|
+
Using railties 5.2.4.3
|
54
|
+
Using coffee-rails 4.2.2
|
55
|
+
Using ffi 1.13.1
|
56
|
+
Using jbuilder 2.10.0
|
57
|
+
Using rb-fsevent 0.10.4
|
58
|
+
Using rb-inotify 0.10.1
|
59
|
+
Using ruby_dep 1.5.0
|
60
|
+
Using listen 3.1.5
|
61
|
+
Fetching mysql2 0.5.3
|
62
|
+
Installing mysql2 0.5.3 with native extensions
|
63
|
+
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
|
4
64
|
|
65
|
+
current directory: /home/ec2-user/.rvm/gems/ruby-2.6.3/gems/mysql2-0.5.3/ext/mysql2
|
66
|
+
/home/ec2-user/.rvm/rubies/ruby-2.6.3/bin/ruby -I
|
67
|
+
/home/ec2-user/.rvm/rubies/ruby-2.6.3/lib/ruby/site_ruby/2.6.0 -r
|
68
|
+
./siteconf20200623-6737-azqw8f.rb extconf.rb
|
69
|
+
--with-ldflags\=-L/usr/local/opt/openssl/lib
|
70
|
+
checking for rb_absint_size()... yes
|
71
|
+
checking for rb_absint_singlebit_p()... yes
|
72
|
+
checking for rb_wait_for_single_fd()... yes
|
73
|
+
-----
|
74
|
+
Using mysql_config at /usr/bin/mysql_config
|
75
|
+
-----
|
76
|
+
checking for mysql.h... no
|
77
|
+
checking for mysql/mysql.h... no
|
78
|
+
-----
|
79
|
+
mysql.h is missing. You may need to 'sudo apt-get install libmariadb-dev', 'sudo apt-get
|
80
|
+
install libmysqlclient-dev' or 'sudo yum install mysql-devel', and try again.
|
81
|
+
-----
|
82
|
+
*** extconf.rb failed ***
|
83
|
+
Could not create Makefile due to some reason, probably lack of necessary
|
84
|
+
libraries and/or headers. Check the mkmf.log file for more details. You may
|
85
|
+
need configuration options.
|
86
|
+
|
87
|
+
Provided configuration options:
|
88
|
+
--with-opt-dir
|
89
|
+
--without-opt-dir
|
90
|
+
--with-opt-include
|
91
|
+
--without-opt-include=${opt-dir}/include
|
92
|
+
--with-opt-lib
|
93
|
+
--without-opt-lib=${opt-dir}/lib
|
94
|
+
--with-make-prog
|
95
|
+
--without-make-prog
|
96
|
+
--srcdir=.
|
97
|
+
--curdir
|
98
|
+
--ruby=/home/ec2-user/.rvm/rubies/ruby-2.6.3/bin/$(RUBY_BASE_NAME)
|
99
|
+
--with-mysql-dir
|
100
|
+
--without-mysql-dir
|
101
|
+
--with-mysql-include
|
102
|
+
--without-mysql-include=${mysql-dir}/include
|
103
|
+
--with-mysql-lib
|
104
|
+
--without-mysql-lib=${mysql-dir}/lib
|
105
|
+
--with-mysql-config
|
106
|
+
--without-mysql-config
|
107
|
+
|
108
|
+
To see why this extension failed to compile, please check the mkmf.log which can be
|
109
|
+
found here:
|
110
|
+
|
111
|
+
/home/ec2-user/.rvm/gems/ruby-2.6.3/extensions/x86_64-linux/2.6.0/mysql2-0.5.3/mkmf.log
|
112
|
+
|
113
|
+
extconf failed, exit code 1
|
114
|
+
|
115
|
+
Gem files will remain installed in /home/ec2-user/.rvm/gems/ruby-2.6.3/gems/mysql2-0.5.3
|
116
|
+
for inspection.
|
117
|
+
Results logged to
|
118
|
+
/home/ec2-user/.rvm/gems/ruby-2.6.3/extensions/x86_64-linux/2.6.0/mysql2-0.5.3/gem_make.out
|
119
|
+
|
120
|
+
An error occurred while installing mysql2 (0.5.3), and Bundler cannot continue.
|
121
|
+
Make sure that `gem install mysql2 -v '0.5.3' --source 'https://rubygems.org/'` succeeds
|
122
|
+
before bundling.
|
123
|
+
|
124
|
+
In Gemfile:
|
125
|
+
mysql2
|
5
126
|
### 自分がやっていたこと
|
6
127
|
```
|
7
128
|
rails _5.2.2_ new microposts --database=mysql --skip-test
|