今天,我试图为rails 6.1.0构建一个带有活动存储的docker,但出现了以下错误:

Your bundle is locked to mimemagic (0.3.5), 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 mimemagic (0.3.5) has removed it. You'll need to update your
bundle to a version other than mimemagic (0.3.5) that hasn't been removed in order to install.

现在我试着安装mimemagic

 gem install mimemagic -v 0.3.5

我有以下错误:

ERROR:  Could not find a valid gem 'mimemagic' (= 0.3.5) in any repository
ERROR:  Possible alternatives: mimemagic

看来Ruby 不见了.有人能解释一下吗?

这个问题的解决方案是什么?

推荐答案

几天前,mimemagic版本被拔掉了.有关更多信息,请访问:

您可以按如下方式修改您的文件:

gem 'mimemagic', github: 'mimemagicrb/mimemagic', ref: '01f92d86d15d85cfd0f20dabd025dcbd36a8a60f'

Ruby-on-rails相关问答推荐

本地主机的上衣配置

在Ruby on Rails中获取堆栈级别太深错误(&Q)

Rails 6升级没有加载Mongoid,这是一个问题

Data-turbo-stream=&FALSE&QOOT;不适用于带有方法POST的表单

如何在Rails中创建没有字符串的查询

如何使用 Rails 语义记录器记录整个请求(标头、正文等)

正确更新其他列的更新列

在 Rails/ActiveRecord 列名中使用问号字符

Rails 3. 构建 oauth2 提供程序

如何在 Rails 1.2.3 中使复选框默认为选中?

Ruby on Rails 错误无法加载此类文件 - 更少

在本地 Rails 开发环境中获取真实 IP 地址

参数错误:范围主体需要可调用

如何在 VS Code 中自动格式化 Ruby 或 .erb 文件?

非持久 ActiveRecord 模型属性

快速添加链接[:notice]

您可以在弹性 beantalk 环境中运行 rails 控制台或 rake 命令吗?

ruby on rails 如何处理 NaN

如何删除删除选项表单 activeAdmin?

为什么 rails bootstrap 这么慢,我该怎么办?