LoginSignup
10
9

More than 5 years have passed since last update.

revel入れたいのにgo getが進まなかった

Last updated at Posted at 2015-02-09

どういうわけか

[vagrant@localhost ~]$ go get github.com/revel/revel

ここで止まる(何も出ない)

環境

[vagrant@localhost ~]$ cat /etc/redhat-release
Scientific Linux release 6.3 (Carbon)

[vagrant@localhost ~]$ go version
go version go1.4.1 linux/amd64

原因?

手動で手順を追ってみたところ、どうもgit cloneが途中で止まるのが原因っぽい。

[vagrant@localhost ~]$ git clone https://gopkg.in/fsnotify.v1
Initialized empty Git repository

↑ここで止まる

対応:gitを更新する

yumで入れたgitが1.7だったので、2.3にしたら動くようになった。

sudo yum -y install gcc libcurl-devel expat-devel perl-ExtUtils-MakeMaker gettext
wget https://www.kernel.org/pub/software/scm/git/git-2.3.0.tar.gz
tar xzvf git-2.3.0.tar.gz
cd git-2.3.0
make prefix=/usr/local/git all
make prefix=/usr/local/git install
echo 'export PATH=/usr/local/git/bin:$PATH' > /etc/profile.d/git.sh

いつも古いブラウザしね!!とか言ってるんだから、古いgit使うなってことですかね。。。
根本的な原因がコレなのかは謎っぽい。

10
9
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
10
9