問題内容
XServerでRedisをインストールするためにHomebrewをインストールしたが、curlを上手く参照してくれない。
※2パターンあり見にくかったので、7.741と7.65.3で分けました。
エラー内容
curl 7.65.3 の場合
パスは通っているように見えるが、バージョンが取得できていない?
$ brew update Error: Please update your system curl. Minimum required version: 7.41.0 Your curl version: Your curl executable: /home/project/opt/bin/curl
curl 7.41.0の場合
実行はできるが最後にcurlのパスが通っていないと怒られる
READ THIS: https://docs.brew.sh/Troubleshooting Traceback (most recent call last): 30: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/build.rb:229:in `<main>' 29: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/build.rb:133:in `install' 28: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/utils.rb:550:in `with_env' 27: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/build.rb:138:in `block in install' 26: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:1275:in `brew' 25: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:2434:in `stage' 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' 23: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/resource.rb:91:in `stage' 22: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/resource.rb:116:in `unpack' 21: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/resource.rb:199:in `mktemp' 20: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/mktemp.rb:63:in `run' 19: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/mktemp.rb:63:in `chdir' 18: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/mktemp.rb:63:in `block in run' 17: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/resource.rb:117:in `block in unpack' 16: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/download_strategy.rb:102:in `stage' 15: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/download_strategy.rb:115:in `chdir' 14: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/download_strategy.rb:115:in `chdir' 13: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/resource.rb:121:in `block (2 levels) in unpack' 12: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:2454:in `block in stage' 11: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/utils.rb:550:in `with_env' 10: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:2455:in `block (2 levels) in stage' 9: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:1282:in `block in brew' 8: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/build.rb:178:in `block (2 levels) in install' 7: from /home/project/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gcc@5.rb:139:in `install' 6: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:2349:in `mkdir' 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' 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' 3: from /home/project/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gcc@5.rb:141:in `block in install' 2: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:2225:in `system' 1: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:2225:in `open' /home/project/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:2289:in `block in system': Failed executing: make bootstrap (BuildError) 9: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/brew.rb:162:in `<main>' 8: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/brew.rb:174:in `rescue in <main>' 7: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/exceptions.rb:509:in `dump' 6: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/exceptions.rb:455:in `issues' 5: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/exceptions.rb:459:in `fetch_issues' 4: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/utils/github.rb:61:in `issues_for_formula' 3: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/utils/github.rb:30:in `search_issues' 2: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/utils/github.rb:160:in `search' 1: from /home/project/.linuxbrew/Homebrew/Library/Homebrew/utils/github/api.rb:234:in `open_rest' /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) Error: 'curl' must be installed and in your PATH!
試した事
Homebrewのインストール手順は以下のURLに従った。
エックスサーバーでHomebrewを使って開発環境を構築
xserverはroot権限が使えないらしいので、curlとgitは手動でインストールし、パスを通した。
ADC/MDASへのLinuxbrewのインストール(2021年版)
こちらの手順でcurlとgitを入れたが、上手く行かず、色々なサイトの方法を試しましたがダメでした。
現在はcurlはxserverのものとは別に二つ入っており、上記の方法で入れたcurl 7.74.0(/.local/bin)ではなく、別で入れた curl 7.65.3(/opt/bin) があります。前者はsslの設定がうまくできていないらしく、HTTPSへアクセスができません。
よろしくお願いします。
環境
curl 7.65.3
$ cat .bash_profile # .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi # User specific environment and startup programs PATH=$HOME/opt/bin:$PATH export PATH=$HOME/.nodebrew/current/bin:$PATH eval $(/home/project/.linuxbrew/bin/brew shellenv) export HOMEBREW_FORCE_BREWD_CURL=”1” export PATH=$PATH:$HOME/.local/bin export HOMEBREW_DEVELOPER=1 export HOMEBREW_CURL_PATH=$HOME/opt/bin/curl export HOMEBREW_GIT_PATH=$HOME/.local/bin/git $ which -a curl ~/opt/bin/curl ~/opt/bin/curl ~/opt/bin/curl ~/opt/bin/curl ~/opt/bin/curl ~/opt/bin/curl ~/.local/bin/curl ~/opt/bin/curl ~/opt/bin/curl ~/.local/bin/curl ~/opt/bin/curl ~/opt/bin/curl ~/.local/bin/curl ~/opt/bin/curl ~/opt/bin/curl ~/.local/bin/curl ~/opt/bin/curl ~/opt/bin/curl /usr/bin/curl ~/.local/bin/curl ~/.local/bin/curl $ curl -V curl 7.65.3 (x86_64-pc-linux-gnu) libcurl/7.65.3 OpenSSL/1.0.2n zlib/1.2.7 Release-Date: 2019-07-19 Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp Features: AsynchDNS HTTPS-proxy Largefile libz NTLM NTLM_WB SSL TLS-SRP UnixSockets $ brew -v Homebrew 3.2.11-133-g4a64d59 Unknown option: -C usage: git [--version] [--help] [-c name=value] [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path] [-p|--paginate|--no-pager] [--no-replace-objects] [--bare] [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>] <command> [<args>] Homebrew/homebrew-core (no Git repository) $ brew doctor Error: Please update your system curl. Minimum required version: 7.41.0 Your curl version: Your curl executable: /home/project/opt/bin/curl
curl 7.74
$ cat .bash_profile # .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi # User specific environment and startup programs PATH=$HOME/opt/bin:$PATH export PATH=$HOME/.nodebrew/current/bin:$PATH eval $(/home/project/.linuxbrew/bin/brew shellenv) export HOMEBREW_FORCE_BREWD_CURL=”1” export PATH=$HOME/.local/bin:$PATH export HOMEBREW_DEVELOPER=1 export HOMEBREW_CURL_PATH=$HOME/.local/bin/curl export HOMEBREW_GIT_PATH=$HOME/.local/bin/git $ which -a curl ~/.local/bin/curl ~/opt/bin/curl ~/opt/bin/curl ~/opt/bin/curl ~/opt/bin/curl ~/opt/bin/curl ~/opt/bin/curl ~/opt/bin/curl ~/opt/bin/curl ~/opt/bin/curl ~/opt/bin/curl ~/.local/bin/curl ~/opt/bin/curl ~/opt/bin/curl ~/.local/bin/curl ~/opt/bin/curl ~/opt/bin/curl ~/.local/bin/curl ~/opt/bin/curl ~/opt/bin/curl ~/.local/bin/curl ~/opt/bin/curl ~/opt/bin/curl /usr/bin/curl ~/.local/bin/curl ~/.local/bin/curl ~/.local/bin/curl $ curl -V curl 7.74.0 (x86_64-pc-linux-gnu) libcurl/7.74.0 zlib/1.2.7 Release-Date: 2020-12-09 Protocols: dict file ftp gopher http imap mqtt pop3 rtsp smtp telnet tftp Features: alt-svc AsynchDNS Largefile libz UnixSockets $ brew doctor Please note that these warnings are just used to help the Homebrew maintainers with debugging if you file an issue. If everything you use Homebrew for is working fine: please don't worry or file an issue; just ignore this. Thanks! Warning: Some installed formulae are deprecated or disabled. You should find replacements for the following formulae: isl@0.18 Warning: "config" scripts exist outside your system or Homebrew directories. `./configure` scripts often look for *-config scripts to determine if software packages are installed, and which additional flags to use when compiling and linking. Having additional scripts in your path can confuse software installed via Homebrew if the config script overrides a system or Homebrew-provided script of the same name. We found the following "config" scripts: /home/project/opt/bin/curl-config /home/project/.local/bin/curl-config Warning: Your Homebrew's prefix is not /home/linuxbrew/.linuxbrew. Some of Homebrew's bottles (binary packages) can only be used with the default prefix (/home/linuxbrew/.linuxbrew). You will encounter build failures with some formulae. Please create pull requests instead of asking for help on Homebrew's GitHub, Twitter or any other official channels. You are responsible for resolving any issues you experience while you are running this unsupported configuration.
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。