Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/67.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 在Rails应用程序上安装捆绑包时出错_Ruby On Rails_Ruby_Windows_Bundle Install - Fatal编程技术网

Ruby on rails 在Rails应用程序上安装捆绑包时出错

Ruby on rails 在Rails应用程序上安装捆绑包时出错,ruby-on-rails,ruby,windows,bundle-install,Ruby On Rails,Ruby,Windows,Bundle Install,我正在尝试使用在Windows上安装RubyonRails 我成功地完成了步骤13之前的所有步骤: 再次运行捆绑安装 这就是我得到的: 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 DevKi

我正在尝试使用在Windows上安装RubyonRails

我成功地完成了步骤13之前的所有步骤:

再次运行
捆绑安装

这就是我得到的:

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>'

我认为您应该使用
$gem list bundler
甚至
$which bundle
检查bundler是否已安装


如果未显示任何内容,则通过键入
gem install bundler


之后,请尝试捆绑安装

您需要在Windows系统上安装rmagic库

请点击blow链接了解更多信息


我解决了这个问题,这要归功于:


您是否这样设置路径:
set CPATH=C:\Program Files\ImageMagick-6.7.7-Q16\include
set LIBRARY\u path=C:\Program Files\ImageMagick-6.7.7-Q16\lib
这是从您的一个问题的早期答案中提取的。是的:C:\Users\user1>set CPATH=C:\RailsInstaller\ImageMagick\include C:\Users\user1>setLIBRARY\u PATH=C:\RailsInstaller\ImageMagick\lib
gem安装bundler
?C:\Users\user1>gem安装bundler获取:bundler-1.7.7.gem(100%)成功安装bundler-1.7.7 1 gem安装bundler-1.7.7的ri文档。。。正在安装bundler-1.7.7的RDoc文档。。。C:\Users\user1>捆绑安装找不到文件
C:\Users\user1>gem list bundler

*** LOCAL GEMS ***

bundler (1.7.7)

C:\Users\user1>bundle install
Could not locate Gemfile
C:\Users\user1>cd C:/xampp/htdocs/dev-ruby/redmine

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