简体   繁体   English

无法运行Rails服务器,找不到Gem'rail(4.2.5.1)x86-mingw32'

[英]Can't Run Rails Server, Could Not Find Gem 'rails(4.2.5.1) x86-mingw32'

I'm trying to learn Ruby on Rails. 我正在尝试学习Ruby on Rails。 Currently been trying out Rails framework. 目前一直在尝试Rails框架。 I've installed it. 我安装了它。 Create new project, but when I try to run: 创建新项目,但是当我尝试运行时:

rails server rails服务器

I get back an error: 我收到了一个错误:

Could not find gem 'rails (= 4.2.5.1) x86-mingw32' in any of the gem sources listed in your Gemfile or available on this machine. 在Gemfile中列出的或本机上可用的任何gem源中找不到gem'rail(= 4.2.5.1)x86-mingw32'。 Run bundle install to install missing gems. 运行bundle install以安装缺少的gem。

I've installed bundle as suggested. 我按照建议安装了捆绑包。 Had few problems with installing it as well, but I've found a soultion on the internet. 安装它的问题也很少,但我在互联网上找到了灵魂。

Before bundle install I was getting another error saying that could not find gem 'tzinfo-data (>=0) x86-mingw32'; 在捆绑安装之前,我收到另一个错误,说无法找到gem'tzinfo-data(> = 0)x86-mingw32'; so i installed this gem: gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw] ; 所以我安装了这个gem:gem'tzinfo-data',平台:[:mingw,:mswin,:x64_mingw]; and it worked. 它起作用了。

I'm running windows 7, please help, BIG THANKS. 我正在运行Windows 7,请大家帮帮忙。

This one worked for me. 这个对我有用。 If it is useless please let me know. 如果没用,请告诉我。

gem install rails -v 4.2.5.1

暂无
暂无

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

相关问题 找不到gem'rails x86-mingw32' - Could not find gem 'rails x86-mingw32' 运行 rails 服务器时找不到 gem 'rails (= 4.2.5) x86-mingw32' - Could not find gem 'rails (= 4.2.5) x86-mingw32' when running rails server 无法运行Rails服务器! 找不到gem'rails x86-mingw32' - Couldn't run rails server! gem 'rails x86-mingw32' not found Ruby On Rails:therubyracer x86-mingw32丢失的宝石 - Ruby On Rails: therubyracer x86-mingw32 missing gems 在 Gemfile 中列出的任何 gem 源中都找不到 gem 'tzinfo-data x86-mingw32'。 (Bundler::GemNotFound) - Could not find gem 'tzinfo-data x86-mingw32' in any of the gem sources listed in your Gemfile. (Bundler::GemNotFound) 找不到在轨道上运行服务器ruby的gem'byebug x64-mingw32'吗? - Could not find gem 'byebug x64-mingw32' for run server ruby on rails? 在这台机器上可用的宝石中找不到宝石'tzinfo-data(> = 0)x86-mingw32'。 运行bundle install以安装缺少的gem - could not find gem 'tzinfo-data (>=0) x86-mingw32' in the gems available on this machine. Run bundle install to install missing gems 找不到 gem 'rails (= 4.2.4) x64-mingw32' - Could not find gem 'rails (= 4.2.4) x64-mingw32' Rails服务器无法运行 - 找不到gem错误 - Rails server won't run - Could not find gem error Bundler 找不到 gem “rails” 的兼容版本 | 在 Gemfile 中:rails (~> 6.1.0) x64-mingw3 - Bundler could not find compatible versions for gem “rails” | In Gemfile: rails (~> 6.1.0) x64-mingw3
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM