简体   繁体   English

无法启动Rails服务器

[英]Cannot start rails server

I tried to rails server 我试图rails server

= Could not find rake-12.0.0 in any of the sources Run bundle install to install missing gems. =在任何来源中均未找到rake-12.0.0。运行软件包安装以安装缺少的gem。

I tried to bundle update/ install It goes to the error msg below . 我尝试bundle update/ install转到下面的错误msg。

在此处输入图片说明

尝试将Gemfile行从source 'https://rubygems.org'更改为source 'http://rubygems.org'

Follow this step: 请按照以下步骤操作:

  1. gem install rack
  2. Run bundle update rake for updating your Gemfile.lock file. 运行bundle update rake以更新Gemfile.lock文件。
  3. Delete the Gemfile.lock and again bundle install . 删除Gemfile.lock,然后再次bundle install

Try following commands: 尝试以下命令:

gem update --system

bundle install

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM