安装 Rails 错误:在本地或存储库中找不到 Rails [英] Installing Rails ERROR: could not find rails locally or in a repository

查看:38
本文介绍了安装 Rails 错误:在本地或存储库中找不到 Rails的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在互联网上寻找解决方案......但没有运气......我是 Rails 的新手...如果有人有想法,我很想听听.非常感谢!

I've been poking around the internet looking for a solution on this one... with no luck.. I'm new to rails... If anyone has an idea, I'd love to hear it. Much appreciated!

我输入:

LW:src liamwright$ sudo gem install rails --include-dependencies

并获取:

INFO:  `gem install -y` is now default and will be removed
INFO:  use --ignore-dependencies to install only the gems you list
Bulk updating Gem source index for: http://gems.rubyforge.org
ERROR:  could not find rails locally or in a repository

我正在跑步:

ruby 1.8.6 (2008-08-11 patchlevel 287) [universal-darwin9.0]
Mac OS X 10.5.8

我也试过:

gem sources -r gems.rubyonrails.org 

并获取:

source gems.rubyonrails.org not present in cache

推荐答案

可能想确保您拥有最新的 ruby​​gems:

Might want to make sure you have the newest rubygems:

sudo gem install rubygems-update
sudo gem update --system

那么:

sudo gem install rails

这篇关于安装 Rails 错误:在本地或存储库中找不到 Rails的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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