cannot load such file -- openssl

在执行sudo gem install -n /usr/local/bin cocoapods安装cocoapods时报下面的错


报错.png

1.rvm pkg install openssl
2.rvm reinstall ruby-2.2 --with-openssl-dir=$rvm_path/usr

你可能感兴趣的:(cannot load such file -- openssl)