无法在rails上安装ruby。 TypeError [英] Can't install ruby on rails. TypeError

查看:144
本文介绍了无法在rails上安装ruby。 TypeError的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在关注Michael Hartl的教程,如果它是有助于回答这个问题。
首先我安装Cygwin64,然后我下载rubygems-2.3.0。我将rubygems-2.3.0移动到C:\cygwin64\home\mycomputername。我解开它成功,cd进入rubygems-2.3.0文件夹,并运行setup.rb。



当我运行命令gem install rails --version 3.0.0,它安装成功,直到我到达

p>

Fetching:rack-1.2.8.gem(100%)
错误:执行gem ...(TypeError)时
无法转换nil into String



这是上述错误发生的地方。在这之后,没有rails命令将工作。



我应该注意,我的版本的ruby是v1.9.3,如果有意义。

解决方案

我建议您从 http:// railsinstaller安装Ruby和Rails .org / en (如果您使用的是Windows 7)。


I'm trying to install ruby on rails for windows 7. I've tried this on Professional and Enterprise.

I'm following Michael Hartl's tutorial if it helps answer this question. First I install Cygwin64, then I download rubygems-2.3.0. I move rubygems-2.3.0 into C:\cygwin64\home\mycomputername. I untar it successfully, cd into the rubygems-2.3.0 folder, and run setup.rb. Everything works fine up till here.

When I run the command gem install rails --version 3.0.0, it installs successfully until I get to

Fetching: rack-1.2.8.gem (100%) ERROR: While executing gem ... (TypeError) can't convert nil into String

Which is where the above error happens. After this, no rails command will work.

I should note that my version of ruby is v1.9.3, if it matters.

解决方案

I suggest you install Ruby and Rails from http://railsinstaller.org/en if you are on Windows 7.

这篇关于无法在rails上安装ruby。 TypeError的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆