gpt4 book ai didi

mysql - 解决错误 : An error occurred while installing mysql2 (0. 4.5),Bundler 无法继续。确保 `gem install mysql2 -v ' 0.4。 5'`

转载 作者:行者123 更新时间:2023-11-29 19:35:47 26 4
gpt4 key购买 nike

我正在尝试通过运行以下命令来构建 Docker 镜像:

docker build -t user:repository .

并不断收到此错误:

An error occurred while installing mysql2 (0.4.5), and Bundler cannot continue.
Make sure that `gem install mysql2 -v '0.4.5'` succeeds before bundling.
The command '/bin/sh -c /bin/bash -l -c "gem install bundler && bundle install"' returned a non-zero code: 5

我尝试过的

  1. gem install mysql2 -v '0.4.5'`

    出现错误

    错误:找不到有效的 gem 'mysql2' (= 0.4.5),原因如下: 无法从https://rubygems.org/下载数据- SSL_connect 返回=1 errno=0 state=SSLv3 读取服务器证书 B:证书验证失败 ( https://api.rubygems.org/specs.4.8.gz )

运行 this 的建议后 repo 协议(protocol)和 this网站我收到错误:

在任何存储库中都找不到有效的 gem 'C:rubygems-update-2.6.7.gem' (>= 0)

我现在陷入困境,因为我不知道这个问题源于何处。任何帮助将非常感激。

当我运行捆绑更新时,我得到一个

Could not verify the SSL certificate for https://rubygems.org/.
There is a chance you are experiencing a man-in-the-middle attack, but most likely your system doesn't have the CA certificates needed for verification. For information about
OpenSSL certificates, see. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'.

最佳答案

尝试运行捆绑更新。我遇到了类似的问题,这对我有用......祝你好运!

关于mysql - 解决错误 : An error occurred while installing mysql2 (0. 4.5),Bundler 无法继续。确保 `gem install mysql2 -v ' 0.4。 5'`,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41563512/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com