安装 gem 时出现此错误:“错误:执行 gem 时 ... (Zlib::GzipFile::Error)" [英] I get this error when installing a gem: "ERROR: While executing gem ... (Zlib::GzipFile::Error)"
问题描述
可能重复:
错误:执行gem时... (Zlib::GzipFile::Error) 不是 gzip 格式
在我的系统上安装 gem 时,我收到以下错误:
gem install blackbook --version ">= 1.0.7" --source http://github.com/tamoyal/blackbook/tree/master错误:执行 gem 时...(Zlib::GzipFile::Error)不是 gzip 格式
关于为什么会发生这种情况的任何想法?我构建了 gem,所以我的 gem 构建可能有问题?
谢谢
没有正确设置从 GitHub 获取 gem.
尝试gem fetch -V
您收到不是 gzip 格式"错误,因为 gem
无法获取 specs.4.8.gz
.GitHub 将 301 重定向返回到您的项目主页,这当然不是它想要的,也没有经过 gzip 压缩.
抱歉,我无法进一步帮助您,但我还没有构建 gem,更不用说在 GitHub 上.
Possible Duplicate:
ERROR: While executing gem … (Zlib::GzipFile::Error) not in gzip format
When installing a gem on my system, I get the following error:
gem install blackbook --version ">= 1.0.7" --source http://github.com/tamoyal/blackbook/tree/master
ERROR: While executing gem ... (Zlib::GzipFile::Error)
not in gzip format
Any ideas as to why this is happening? I built the gem so maybe it is something wrong with my gem build?
Thanks
Something isn't set up properly to fetch the gem from GitHub.
try gem fetch -V
steve@macpro:~$ gem fetch blackbook --version ">= 1.0.7" --source http://github.com/tamoyal/blackbook/tree/master -V GET 301 Moved Permanently: http://github.com/tamoyal/blackbook/tree/master/specs.4.8.gz GET 200 OK: http://github.com/tamoyal/blackbook/tree/master/ ERROR: While executing gem ... (Zlib::GzipFile::Error) not in gzip format
You're getting the "not in gzip format" error because gem
can't fetch specs.4.8.gz
. GitHub returns a 301 redirect back to your project home page, which of course isn't what it wants and isn't gzipped.
Sorry I can't help you further, but I haven't build a gem, much less on GitHub.
这篇关于安装 gem 时出现此错误:“错误:执行 gem 时 ... (Zlib::GzipFile::Error)"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!