大苏尔更新导致多个负载错误Rails Ruby [英] Big Sur Update Leads to Multiple Load Error Rails Ruby

查看:72
本文介绍了大苏尔更新导致多个负载错误Rails Ruby的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

更新到Big Sur后,在运行 rails s rails db:migrate 时,我在rails(5.2.1)上的红宝石(2.6.3)应用程序反复出现LoadError.

After updating to Big Sur, my ruby (2.6.3) on rails (5.2.1) application repeatedly has LoadError when running rails s or rails db:migrate.

我已尝试多次卸载并重新安装Rails,但是在再次遇到LoadError之前,它只能工作1到2次.

I have tried uninstall and reinstall rails multiple time but it will only work 1 or 2 times before encountering LoadError again.

以下是一些错误示例(请注意,它们是不同的)

Here are some samples of the errors (Note that they are different)

/Library/Ruby/Gems/2.6.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `require': cannot load such file -- new_relic/agent/instrumentation/sinatra/transaction_namer (LoadError)

/Library/Ruby/Gems/2.6.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `require': cannot load such file -- /Library/Ruby/Gems/2.6.0/gems/newrelic_rpm-6.8.0.360/lib/new_relic/agent/instrumentation/active_merchant.rb (LoadError)

/Library/Ruby/Gems/2.6.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `require': cannot load such file -- /Library/Ruby/Gems/2.6.0/gems/newrelic_rpm-6.8.0.360/lib/new_relic/agent/instrumentation/typhoeus.rb (LoadError)

/Library/Ruby/Gems/2.6.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `require': cannot load such file -- ffaker/company (LoadError)


更新:当前正在尝试通过rvm安装滑轨,以查看此一致错误是否消失.


Update: currently trying installing rails via rvm to see if this consistent error goes away.

推荐答案

您不应使用Apple的Ruby安装.该安装仅存在于 中,供Apple自身内部使用.

You should not use Apple's Ruby installation. That installation exists solely for internal use by Apple itself.

我的猜测是,系统完整性保护会不断删除和/或还原您在系统保护的目录中更改的内容.

My guess is that the System Integrity Protection keeps deleting and/or restoring stuff that you changed in the system protected directories.

有关更多信息,请参见例如

For more information, see for example

这篇关于大苏尔更新导致多个负载错误Rails Ruby的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆