質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.50%
cURL

cURLはHTTP, FTPやTelnetなど複数のプロトコルを用いてデータを転送するライブラリとコマンドラインツールを提供します。

Linux

Linuxは、Unixをベースにして開発されたオペレーティングシステムです。日本では「リナックス」と呼ばれています。 主にWebサーバやDNSサーバ、イントラネットなどのサーバ用OSとして利用されています。 上位500のスーパーコンピュータの90%以上はLinuxを使用しています。 携帯端末用のプラットフォームAndroidは、Linuxカーネル上に構築されています。

Q&A

0回答

747閲覧

xserverでのbrewのエラー curlをアップデートしたが反映されず

_jtr

総合スコア4

cURL

cURLはHTTP, FTPやTelnetなど複数のプロトコルを用いてデータを転送するライブラリとコマンドラインツールを提供します。

Linux

Linuxは、Unixをベースにして開発されたオペレーティングシステムです。日本では「リナックス」と呼ばれています。 主にWebサーバやDNSサーバ、イントラネットなどのサーバ用OSとして利用されています。 上位500のスーパーコンピュータの90%以上はLinuxを使用しています。 携帯端末用のプラットフォームAndroidは、Linuxカーネル上に構築されています。

0グッド

0クリップ

投稿2021/06/09 14:15

xserver上でbrewをインストールしました。
brew doctorにて正常に動作しているか確かめたところ、
下記のエラーが生じました。

Error: Please update your system curl.

Minimum required version: 7.41.0
Your curl version: 7.29.0
Your curl executable: /usr/bin/curl
Error: Please update your system Git.
Minimum required version: 2.7.0
Your Git version: 1.8.3.1
Your Git executable: /usr/bin/git

どうやらcurlとGitのバージョンが古いとのことなので、
ひとまずはcurlのバージョンを7.74.0に上げ、実際にバージョンアップできていることを
確認しました。

$ ~/opt/bin/curl --version

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

xserverでは、サーバ標準の古いバージョン(7.29.0)のcurlが強制的に参照されるとのことなので、下記記事を参照して、.bash_profileの内容を変更・sourceにて設定を反映させて自分がインストールしたcurlを参照できるようにしました。
自分がインストールしたcurlを参照できるようにする方法

変更後の.bash_profileを下記に示します。

if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

PATH=$HOME/opt/bin:$PATH

export PATH
export HOMEBREW_FORCE_BREWED_CURL="1"

しかしながら、再びbrew doctorを行っても下記のエラーメッセージが出力されて、xserverの古いバージョンのcurlが参照されてしまいます。

$ brew doctor

Error: Please update your system curl.
Minimum required version: 7.41.0
Your curl version: 7.29.0
Your curl executable: /usr/bin/curl
Error: Please update your system Git.
Minimum required version: 2.7.0
Your Git version: 1.8.3.1
Your Git executable: /usr/bin/git
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/[xserverID]/opt/bin/curl-config

Warning: An outdated version (1.8.3.1) of Git was detected in your PATH.

Git 2.7.0 or newer is required for Homebrew.
Please upgrade:
brew install git

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.

どのようにすれば、自分がインストールしたcurlをbrewが参照できるようになるのでしょうか?教えていただけると幸いです。

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

yukky1201

2021/06/10 06:59

念のため、環境変数が反映されている(ちゃんと、”1”がセットされている)か確認してください。 [test@localhost ~]$ echo $HOMEBREW_FORCE_BREWED_CURL 1
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだ回答がついていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.50%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問