bunlde install 失败2019-03-19

新建了一个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版本。

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。