LoginSignup
1
0

More than 3 years have passed since last update.

gitのエラーerror:1407742Eの対処法について(備忘録)

Posted at

経緯

ずっと使っていなかった昔のlinuxマシンでgithubにpush使用としたらerror:1407742Eが起きた。

環境

VineLinux6.1
git1.7
git version 2.2.1

対処法

gitのバージョンが古かったので、アップデートをした。

まずは、既存のgitを削除した

sudo apt-get remove git

make時にエラーが起きないように以下のパッケージをインストールしておく

sudo apt-get install curl-devel expat-devel gettext-devel openssl-devel zlib-devel

インストールしたいgitをダウンロードし、解凍したあとにディレクトリを変更

sudo wget https://www.kernel.org/pub/software/scm/git/git-2.22.0.tar.gz
tar zxvf git-2.22.0.tar.gz
cd git-2.22.0

ビルドとインストール

make prefix=/usr/local all
make prefix=/usr/local install

もし、makeコマンドで以下のエラーが出るようなら

/usr/bin/ld: BFD version ~

以下のコマンドでインストールしてから再度実行すればできた

sudo apt-get install binutils

まとめ

突貫工事で対処してきたので、まちがっているかもしれない

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0