我正在尝试让ruby on rails在带有M1芯片的新Mac上工作。append .gitignore
之后运行rails new
失败,报错
/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版本:2.6.8p205 (20121-07-07 revision 67951) [universal.arm64e-darwin21] Rails版本:6.0.3
- 节点版本:14.19.0
- Yarn版本:1.22.18
还有人遇到这个吗?我的愤怒谷歌没有找到太多关于这个的东西
我建议使用rbenv来安装gems,而不是使用system ruby,以避免版本冲突。然后可以使用export RUBY_CONFIGURE_OPTS="--with-openssl-dir=$(brew --prefix openssl@1.1)"
设置正确的SSL版本