Mac 运行 gem install 报错 cannot load such file -- openssl

 

gem install bundler
ERROR: Loading command: install (LoadError)
cannot load such file -- openssl
ERROR: While executing gem ... (NoMethodError)
undefined method `invoke_with_build_args' for nil:NilClass

 

解决方法:

之前装好了homebrew,可以直接用brew 安装

brew install openssl@1.1

安装成功后需要重新安装 ruby 所有组件

 rvm reinstall all --force

上一篇:rpm:error while loading shared libraries: libz.so.1: cannot open shared object file: No such file o


下一篇:crmeb pro单商户前台uniapp修改编译打包教程