首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法创建RubyOnRails项目(由于错误,正在重试抓取器)

无法创建RubyOnRails项目(由于错误,正在重试抓取器)
EN

Stack Overflow用户
提问于 2021-02-11 05:52:31
回答 1查看 94关注 0票数 0

我无法创建RubyOnRails项目。当我运行rails new miBlog时,我得到这样的结果:

代码语言:javascript
复制
         run  bundle install
Fetching source index from https://rubygems.org/

Retrying fetcher due to error (2/4): Bundler::Fetcher::CertificateFailureError 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 http://bit.l/ruby-ssl. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'.
Retrying fetcher due to error (3/4): Bundler::Fetcher::CertificateFailureError 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 http://bit.l/ruby-ssl. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'.
Retrying fetcher due to error (4/4): Bundler::Fetcher::CertificateFailureError 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 http://bit.l/ruby-ssl. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'.
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 http://bit.l/ruby-ssl. To connect
without using SSL, edit your Gemfile sources and change 'https' to 'http'.

正如您所看到的,其中存在错误。

我有Rails 5.1.3和ruby 2.3.3p222。

如何修复这些错误,以便创建项目?

EN

回答 1

Stack Overflow用户

发布于 2021-02-24 18:41:28

  1. 使用最新版本的ruby,很可能在2.5到3.0之间
  2. 检查OpenSSL是否安装在您的系统中
  3. 检查命令行工具是否已安装,如果没有安装命令行工具
  4. 检查命令行工具是否为最新,如果没有更新命令行工具

<代码>G29

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/66145636

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档