xserverを使ってsshで接続しdjangoの実行環境を構築する為にlinuxbrewをインストールしてみましたが、以下のようにエラーが出てしまいました。
Warning: Linuxbrew has been merged into Homebrew. Please migrate to the following command: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" The version of Git that was found does not satisfy requirements for Homebrew. Please install Git 2.7.0 or newer and add it to your PATH.
どうやら古いバージョンのパスを読み取って、エラーが出ているようなので$ brew update gitをしたところ以下のように、gitとcurlを新しいバージョンにしてくださいとエラーを受けました。また$ brew doctorを見てみても同様のエラーが出力されます。
Error: Please update your system curl. Minimum required version: 7.41.0 Your curl version: 7.29.0 Your curl executable: 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 Warning: Building m4 from source as the bottle needs: - HOMEBREW_CELLAR: /home/linuxbrew/.linuxbrew/Cellar (yours is /home/XXXX/.linuxbrew/Cellar) - HOMEBREW_PREFIX: /home/linuxbrew/.linuxbrew (yours is /home/XXXX/.linuxbrew)
古いcurlのパスを先に読み取ってしまうとのことなので
$ export HOMEBREW_FORCE_BREWED_CURL="1"
を追記してみたりしましたが変化はありませんでした。
それにXserver(エックスサーバー)にGitをインストールするを参照した新しいバージョンをmakeする方法も試してみましたが依然変化ありませんでした。
$ which curl /usr/bin/curl $ which git /usr/bin/git
以上のフルパスに古いデータがあるようなのでエラーを解消する方法を教えて戴きたいです。よろしくお願いします。