新建了一个rails专案
rails new first_app
然后:cd first_app
接着:bundle install
失败,出现以下信息:
bogon:~ sujize$ cd first_app
bogon:first_app sujize$ bundle install
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java.
Could not load OpenSSL.
You must recompile Ruby with OpenSSL support or change the sources in your
Gemfile from ‘https’ to ‘http’. Instructions for compiling with OpenSSL using
RVM are available at rvm.io/packages/openssl.
bogon:first_app sujize$
解决方法如下:
rvm reinstall 2.5.3 --with-openssl-dir=/usr/local/opt/openssl
2.5.3是当前ruby版本。