简体   繁体   English

Ruby on Rails狂欢商务

[英]Ruby on rails spree commerce

When I install spree in a new Rails project I get following error: 在新的Rails项目中安装狂欢时,出现以下错误:

git://github.com/spree/spree_auth_devise.git (at 1-2-stable) is not checked  out. Please run 'bundle install'

*Would you like to install the default gateways? (yes/no) [yes] yes Would you like to install the default authentication system? (yes/no)
[yes] yes Would you like to run the migrations? (yes/no) [yes] yes
Would you like to load the seed data? (yes/no) [yes] yes Would you
like to load the sample data? (yes/no) [yes] yes
     gemfile  spree
     gemfile  spree_usa_epay
     gemfile  spree_skrill
     gemfile  spree_auth_devise
         run  bundle install from "." C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/source.rb:582:in
' '': No such file or directory - git clone
"git://github.com/spree/spree_auth_dev ise.git"
"C:/Ruby193/lib/ruby/gems/1.9.1/cache/bundler/git/spree_auth_devise-683
51354588ecb7fa5d7bc278ebd86436a50d33d" --bare --no-hardlinks
(Errno::ENOENT)
  from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/source.rb:582:in 'git'
  from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/source.rb:543:in 'checkout'
  from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/source.rb:769:in 'specs'
  from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/definition.rb:491:in 'block in converge_locked_specs'
  from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/definition.rb:480:in 'each'
  from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/definition.rb:480:in 'converge_locked_specs'
  from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/definition.rb:166:in 'resolve'
  from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/definition.rb:113:in 'specs'
  from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/definition.rb:108:in 'resolve_remotely!'
  from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/installer.rb:81:in 'run'
  from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/installer.rb:14:in 'install'
  from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/cli.rb:230:in 'install'
  from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/vendor/thor/task.rb:27:in 'run'
  from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/vendor/thor/invocation.rb:120:in 'invoke_task'
  from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/vendor/thor.rb:275:in 'dispatch'
  from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/vendor/thor/base.rb:408:in 'start'
  from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/bin/bundle:14:in 'block in <top (required)>'
  from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/friendly_errors.rb:4:in 'with_friendly_errors'
  from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/bin/bundle:14:in '<top (required)>'
  from C:/Ruby193/bin/bundle:23:in 'load'
  from C:/Ruby193/bin/bundle:23:in '<main>' git://github.com/spree/spree_auth_devise.git (at 1-2-stable) is not checked out. Please run 'bundle install'

The clue is here: 线索在这里:

run  bundle install from "." C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/source.rb:582:in
' '': No such file or directory - git clone

You are running this from within a windows console that does not have 'git' in its path. 您是从Windows控制台中运行此程序的,该控制台的路径中没有“ git”。 Either run it from the Git Bash console, or add git to your path. 从Git Bash控制台运行它,或将git添加到您的路径。

Looks like there's a space in the github url for spree_auth_devise in your Gemfile. 看起来github网址中的Gemfile中有spree_auth_devise的空间。 You probably got it in there by accident when editing the file. 编辑文件时,您可能是无意间将它放在了那里。 Clear it out and rerun bundle install and see if that works. 清除它,然后重新运行bundle install然后查看是否可行。

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

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