Rails New Fails可以使用' t设置其他身份验证的数据'在MacOS上

发布于 2025-01-22 03:33:50 字数 493 浏览 2 评论 0原文

我试图让Ruby on Rails在带有M1芯片的新Mac上工作。运行rails new附加.gitignore带有以下错误

/Library/Ruby/Gems/2.6.0/gems/activesupport-6.0.3/lib/active_support/message_encryptor.rb:173:in `auth_data=': couldn't set additional authenticated data (OpenSSL::Cipher::CipherError)
  • 版本
  • macos 之后失败。 07修订版67951)[Universal.arm64e-darwin21]
  • Rails版本:6.0.3
  • 节点版本:14.19.0
  • 纱线版本:1.22.18

还有其他人遇到过吗?我的狂暴竞争并没有提出很多东西

I'm trying to get ruby on rails working on a new Mac with an M1 chip. Running rails new fails after append .gitignore with the following error

/Library/Ruby/Gems/2.6.0/gems/activesupport-6.0.3/lib/active_support/message_encryptor.rb:173:in `auth_data=': couldn't set additional authenticated data (OpenSSL::Cipher::CipherError)
  • MacOS version: 12.3.1 Monterey, Chip: Apple M1 Max
  • Ruby version: 2.6.8p205 (2021-07-07 revision 67951) [universal.arm64e-darwin21]
  • Rails version: 6.0.3
  • Node version: 14.19.0
  • Yarn version: 1.22.18

Has anyone else run into this? My rage-googling hasn't come up with much of anything on this one

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

分分钟 2025-01-29 03:33:50

我建议不要使用System Ruby,而是建议使用RBENV安装GEM来避免版本冲突。然后,您可以使用导出ruby_configure_opts =“ - with-openssl-dir = $(brew-prefix [email  preconted] 设置正确的SSL版本

Instead of using system ruby, I would suggest using rbenv to install gems to avoid version conflicts. Then you can use export RUBY_CONFIGURE_OPTS="--with-openssl-dir=$(brew --prefix [email protected])" to set the correct SSL version

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文