Rubygems:无法安装rails(不是gzip格式)
我想安装 Rails 以便与 aptana studio 3 一起使用。点击 gem install Rails
后抛出以下错误:
ERROR: While executing gem ... (Zlib::GzipFile::Error)
not in gzip format
我分别安装了 ruby 1.9.2 和 rubygems 1.8.9 (之后我读到了有关ruby 1.9.1+ 已经包括 gem 支持)。
我的gem源
是:http://rubygems.org/
我已经搜索解决方案很长一段时间了。但找不到问题所在。
感谢您的帮助:-)
EDIT1:
好的。使用 RailsInstaller 后,我可以在 gem 文件夹中找到 Rails。当我尝试在 Aptana 中打开项目时,出现以下错误:
sh.exe":C:/Projects/railsinstaller/Stage/Ruby1.9.2/bin/ruby.exe: bad interpreter: No such file or directory
EDIT2:
自从我间接解决了这个问题并且出现了一个新问题以来,我开始了一个新主题。要按照我的进一步步骤操作,请转到此处
I want to install rails to use it with aptana studio 3. After hiting gem install rails
following error is being thrown:
ERROR: While executing gem ... (Zlib::GzipFile::Error)
not in gzip format
I installed ruby 1.9.2 and and rubygems 1.8.9 seperately (after that I read about ruby 1.9.1+ including gem support already).
My gem source
is: http://rubygems.org/
I have searched for solutions for quite some time. But can't find the issue.
Your help is appreciated :-)
EDIT1:
All right. After using the RailsInstaller I can find Rails in my gem-folder. When I try to open a project in Aptana I get the following Error:
sh.exe":C:/Projects/railsinstaller/Stage/Ruby1.9.2/bin/ruby.exe: bad interpreter: No such file or directory
found simialar issue here and here. but didn't help in my case.
EDIT2:
I started a new topic since I solved this issue indirectly and a new one occured. To follow my further steps go here
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我找到了一种解决方案,但不是直接的解决方案:
http://railsinstaller.org/ <-- 在这里您可以找到一个安装包来安装你所需要的一切......
I have found a solution but not a direct one:
http://railsinstaller.org/ <-- here you can find an install-package that istalls all you need...
我在 Windows 上使用了 RailsInstaller,但仍然遇到 Aptana 错误,我通过
在我的项目上简单地调用:than 来解决这个错误,
我的错误是:
I used RailsInstaller for Windows but I still had that Aptana error, which I solved by simply calling:
than, on my project
My error was:
宝石更新将起作用。这是因为 bin 目录中的大多数bat 文件引用了错误的railsInstaller 路径。
gem update will work. This is because most of the bat files in bin directory refers to wrong railsInstaller path.