gpt4 book ai didi

ruby-on-rails-3 - 雪豹上的 RVM Ruby

转载 作者:行者123 更新时间:2023-12-01 04:39:38 27 4
gpt4 key购买 nike

我安装了 RVM,然后安装了最新版本的 Ruby。现在,当我尝试生成新的 Rails 应用程序时,我收到以下错误消息。

    NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem::Specification#default_executable= called from /Users/local/.rvm/gems/ruby-1.9.2-p180@global/specifications/rake-0.8.7.gemspec:10.
NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem::Specification#default_executable= called from /Users/local/.rvm/gems/ruby-1.9.2-p180/specifications/rake-0.8.7.gemspec:10.
NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem::Specification#default_executable= called from /Users/local/.rvm/gems/ruby-1.9.2-p180/specifications/rubygems-update-1.8.1.gemspec:11.
/Library/Ruby/Site/1.8/rubygems/dependency.rb:247:in `to_specs': Could not find rails (>= 0) amongst [rake-0.8.7, rake-0.8.7, rubygems-update-1.8.1] (Gem::LoadError)
from /Library/Ruby/Site/1.8/rubygems/dependency.rb:256:in `to_spec'
from /Library/Ruby/Site

/1.8/rubygems.rb:1182:in `gem'
from /usr/bin/rails:18

知道为什么会这样吗?

最佳答案

确保为 RVM 安装实际安装了 rails gem:

gem install rails

否则会默认运行Snow Leopard上预装的Rails版本(/usr/bin/rails文件)

您看到的所有弃用消息都只是警告;最新版本的 RubyGems 弃用了很多的东西。

关于ruby-on-rails-3 - 雪豹上的 RVM Ruby,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5959387/

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