gpt4 book ai didi

ruby-on-rails - 安装 Rails 错误 : could not find rails locally or in a repository

转载 作者:数据小太阳 更新时间:2023-10-29 08:34:55 26 4
gpt4 key购买 nike

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

我输入:

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

最佳答案

只是为了检查...

...尝试在安装 Rails 之前执行 sudo gem update --system 以确保安装了最新的 RubyGems?

编辑:实际上,如果您的 RubyGems 安装真的很旧,您可能需要遵循 alternate directions on Gemcutter .

关于ruby-on-rails - 安装 Rails 错误 : could not find rails locally or in a repository,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1978167/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com