[英]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.