mimemagic 发生了什么?
@rails
activerecord 取决于
@大本营
marcel 依赖于 mimemagic 0.3.2。既然 mimemagic 0.3.2 已经被猛拉,那么前进的道路是什么?
最佳答案
注意:升级到 Mimemagic 0.3.8 仍然在 GPL-2.0 许可下,这在所有情况下都不是可取的。
我今天遇到了这个问题,这就是我最终解决这个问题的方法
(我在 MBP Catalina 10.15.7)
第 1 步 :通过运行将 Gemfile.lock 更新为 mimemagic 0.3.8
$ brew install shared-mime-info
$ bundle update mimemagic
(确保您要部署到的系统安装了正确的库)。✅ 由于 this comment 解决了 Mimemagic 问题
第二步: 升级 yarn 包
当我这样做时,它更新了自制软件中的所有内容,因此当我重新启动服务器时,我收到了
Your Yarn packages are out of date!
Please run `yarn install` to update.
但是,运行 $yarn install
给了我错误: dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.67.dylib
Referenced from: /usr/local/bin/node
和 yarn check v1.22.10
warning Integrity check: System parameters don't match
error Integrity check failed
error Found 1 errors.
最后通过运行修复 yarn 问题 $ yarn --update-checksums
🎉 yarn 问题解决了(感谢这个 blog post )第 3 步 最后,brew 还将我的 Postgresql 从 12 更新到 13.2,所以我收到了
PG::ConnectionBad - could not connect to server: No such file or directory
Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
没有要删除的 PID,停止和重新启动,卸载和重新加载,启动 ctl 不起作用......最后,这有效通过运行检查 postgres.log
$ tail -n 10 /usr/local/var/log/postgres.log
最后一行显示: FATAL: database files are incompatible with server
DETAIL: The data directory was initialized by PostgreSQL version 12, which is not compatible with this version 13.2.
🙌🏻 固定: $ brew postgresql-upgrade-database
最后,由于 this post 修复了 postgres db 升级
关于ruby-on-rails - mimemagic 怎么了?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66785194/