ruby 如何解决无法加载此类文件openssl错误?

j7dteeu8  于 2023-01-01  发布在  Ruby
关注(0)|答案(2)|浏览(248)

我试着运行宝石安装捆绑器,并得到这个错误,已尝试了所有的链接,所以已经,请帮助。

Ignoring eventmachine-1.2.7 because its extensions are not built. Try: gem pristine eventmachine --version 1.2.7
Ignoring nokogiri-1.10.10 because its extensions are not built. Try: gem pristine nokogiri --version 1.10.10
Ignoring oj-3.7.12 because its extensions are not built. Try: gem pristine oj --version 3.7.12
Ignoring yaji-0.3.6 because its extensions are not built. Try: gem pristine yaji --version 0.3.6
Ignoring yaji-0.3.5 because its extensions are not built. Try: gem pristine yaji --version 0.3.5
ERROR:  Loading command: install (LoadError)
    cannot load such file -- openssl
ERROR:  While executing gem ... (NoMethodError)
    undefined method `invoke_with_build_args' for nil:NilClass
omhiaaxx

omhiaaxx1#

卸载ruby和opensssl,然后运行以下命令:

rvm reinstall 2.2.9 --with-openssl-dir=$HOME/.rvm/usr
kmpatx3s

kmpatx3s2#

rvm重新安装[无论你想使用什么版本,例如2.7.5]--with-openssl-dir=$HOME/.rvm/usr

相关问题