简体   繁体   English

在Rails应用上安装捆绑软件时出错

[英]Error with bundle install on Rails app

I'm trying to install Ruby on Rails on Windows using this tutorial . 我正在尝试使用本教程在Windows上安装Ruby on Rails。

I successfully finished all the steps until step 13: 我成功完成了所有步骤,直到步骤13:

Run bundle install again 再次运行bundle install

This is what I'm getting: 这就是我得到的:

C:\Users\user1>gem install rmagick --platform=ruby -- --with-opt-dir=C:\RailsIns
taller\ImageMagick
Fetching: rmagick-2.13.3.gem (100%)
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
Please report any bugs. See https://github.com/gemhome/rmagick/compare/RMagick_2
-13-2...master and https://github.com/rmagick/rmagick/issues/18
Successfully installed rmagick-2.13.3
1 gem installed
Installing ri documentation for rmagick-2.13.3...
Installing RDoc documentation for rmagick-2.13.3...

C:\Users\user1>bundle install
C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Co
uld not find bundler (>= 0) amongst [bigdecimal-1.1.0, io-console-0.3, json-1.5.
5, minitest-2.5.1, rake-0.9.2.2, rdoc-3.9.5, rmagick-2.13.3] (Gem::LoadError)
        from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:256:in `
to_spec'
        from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems.rb:1231:in `gem'
        from C:/RailsInstaller/Ruby2.0.0/bin/bundle:22:in `<main>'

What could be the problem? 可能是什么问题呢?

Update: 更新:

After running gem install bundler : 运行gem install bundler

C:\Users\user1>gem list bundler

*** LOCAL GEMS ***

bundler (1.7.7)

C:\Users\user1>bundle install
Could not locate Gemfile

I solved this problems thanks to this: 由于以下原因,我解决了这个问题:

bundle install returns "Could not locate Gemfile" 捆绑安装返回“找不到Gemfile”

C:\Users\user1>cd C:/xampp/htdocs/dev-ruby/redmine

C:\xampp\htdocs\dev-ruby\redmine>bundle install

I think you should check if bundler is installed by using $gem list bundler or even $which bundle 我认为您应该使用$gem list bundler甚至$which bundle来检查是否安装了$which bundle

If nothing is shown, then install bundler by typing gem install bundler 如果未显示任何内容,请通过输入gem install bundlergem install bundler

After that try bundle install 之后,尝试bundle install

You need to install rmagic library on your window system. 您需要在窗口系统上安装rmagic库。

Please follow blow link for more info. 请点击打击链接以获取更多信息。

http://www.redmine.org/projects/redmine/wiki/HowTo_install_rmagick_gem_on_Windows http://www.redmine.org/projects/redmine/wiki/HowTo_install_rmagick_gem_on_Windows

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

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