gpt4 book ai didi

ruby-on-rails - rake 分贝 :create is not working in Ubuntu

转载 作者:行者123 更新时间:2023-12-04 19:15:07 25 4
gpt4 key购买 nike

我目前正在尝试运行 rake db:create Ubuntu Xenial 16.04.01 上的命令,但我收到以下错误。

Your bundle is locked to activesupport (5.0.0.1), but that version could not be found in any of the sources listed in your Gemfile. If you haven't changed sources, that means the author of activesupport (5.0.0.1) has removed it. You'll need to update your bundle to a different version of activesupport (5.0.0.1) that hasn't been removed in order to install.



我已经尝试运行下面的命令来尝试获得新版本的主动支持,但它仍然无法正常工作..
sudo apt-get update
sudo apt-get install ruby-activesupport

任何帮助或建议将不胜感激。

最佳答案

sudo apt-get update与 ruby 无关。

从错误来看,您的 Gemfile.lock具有 ActiveSupport 的 5.0.0.1 版本,但未在您的 Gemfile 中声明.

可以试试加gem activesupport在您的 Gemfile ,然后运行 ​​bundle install从项目文件夹中?这应该可以解决您的问题。

关于ruby-on-rails - rake 分贝 :create is not working in Ubuntu,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41255598/

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