如何解决无法加载此类文件 openssl 错误?
How to resolve Cannot load such file openssl error?
我试过 运行 gem 安装捆绑器但出现此错误,已经尝试了所有 link SO 上的所有方法,请帮忙。
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
卸载 ruby 和 openssl 然后 运行 这个:
rvm reinstall 2.2.9 --with-openssl-dir=$HOME/.rvm/usr
我试过 运行 gem 安装捆绑器但出现此错误,已经尝试了所有 link SO 上的所有方法,请帮忙。
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
卸载 ruby 和 openssl 然后 运行 这个:
rvm reinstall 2.2.9 --with-openssl-dir=$HOME/.rvm/usr