美文网首页Ruby
bunlde install 失败2019-03-19

bunlde install 失败2019-03-19

作者: Zee_jin | 来源:发表于2019-03-19 18:53 被阅读0次

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

    相关文章

      网友评论

        本文标题:bunlde install 失败2019-03-19

        本文链接:https://www.haomeiwen.com/subject/myinmqtx.html