gpt4 book ai didi

ruby-on-rails - 为什么 Rails 服务器会出现 "Could not find ' railties 错误?

转载 作者:数据小太阳 更新时间:2023-10-29 07:02:04 25 4
gpt4 key购买 nike

当我使用 rails s 启动 Rails 服务器时,出现以下错误:

/usr/local/lib/site_ruby/1.8/rubygems/dependency.rb:296:in `to_specs': Could not find 'railties' (>= 0) among 10 total gem(s) (Gem::LoadError)
from /usr/local/lib/site_ruby/1.8/rubygems/dependency.rb:307:in `to_spec'
from /usr/local/lib/site_ruby/1.8/rubygems/core_ext/kernel_gem.rb:47:in `gem'
from /usr/bin/rails:22

我该如何解决?

最佳答案

尝试:

bundle install

然后用这个命令启动你的服务器:

bundle exec rails s

关于ruby-on-rails - 为什么 Rails 服务器会出现 "Could not find ' railties 错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15871950/

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