Error installing rails:invalid gem:package is corrupt

gem install rails -v 5.0.0出错

解决方法,在终端下输入以下命令
gem update

rbenv rehash

报错
Unable to require openssl,install Open and rebuild ...


解决步骤

rvm osx-ssl-certs status all
rvm autolibs homebrew
export LDFLAGS=-L/usr/local/opt/openssl/lib
export CPPFLAGS=-I/usr/local/opt/openssl/include
export PKG_CONFIG_PATH=/usr/local/opt/openssl/lib/pkgconfig
rvm reinstall 2.3.1 --autolibs=homebrew
rvm osx-ssl-certs status all

Comments

comments powered by Disqus