英文:
Golang Revel freezes when download gopkg.in/fsnotify.v1
问题
我正在使用CentOS7;尝试下载golang 1.5.1二进制文件和yum install golang
,并在安装revel时遇到相同的问题。Go工作正常;当我输入go version
时,它显示正确的版本。
当我输入go get -v github.com/revel/revel
时,一些包可以正常下载...直到遇到fsnotify。然后我得到以下输出:
Fetching https://gopkg.in/fsnotify.v1?go-get=1
Parsing meta tags from https://gopkg.in/fsnotify.v1?go-get=1 (status code 200)
get "gopkg.in/fsnotify.v1": found meta tag main.metaImport{Prefix:"gopkg.in/fsnotify.v1", VCS:"git", RepoRoot:"https://gopkg.in/fsnotify.v1"} at https://gopkg.in/fsnotify.v1?go-get=1
gopkg.in/fsnotify.v1 (download)
然后它就卡住了。无论我尝试什么,它都不会下载任何内容到src/gopkg.in/fsnotify
。src/github.com
和src/golang.org
中的文件可以正常获取。我已经确保我能够curl到http://gopkg.in和https://gopkg.in,所以看起来不像是SSLv3的问题。
有什么想法吗?
英文:
I'm using CentOS7; tried downloading the golang 1.5.1 binary and also yum install golang
, and run into the same problem installed revel. Go works fine; when I do go version
it displays the proper version.
When I type go get -v github.com/revel/revel
, a few packages download just fine.... until it gets to fsnotify. Then I get this output:
<!-- language: lang-none -->
Fetching https://gopkg.in/fsnotify.v1?go-get=1
Parsing meta tags from https://gopkg.in/fsnotify.v1?go-get=1 (status code 200)
get "gopkg.in/fsnotify.v1": found meta tag main.metaImport{Prefix:"gopkg.in/fsnotify.v1", VCS:"git", RepoRoot:"https://gopkg.in/fsnotify.v1"} at https://gopkg.in/fsnotify.v1?go-get=1
gopkg.in/fsnotify.v1 (download)
And it just freezes. No matter what I try, it doesn't download anything into src/gopkg.in/fsnotify
. Files in src/github.com
and src/golang.org
are pulled just fine. I already made sure I'm able to curl into http://gopkg.in and https://gopkg.in, so it doesn't look like an SSLv3 issue.
Any ideas?
答案1
得分: 1
升级Git,使其版本大于1.7.1(最新的CentOS基础版本)。首先尝试使用rpmforge;如果不起作用,则从源代码编译:https://git-scm.com/book/en/v2/Getting-Started-Installing-Git#Installing-from-Source
我现在使用的是Git 2.6.2,它正常工作:go get -v github.com/revel/revel
(-v
表示详细模式)。
英文:
Upgrade Git so that it is greater than 1.7.1 (latest CentOS base version). Try rpmforge first; if that doesn't work, compile from source: https://git-scm.com/book/en/v2/Getting-Started-Installing-Git#Installing-from-Source
I'm on Git 2.6.2 and it's working fine now: go get -v github.com/revel/revel
(-v
for verbose mode)
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论