Rails New Fails可以使用' t设置其他身份验证的数据'在MacOS上
我试图让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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我建议不要使用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