質問編集履歴
5
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -126,9 +126,21 @@
|
|
126
126
|
|
127
127
|
|
128
128
|
|
129
|
+
$ brew info openssl
|
130
|
+
|
131
|
+
...
|
132
|
+
|
133
|
+
For compilers to find openssl you may need to set:
|
134
|
+
|
135
|
+
export LDFLAGS="-L/usr/local/opt/openssl/lib"
|
136
|
+
|
137
|
+
export CPPFLAGS="-I/usr/local/opt/openssl/include"
|
138
|
+
|
139
|
+
|
140
|
+
|
129
141
|
#パスを通す
|
130
142
|
|
131
|
-
$ bundle config --local build.mysql2 "--with-ldflags=-L/usr/local/opt/openssl/lib --with-cppflags=-I/usr/local/opt/openssl/
|
143
|
+
$ bundle config --local build.mysql2 "--with-ldflags=-L/usr/local/opt/openssl/lib --with-cppflags=-I/usr/local/opt/openssl/include"
|
132
144
|
|
133
145
|
```
|
134
146
|
|
4
追記
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
mysql2 のインストールでコケる
|
1
|
+
mysql2 のインストールでコケる(未解決です)
|
test
CHANGED
File without changes
|
3
文字の修正をしました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -128,7 +128,7 @@
|
|
128
128
|
|
129
129
|
#パスを通す
|
130
130
|
|
131
|
-
bundle config --local build.mysql2 "--with-ldflags=-L/usr/local/opt/openssl/lib --with-cppflags=-I/usr/local/opt/openssl/bin/openssl"
|
131
|
+
$ bundle config --local build.mysql2 "--with-ldflags=-L/usr/local/opt/openssl/lib --with-cppflags=-I/usr/local/opt/openssl/bin/openssl"
|
132
132
|
|
133
133
|
```
|
134
134
|
|
2
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -106,8 +106,36 @@
|
|
106
106
|
|
107
107
|
```
|
108
108
|
|
109
|
+
|
110
|
+
|
111
|
+
### 追記
|
112
|
+
|
109
|
-
|
113
|
+
Opensslのパッケージをインストールしてみました。
|
114
|
+
|
115
|
+
```terminal
|
116
|
+
|
117
|
+
$ openssl version
|
118
|
+
|
119
|
+
OpenSSL 1.0.2t 10 Sep 2019
|
110
120
|
|
111
121
|
|
112
122
|
|
123
|
+
$ which openssl
|
124
|
+
|
125
|
+
/usr/local/opt/openssl/bin/openssl
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
#パスを通す
|
130
|
+
|
131
|
+
bundle config --local build.mysql2 "--with-ldflags=-L/usr/local/opt/openssl/lib --with-cppflags=-I/usr/local/opt/openssl/bin/openssl"
|
132
|
+
|
133
|
+
```
|
134
|
+
|
135
|
+
追記内容を実行したのですが、エラー内容は未だに変わりません。
|
136
|
+
|
137
|
+
もしかすると、パスの通し方が間違っているのでしょうか?
|
138
|
+
|
139
|
+
|
140
|
+
|
113
|
-
|
141
|
+
解決策をご存知の方がおられましたら、ご教授いただけますと幸いです。
|
1
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,4 +1,14 @@
|
|
1
1
|
タイトルにもありますが,mysql2をGemfileに記載し、「bundle install」をかけた際、以下のようなエラーが発生しました。ググりまくったのですが解決できなかったため、質問をさせていただきました。以下には現在の状況や考えられる原因を記載しますので、解決策をご存知の方はご指導いただけますと幸いです。
|
2
|
+
|
3
|
+
|
4
|
+
|
5
|
+
###開発環境
|
6
|
+
|
7
|
+
OS MacOsX
|
8
|
+
|
9
|
+
rails: 5.1.4
|
10
|
+
|
11
|
+
ruby: 2.4.3
|
2
12
|
|
3
13
|
|
4
14
|
|