在Snow Leopard上安装Ruby on Rails Beta 3-找不到文件 [英] Ruby on Rails Beta 3 Install on Snow Leopard - file not found

查看:96
本文介绍了在Snow Leopard上安装Ruby on Rails Beta 3-找不到文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用以下命令在系统上安装新的Beta:

I tried to install the new beta on my system with the command:

sudo gem install rails --pre

但是无论我尝试了什么,我仍然会收到该死的错误:

but no matter what I tried, I still get this damn error:

成功安装 rails-3.0.0.beta3
1个宝石 已安装
正在安装ri 有关的文件 rails-3.0.0.beta3 ...
文件不存在 找到:lib

Successfully installed rails-3.0.0.beta3
1 gem installed
Installing ri documentation for rails-3.0.0.beta3...
File not found: lib

由于我对红宝石很陌生,所以我真的不知道该怎么办.

Since I'm very new to ruby, I really don't know what to do.

我该如何完成安装? 这个已经安装好了吗? 为什么在这里中止?

How can I finish installing this? Is this installed already? Why does it abort here?

推荐答案

您只需要运行gem install rdoc,按照其说明进行操作,然后再次运行install rails命令,您就可以了.问题是由于rdoc与rails一起安装时无法安装,如果手动安装,它可以正常工作.

All you need to run is gem install rdoc, follow its instructions, then run the install rails command again and you're good. The problem is due to rdoc failing to install when installed with rails, if installed manually it works fine.

来源: http://gist.github.com/565967

^我遇到了同样的问题,这对我有用.

^ I had the same problem, and this worked for me.

这篇关于在Snow Leopard上安装Ruby on Rails Beta 3-找不到文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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