teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

4

誤字修正

2021/09/15 03:28

投稿

clack02
clack02

スコア24

title CHANGED
File without changes
body CHANGED
@@ -147,7 +147,7 @@
147
147
  Error: Please update your system curl.
148
148
  Minimum required version: 7.41.0
149
149
  Your curl version:
150
- Your curl executable: /home/liverllc/opt/bin/curl
150
+ Your curl executable: /home/project/opt/bin/curl
151
151
 
152
152
  ```
153
153
 
@@ -228,8 +228,8 @@
228
228
  Having additional scripts in your path can confuse software installed via
229
229
  Homebrew if the config script overrides a system or Homebrew-provided
230
230
  script of the same name. We found the following "config" scripts:
231
- /home/liverllc/opt/bin/curl-config
231
+ /home/project/opt/bin/curl-config
232
- /home/liverllc/.local/bin/curl-config
232
+ /home/project/.local/bin/curl-config
233
233
 
234
234
  Warning: Your Homebrew's prefix is not /home/linuxbrew/.linuxbrew.
235
235
  Some of Homebrew's bottles (binary packages) can only be used with the default

3

curlのバージョン毎に分けた

2021/09/15 03:27

投稿

clack02
clack02

スコア24

title CHANGED
File without changes
body CHANGED
@@ -1,7 +1,9 @@
1
1
  # 問題内容
2
2
  XServerでRedisをインストールするためにHomebrewをインストールしたが、curlを上手く参照してくれない。
3
+ ※2パターンあり見にくかったので、7.741と7.65.3で分けました。
3
4
 
4
5
  # エラー内容
6
+ ## curl 7.65.3 の場合
5
7
  パスは通っているように見えるが、バージョンが取得できていない?
6
8
 
7
9
  ```
@@ -12,24 +14,72 @@
12
14
  Your curl executable: /home/project/opt/bin/curl
13
15
  ```
14
16
 
17
+ ## curl 7.41.0の場合
18
+ 実行はできるが最後にcurlのパスが通っていないと怒られる
19
+ ```
20
+
21
+ READ THIS: https://docs.brew.sh/Troubleshooting
22
+
23
+ Traceback (most recent call last):
24
+ 30: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/build.rb:229:in `<main>'
25
+ 29: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/build.rb:133:in `install'
26
+ 28: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/utils.rb:550:in `with_env'
27
+ 27: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/build.rb:138:in `block in install'
28
+ 26: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:1275:in `brew'
29
+ 25: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:2434:in `stage'
30
+ 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'
31
+ 23: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/resource.rb:91:in `stage'
32
+ 22: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/resource.rb:116:in `unpack'
33
+ 21: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/resource.rb:199:in `mktemp'
34
+ 20: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/mktemp.rb:63:in `run'
35
+ 19: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/mktemp.rb:63:in `chdir'
36
+ 18: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/mktemp.rb:63:in `block in run'
37
+ 17: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/resource.rb:117:in `block in unpack'
38
+ 16: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/download_strategy.rb:102:in `stage'
39
+ 15: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/download_strategy.rb:115:in `chdir'
40
+ 14: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/download_strategy.rb:115:in `chdir'
41
+ 13: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/resource.rb:121:in `block (2 levels) in unpack'
42
+ 12: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:2454:in `block in stage'
43
+ 11: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/utils.rb:550:in `with_env'
44
+ 10: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:2455:in `block (2 levels) in stage'
45
+ 9: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:1282:in `block in brew'
46
+ 8: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/build.rb:178:in `block (2 levels) in install'
47
+ 7: from /home/project/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gcc@5.rb:139:in `install'
48
+ 6: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:2349:in `mkdir'
49
+ 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'
50
+ 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'
51
+ 3: from /home/project/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gcc@5.rb:141:in `block in install'
52
+ 2: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:2225:in `system'
53
+ 1: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:2225:in `open'
54
+ /home/project/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:2289:in `block in system': Failed executing: make bootstrap (BuildError)
55
+ 9: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/brew.rb:162:in `<main>'
56
+ 8: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/brew.rb:174:in `rescue in <main>'
57
+ 7: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/exceptions.rb:509:in `dump'
58
+ 6: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/exceptions.rb:455:in `issues'
59
+ 5: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/exceptions.rb:459:in `fetch_issues'
60
+ 4: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/utils/github.rb:61:in `issues_for_formula'
61
+ 3: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/utils/github.rb:30:in `search_issues'
62
+ 2: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/utils/github.rb:160:in `search'
63
+ 1: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/utils/github/api.rb:234:in `open_rest'
64
+ /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)
65
+ Error: 'curl' must be installed and in your PATH!
66
+
67
+ ```
68
+
15
69
  # 試した事
16
- xserverはroot権限が使えないらしいので、curlとgitは手動でインストールし、パスを通した。
17
-
18
70
  Homebrewのインストール手順は以下のURLに従った。
19
71
  [エックスサーバーでHomebrewを使って開発環境を構築](https://meriek.com/programing/xserver-homebrew/)
20
72
 
73
+ xserverはroot権限が使えないらしいので、curlとgitは手動でインストールし、パスを通した。
74
+
21
75
  [ADC/MDASへのLinuxbrewのインストール(2021年版)](https://astropengu.in/posts/33/)
22
76
  こちらの手順でcurlとgitを入れたが、上手く行かず、色々なサイトの方法を試しましたがダメでした。
23
- 現在はcurlはxserverのものとは別に二つ入っており、上記の方法で入れたcurl 7.74.0(~/.local/bin)ではなく、別で入れた curl 7.65.3(~/opt/bin) を参照するようにしています。前者はsslの設定がうまく行っ後者がHTTPSへアクセスできるためです
77
+ 現在はcurlはxserverのものとは別に二つ入っており、上記の方法で入れたcurl 7.74.0(~/.local/bin)ではなく、別で入れた curl 7.65.3(~/opt/bin) があります。前者はsslの設定がうまくできいないしく、HTTPSへアクセスできません
24
78
 
25
- ちなみにですが、curl 7.74.0の方にパスを通してbrew updateを実行すると、動きはしますが以下のエラーで失敗します。バージョンに関しては何も出ません。
26
- ```
27
- Error: 'curl' must be installed and in your PATH!
28
- ```
29
-
30
79
  よろしくお願いします。
31
80
 
32
81
  # 環境
82
+ ## curl 7.65.3
33
83
 
34
84
  ```
35
85
  $ cat .bash_profile
@@ -76,22 +126,12 @@
76
126
  ~/.local/bin/curl
77
127
  ~/.local/bin/curl
78
128
 
79
-
80
-
81
129
  $ curl -V
82
130
  curl 7.65.3 (x86_64-pc-linux-gnu) libcurl/7.65.3 OpenSSL/1.0.2n zlib/1.2.7
83
131
  Release-Date: 2019-07-19
84
132
  Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
85
133
  Features: AsynchDNS HTTPS-proxy Largefile libz NTLM NTLM_WB SSL TLS-SRP UnixSockets
86
134
 
87
-
88
- $ ~/.local/bin/curl -V
89
- curl 7.74.0 (x86_64-pc-linux-gnu) libcurl/7.74.0 zlib/1.2.7
90
- Release-Date: 2020-12-09
91
- Protocols: dict file ftp gopher http imap mqtt pop3 rtsp smtp telnet tftp
92
- Features: alt-svc AsynchDNS Largefile libz UnixSockets
93
-
94
-
95
135
  $ brew -v
96
136
  Homebrew 3.2.11-133-g4a64d59
97
137
  Unknown option: -C
@@ -111,13 +151,66 @@
111
151
 
112
152
  ```
113
153
 
114
- brewのcurlパスを7.41側に指定すると、doctorで以下の文言が出ました。
115
154
 
155
+ ### curl 7.74
116
156
  ```
117
- BREW_HOMEBREW_CURL_PATH=$HOME/.local/bin/curl
157
+ $ cat .bash_profile
118
- ```
158
+ # .bash_profile
119
159
 
160
+ # Get the aliases and functions
161
+ if [ -f ~/.bashrc ]; then
162
+ . ~/.bashrc
120
- ```
163
+ fi
164
+
165
+ # User specific environment and startup programs
166
+
167
+ PATH=$HOME/opt/bin:$PATH
168
+
169
+ export PATH=$HOME/.nodebrew/current/bin:$PATH
170
+ eval $(/home/project/.linuxbrew/bin/brew shellenv)
171
+ export HOMEBREW_FORCE_BREWD_CURL=”1”
172
+ export PATH=$HOME/.local/bin:$PATH
173
+ export HOMEBREW_DEVELOPER=1
174
+ export HOMEBREW_CURL_PATH=$HOME/.local/bin/curl
175
+ export HOMEBREW_GIT_PATH=$HOME/.local/bin/git
176
+
177
+
178
+ $ which -a curl
179
+ ~/.local/bin/curl
180
+ ~/opt/bin/curl
181
+ ~/opt/bin/curl
182
+ ~/opt/bin/curl
183
+ ~/opt/bin/curl
184
+ ~/opt/bin/curl
185
+ ~/opt/bin/curl
186
+ ~/opt/bin/curl
187
+ ~/opt/bin/curl
188
+ ~/opt/bin/curl
189
+ ~/opt/bin/curl
190
+ ~/.local/bin/curl
191
+ ~/opt/bin/curl
192
+ ~/opt/bin/curl
193
+ ~/.local/bin/curl
194
+ ~/opt/bin/curl
195
+ ~/opt/bin/curl
196
+ ~/.local/bin/curl
197
+ ~/opt/bin/curl
198
+ ~/opt/bin/curl
199
+ ~/.local/bin/curl
200
+ ~/opt/bin/curl
201
+ ~/opt/bin/curl
202
+ /usr/bin/curl
203
+ ~/.local/bin/curl
204
+ ~/.local/bin/curl
205
+ ~/.local/bin/curl
206
+
207
+
208
+ $ curl -V
209
+ curl 7.74.0 (x86_64-pc-linux-gnu) libcurl/7.74.0 zlib/1.2.7
210
+ Release-Date: 2020-12-09
211
+ Protocols: dict file ftp gopher http imap mqtt pop3 rtsp smtp telnet tftp
212
+ Features: alt-svc AsynchDNS Largefile libz UnixSockets
213
+
121
214
  $ brew doctor
122
215
  Please note that these warnings are just used to help the Homebrew maintainers
123
216
  with debugging if you file an issue. If everything you use Homebrew for is

2

7.41の時のdoctorの出力を追加

2021/09/15 02:38

投稿

clack02
clack02

スコア24

title CHANGED
File without changes
body CHANGED
@@ -109,4 +109,41 @@
109
109
  Your curl version:
110
110
  Your curl executable: /home/liverllc/opt/bin/curl
111
111
 
112
+ ```
113
+
114
+ brewのcurlパスを7.41側に指定すると、doctorで以下の文言が出ました。
115
+
116
+ ```
117
+ BREW_HOMEBREW_CURL_PATH=$HOME/.local/bin/curl
118
+ ```
119
+
120
+ ```
121
+ $ brew doctor
122
+ Please note that these warnings are just used to help the Homebrew maintainers
123
+ with debugging if you file an issue. If everything you use Homebrew for is
124
+ working fine: please don't worry or file an issue; just ignore this. Thanks!
125
+
126
+ Warning: Some installed formulae are deprecated or disabled.
127
+ You should find replacements for the following formulae:
128
+ isl@0.18
129
+
130
+ Warning: "config" scripts exist outside your system or Homebrew directories.
131
+ `./configure` scripts often look for *-config scripts to determine if
132
+ software packages are installed, and which additional flags to use when
133
+ compiling and linking.
134
+
135
+ Having additional scripts in your path can confuse software installed via
136
+ Homebrew if the config script overrides a system or Homebrew-provided
137
+ script of the same name. We found the following "config" scripts:
138
+ /home/liverllc/opt/bin/curl-config
139
+ /home/liverllc/.local/bin/curl-config
140
+
141
+ Warning: Your Homebrew's prefix is not /home/linuxbrew/.linuxbrew.
142
+ Some of Homebrew's bottles (binary packages) can only be used with the default
143
+ prefix (/home/linuxbrew/.linuxbrew).
144
+ You will encounter build failures with some formulae.
145
+ Please create pull requests instead of asking for help on Homebrew's GitHub,
146
+ Twitter or any other official channels. You are responsible for resolving
147
+ any issues you experience while you are running this
148
+ unsupported configuration.
112
149
  ```

1

それぞれのcurlのパスを追記

2021/09/15 02:24

投稿

clack02
clack02

スコア24

title CHANGED
File without changes
body CHANGED
@@ -20,7 +20,7 @@
20
20
 
21
21
  [ADC/MDASへのLinuxbrewのインストール(2021年版)](https://astropengu.in/posts/33/)
22
22
  こちらの手順でcurlとgitを入れたが、上手く行かず、色々なサイトの方法を試しましたがダメでした。
23
- 現在はcurlはxserverのものとは別に二つ入っており、上記の方法で入れたcurl 7.74.0ではなく、別で入れた curl 7.65.3 を参照するようにしています。前者はsslの設定がうまく行っておらず、後者がHTTPSへアクセスできるためです。
23
+ 現在はcurlはxserverのものとは別に二つ入っており、上記の方法で入れたcurl 7.74.0(~/.local/bin)ではなく、別で入れた curl 7.65.3(~/opt/bin) を参照するようにしています。前者はsslの設定がうまく行っておらず、後者がHTTPSへアクセスできるためです。
24
24
 
25
25
  ちなみにですが、curl 7.74.0の方にパスを通してbrew updateを実行すると、動きはしますが以下のエラーで失敗します。バージョンに関しては何も出ません。
26
26
  ```