質問編集履歴
4
誤字修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -296,7 +296,7 @@
|
|
296
296
|
|
297
297
|
Your curl version:
|
298
298
|
|
299
|
-
Your curl executable: /home/
|
299
|
+
Your curl executable: /home/project/opt/bin/curl
|
300
300
|
|
301
301
|
|
302
302
|
|
@@ -458,9 +458,9 @@
|
|
458
458
|
|
459
459
|
script of the same name. We found the following "config" scripts:
|
460
460
|
|
461
|
-
/home/
|
461
|
+
/home/project/opt/bin/curl-config
|
462
|
-
|
462
|
+
|
463
|
-
/home/
|
463
|
+
/home/project/.local/bin/curl-config
|
464
464
|
|
465
465
|
|
466
466
|
|
3
curlのバージョン毎に分けた
test
CHANGED
File without changes
|
test
CHANGED
@@ -2,10 +2,14 @@
|
|
2
2
|
|
3
3
|
XServerでRedisをインストールするためにHomebrewをインストールしたが、curlを上手く参照してくれない。
|
4
4
|
|
5
|
+
※2パターンあり見にくかったので、7.741と7.65.3で分けました。
|
6
|
+
|
5
7
|
|
6
8
|
|
7
9
|
# エラー内容
|
8
10
|
|
11
|
+
## curl 7.65.3 の場合
|
12
|
+
|
9
13
|
パスは通っているように見えるが、バージョンが取得できていない?
|
10
14
|
|
11
15
|
|
@@ -26,33 +30,127 @@
|
|
26
30
|
|
27
31
|
|
28
32
|
|
33
|
+
## curl 7.41.0の場合
|
34
|
+
|
35
|
+
実行はできるが最後にcurlのパスが通っていないと怒られる
|
36
|
+
|
37
|
+
```
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
READ THIS: https://docs.brew.sh/Troubleshooting
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
Traceback (most recent call last):
|
46
|
+
|
47
|
+
30: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/build.rb:229:in `<main>'
|
48
|
+
|
49
|
+
29: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/build.rb:133:in `install'
|
50
|
+
|
51
|
+
28: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/utils.rb:550:in `with_env'
|
52
|
+
|
53
|
+
27: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/build.rb:138:in `block in install'
|
54
|
+
|
55
|
+
26: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:1275:in `brew'
|
56
|
+
|
57
|
+
25: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:2434:in `stage'
|
58
|
+
|
59
|
+
24: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/forwardable.rb:230:in `stage'
|
60
|
+
|
61
|
+
23: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/resource.rb:91:in `stage'
|
62
|
+
|
63
|
+
22: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/resource.rb:116:in `unpack'
|
64
|
+
|
65
|
+
21: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/resource.rb:199:in `mktemp'
|
66
|
+
|
67
|
+
20: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/mktemp.rb:63:in `run'
|
68
|
+
|
69
|
+
19: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/mktemp.rb:63:in `chdir'
|
70
|
+
|
71
|
+
18: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/mktemp.rb:63:in `block in run'
|
72
|
+
|
73
|
+
17: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/resource.rb:117:in `block in unpack'
|
74
|
+
|
75
|
+
16: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/download_strategy.rb:102:in `stage'
|
76
|
+
|
77
|
+
15: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/download_strategy.rb:115:in `chdir'
|
78
|
+
|
79
|
+
14: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/download_strategy.rb:115:in `chdir'
|
80
|
+
|
81
|
+
13: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/resource.rb:121:in `block (2 levels) in unpack'
|
82
|
+
|
83
|
+
12: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:2454:in `block in stage'
|
84
|
+
|
85
|
+
11: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/utils.rb:550:in `with_env'
|
86
|
+
|
87
|
+
10: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:2455:in `block (2 levels) in stage'
|
88
|
+
|
89
|
+
9: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:1282:in `block in brew'
|
90
|
+
|
91
|
+
8: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/build.rb:178:in `block (2 levels) in install'
|
92
|
+
|
93
|
+
7: from /home/project/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gcc@5.rb:139:in `install'
|
94
|
+
|
95
|
+
6: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:2349:in `mkdir'
|
96
|
+
|
97
|
+
5: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/fileutils.rb:128:in `cd'
|
98
|
+
|
99
|
+
4: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/fileutils.rb:128:in `chdir'
|
100
|
+
|
101
|
+
3: from /home/project/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gcc@5.rb:141:in `block in install'
|
102
|
+
|
103
|
+
2: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:2225:in `system'
|
104
|
+
|
105
|
+
1: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:2225:in `open'
|
106
|
+
|
107
|
+
/home/project/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:2289:in `block in system': Failed executing: make bootstrap (BuildError)
|
108
|
+
|
109
|
+
9: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/brew.rb:162:in `<main>'
|
110
|
+
|
111
|
+
8: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/brew.rb:174:in `rescue in <main>'
|
112
|
+
|
113
|
+
7: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/exceptions.rb:509:in `dump'
|
114
|
+
|
115
|
+
6: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/exceptions.rb:455:in `issues'
|
116
|
+
|
117
|
+
5: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/exceptions.rb:459:in `fetch_issues'
|
118
|
+
|
119
|
+
4: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/utils/github.rb:61:in `issues_for_formula'
|
120
|
+
|
121
|
+
3: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/utils/github.rb:30:in `search_issues'
|
122
|
+
|
123
|
+
2: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/utils/github.rb:160:in `search'
|
124
|
+
|
125
|
+
1: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/utils/github/api.rb:234:in `open_rest'
|
126
|
+
|
127
|
+
/home/project/.linuxbrew/Homebrew/Library/Homebrew/utils/github/api.rb:306:in `raise_error': curl failed! curl: (1) Protocol "https" not supported or disabled in libcurl (GitHub::API::Error)
|
128
|
+
|
129
|
+
Error: 'curl' must be installed and in your PATH!
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
```
|
134
|
+
|
135
|
+
|
136
|
+
|
29
137
|
# 試した事
|
30
138
|
|
139
|
+
Homebrewのインストール手順は以下のURLに従った。
|
140
|
+
|
141
|
+
[エックスサーバーでHomebrewを使って開発環境を構築](https://meriek.com/programing/xserver-homebrew/)
|
142
|
+
|
143
|
+
|
144
|
+
|
31
145
|
xserverはroot権限が使えないらしいので、curlとgitは手動でインストールし、パスを通した。
|
32
146
|
|
33
147
|
|
34
148
|
|
35
|
-
Homebrewのインストール手順は以下のURLに従った。
|
36
|
-
|
37
|
-
[エックスサーバーでHomebrewを使って開発環境を構築](https://meriek.com/programing/xserver-homebrew/)
|
38
|
-
|
39
|
-
|
40
|
-
|
41
149
|
[ADC/MDASへのLinuxbrewのインストール(2021年版)](https://astropengu.in/posts/33/)
|
42
150
|
|
43
151
|
こちらの手順でcurlとgitを入れたが、上手く行かず、色々なサイトの方法を試しましたがダメでした。
|
44
152
|
|
45
|
-
現在はcurlはxserverのものとは別に二つ入っており、上記の方法で入れたcurl 7.74.0(~/.local/bin)ではなく、別で入れた curl 7.65.3(~/opt/bin)
|
153
|
+
現在はcurlはxserverのものとは別に二つ入っており、上記の方法で入れたcurl 7.74.0(~/.local/bin)ではなく、別で入れた curl 7.65.3(~/opt/bin) があります。前者はsslの設定がうまくできていないらしく、HTTPSへアクセスができません。
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
ちなみにですが、curl 7.74.0の方にパスを通してbrew updateを実行すると、動きはしますが以下のエラーで失敗します。バージョンに関しては何も出ません。
|
50
|
-
|
51
|
-
```
|
52
|
-
|
53
|
-
Error: 'curl' must be installed and in your PATH!
|
54
|
-
|
55
|
-
```
|
56
154
|
|
57
155
|
|
58
156
|
|
@@ -62,6 +160,8 @@
|
|
62
160
|
|
63
161
|
# 環境
|
64
162
|
|
163
|
+
## curl 7.65.3
|
164
|
+
|
65
165
|
|
66
166
|
|
67
167
|
```
|
@@ -154,10 +254,6 @@
|
|
154
254
|
|
155
255
|
|
156
256
|
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
257
|
$ curl -V
|
162
258
|
|
163
259
|
curl 7.65.3 (x86_64-pc-linux-gnu) libcurl/7.65.3 OpenSSL/1.0.2n zlib/1.2.7
|
@@ -170,9 +266,153 @@
|
|
170
266
|
|
171
267
|
|
172
268
|
|
173
|
-
|
269
|
+
$ brew -v
|
270
|
+
|
174
|
-
|
271
|
+
Homebrew 3.2.11-133-g4a64d59
|
272
|
+
|
273
|
+
Unknown option: -C
|
274
|
+
|
275
|
+
usage: git [--version] [--help] [-c name=value]
|
276
|
+
|
277
|
+
[--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
|
278
|
+
|
279
|
+
[-p|--paginate|--no-pager] [--no-replace-objects] [--bare]
|
280
|
+
|
281
|
+
[--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
|
282
|
+
|
283
|
+
<command> [<args>]
|
284
|
+
|
285
|
+
Homebrew/homebrew-core (no Git repository)
|
286
|
+
|
287
|
+
|
288
|
+
|
289
|
+
|
290
|
+
|
291
|
+
$ brew doctor
|
292
|
+
|
293
|
+
Error: Please update your system curl.
|
294
|
+
|
295
|
+
Minimum required version: 7.41.0
|
296
|
+
|
297
|
+
Your curl version:
|
298
|
+
|
299
|
+
Your curl executable: /home/liverllc/opt/bin/curl
|
300
|
+
|
301
|
+
|
302
|
+
|
303
|
+
```
|
304
|
+
|
305
|
+
|
306
|
+
|
307
|
+
|
308
|
+
|
309
|
+
### curl 7.74
|
310
|
+
|
311
|
+
```
|
312
|
+
|
313
|
+
$ cat .bash_profile
|
314
|
+
|
315
|
+
# .bash_profile
|
316
|
+
|
317
|
+
|
318
|
+
|
319
|
+
# Get the aliases and functions
|
320
|
+
|
321
|
+
if [ -f ~/.bashrc ]; then
|
322
|
+
|
323
|
+
. ~/.bashrc
|
324
|
+
|
325
|
+
fi
|
326
|
+
|
327
|
+
|
328
|
+
|
329
|
+
# User specific environment and startup programs
|
330
|
+
|
331
|
+
|
332
|
+
|
333
|
+
PATH=$HOME/opt/bin:$PATH
|
334
|
+
|
335
|
+
|
336
|
+
|
337
|
+
export PATH=$HOME/.nodebrew/current/bin:$PATH
|
338
|
+
|
339
|
+
eval $(/home/project/.linuxbrew/bin/brew shellenv)
|
340
|
+
|
341
|
+
export HOMEBREW_FORCE_BREWD_CURL=”1”
|
342
|
+
|
343
|
+
export PATH=$HOME/.local/bin:$PATH
|
344
|
+
|
345
|
+
export HOMEBREW_DEVELOPER=1
|
346
|
+
|
347
|
+
export HOMEBREW_CURL_PATH=$HOME/.local/bin/curl
|
348
|
+
|
349
|
+
export HOMEBREW_GIT_PATH=$HOME/.local/bin/git
|
350
|
+
|
351
|
+
|
352
|
+
|
353
|
+
|
354
|
+
|
355
|
+
$ which -a curl
|
356
|
+
|
175
|
-
|
357
|
+
~/.local/bin/curl
|
358
|
+
|
359
|
+
~/opt/bin/curl
|
360
|
+
|
361
|
+
~/opt/bin/curl
|
362
|
+
|
363
|
+
~/opt/bin/curl
|
364
|
+
|
365
|
+
~/opt/bin/curl
|
366
|
+
|
367
|
+
~/opt/bin/curl
|
368
|
+
|
369
|
+
~/opt/bin/curl
|
370
|
+
|
371
|
+
~/opt/bin/curl
|
372
|
+
|
373
|
+
~/opt/bin/curl
|
374
|
+
|
375
|
+
~/opt/bin/curl
|
376
|
+
|
377
|
+
~/opt/bin/curl
|
378
|
+
|
379
|
+
~/.local/bin/curl
|
380
|
+
|
381
|
+
~/opt/bin/curl
|
382
|
+
|
383
|
+
~/opt/bin/curl
|
384
|
+
|
385
|
+
~/.local/bin/curl
|
386
|
+
|
387
|
+
~/opt/bin/curl
|
388
|
+
|
389
|
+
~/opt/bin/curl
|
390
|
+
|
391
|
+
~/.local/bin/curl
|
392
|
+
|
393
|
+
~/opt/bin/curl
|
394
|
+
|
395
|
+
~/opt/bin/curl
|
396
|
+
|
397
|
+
~/.local/bin/curl
|
398
|
+
|
399
|
+
~/opt/bin/curl
|
400
|
+
|
401
|
+
~/opt/bin/curl
|
402
|
+
|
403
|
+
/usr/bin/curl
|
404
|
+
|
405
|
+
~/.local/bin/curl
|
406
|
+
|
407
|
+
~/.local/bin/curl
|
408
|
+
|
409
|
+
~/.local/bin/curl
|
410
|
+
|
411
|
+
|
412
|
+
|
413
|
+
|
414
|
+
|
415
|
+
$ curl -V
|
176
416
|
|
177
417
|
curl 7.74.0 (x86_64-pc-linux-gnu) libcurl/7.74.0 zlib/1.2.7
|
178
418
|
|
@@ -184,62 +424,8 @@
|
|
184
424
|
|
185
425
|
|
186
426
|
|
187
|
-
|
188
|
-
|
189
|
-
$ brew -v
|
190
|
-
|
191
|
-
Homebrew 3.2.11-133-g4a64d59
|
192
|
-
|
193
|
-
Unknown option: -C
|
194
|
-
|
195
|
-
usage: git [--version] [--help] [-c name=value]
|
196
|
-
|
197
|
-
[--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
|
198
|
-
|
199
|
-
[-p|--paginate|--no-pager] [--no-replace-objects] [--bare]
|
200
|
-
|
201
|
-
[--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
|
202
|
-
|
203
|
-
<command> [<args>]
|
204
|
-
|
205
|
-
Homebrew/homebrew-core (no Git repository)
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
427
|
$ brew doctor
|
212
428
|
|
213
|
-
Error: Please update your system curl.
|
214
|
-
|
215
|
-
Minimum required version: 7.41.0
|
216
|
-
|
217
|
-
Your curl version:
|
218
|
-
|
219
|
-
Your curl executable: /home/liverllc/opt/bin/curl
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
```
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
brewのcurlパスを7.41側に指定すると、doctorで以下の文言が出ました。
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
```
|
232
|
-
|
233
|
-
BREW_HOMEBREW_CURL_PATH=$HOME/.local/bin/curl
|
234
|
-
|
235
|
-
```
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
```
|
240
|
-
|
241
|
-
$ brew doctor
|
242
|
-
|
243
429
|
Please note that these warnings are just used to help the Homebrew maintainers
|
244
430
|
|
245
431
|
with debugging if you file an issue. If everything you use Homebrew for is
|
2
7.41の時のdoctorの出力を追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -221,3 +221,77 @@
|
|
221
221
|
|
222
222
|
|
223
223
|
```
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
brewのcurlパスを7.41側に指定すると、doctorで以下の文言が出ました。
|
228
|
+
|
229
|
+
|
230
|
+
|
231
|
+
```
|
232
|
+
|
233
|
+
BREW_HOMEBREW_CURL_PATH=$HOME/.local/bin/curl
|
234
|
+
|
235
|
+
```
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
```
|
240
|
+
|
241
|
+
$ brew doctor
|
242
|
+
|
243
|
+
Please note that these warnings are just used to help the Homebrew maintainers
|
244
|
+
|
245
|
+
with debugging if you file an issue. If everything you use Homebrew for is
|
246
|
+
|
247
|
+
working fine: please don't worry or file an issue; just ignore this. Thanks!
|
248
|
+
|
249
|
+
|
250
|
+
|
251
|
+
Warning: Some installed formulae are deprecated or disabled.
|
252
|
+
|
253
|
+
You should find replacements for the following formulae:
|
254
|
+
|
255
|
+
isl@0.18
|
256
|
+
|
257
|
+
|
258
|
+
|
259
|
+
Warning: "config" scripts exist outside your system or Homebrew directories.
|
260
|
+
|
261
|
+
`./configure` scripts often look for *-config scripts to determine if
|
262
|
+
|
263
|
+
software packages are installed, and which additional flags to use when
|
264
|
+
|
265
|
+
compiling and linking.
|
266
|
+
|
267
|
+
|
268
|
+
|
269
|
+
Having additional scripts in your path can confuse software installed via
|
270
|
+
|
271
|
+
Homebrew if the config script overrides a system or Homebrew-provided
|
272
|
+
|
273
|
+
script of the same name. We found the following "config" scripts:
|
274
|
+
|
275
|
+
/home/liverllc/opt/bin/curl-config
|
276
|
+
|
277
|
+
/home/liverllc/.local/bin/curl-config
|
278
|
+
|
279
|
+
|
280
|
+
|
281
|
+
Warning: Your Homebrew's prefix is not /home/linuxbrew/.linuxbrew.
|
282
|
+
|
283
|
+
Some of Homebrew's bottles (binary packages) can only be used with the default
|
284
|
+
|
285
|
+
prefix (/home/linuxbrew/.linuxbrew).
|
286
|
+
|
287
|
+
You will encounter build failures with some formulae.
|
288
|
+
|
289
|
+
Please create pull requests instead of asking for help on Homebrew's GitHub,
|
290
|
+
|
291
|
+
Twitter or any other official channels. You are responsible for resolving
|
292
|
+
|
293
|
+
any issues you experience while you are running this
|
294
|
+
|
295
|
+
unsupported configuration.
|
296
|
+
|
297
|
+
```
|
1
それぞれのcurlのパスを追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -42,7 +42,7 @@
|
|
42
42
|
|
43
43
|
こちらの手順でcurlとgitを入れたが、上手く行かず、色々なサイトの方法を試しましたがダメでした。
|
44
44
|
|
45
|
-
現在はcurlはxserverのものとは別に二つ入っており、上記の方法で入れたcurl 7.74.0ではなく、別で入れた curl 7.65.3 を参照するようにしています。前者はsslの設定がうまく行っておらず、後者がHTTPSへアクセスできるためです。
|
45
|
+
現在はcurlはxserverのものとは別に二つ入っており、上記の方法で入れたcurl 7.74.0(~/.local/bin)ではなく、別で入れた curl 7.65.3(~/opt/bin) を参照するようにしています。前者はsslの設定がうまく行っておらず、後者がHTTPSへアクセスできるためです。
|
46
46
|
|
47
47
|
|
48
48
|
|