捆绑远程错误:找不到存储库

时间:2013-04-19 08:39:28

标签: ruby-on-rails git github

我想部署rails3的示例项目。当我运行'bundle install'时,它告诉我远程错误:找不到存储库。我是git,github和rails3的新手。但是我已经创建了一个github帐号和配置git和github well.i不知道发生了什么事情。如果有什么可以提供帮助,我将非常感谢!

这是控制台消息(ubuntu 12.04LST):

magic @ magic-ThinkPad-T430u:〜/文档/ rails / ticketee-book $ bundle

Fetching gem metadata from http://rubygems.org/.......
Fetching gem metadata from http://rubygems.org/..
Fetching git://github.com/radar/rack-test
fatal: remote error: Repository not found.
Git error: command `git clone 'git://github.com/radar/rack-test'
"/home/magic/.rvm/gems/ruby-1.9.3-p392@rails3.2/cache/bundler/git/rack-test-
8ce034d275474b0b137179c1bd5be3e5ee2e2464" 
--bare --no-hardlinks` in directory /home/magic/文档/rails/ticketee-book has failed.

这是gemfile:

source 'http://rubygems.org'

gem 'rails', :git => "git://github.com/rails/rails", :branch => "3-1-stable"
# gem 'arel',      :git => 'git://github.com/rails/arel.git'
gem 'rack'
gem 'sprockets', :git => "git://github.com/sstephenson/sprockets.git"

gem 'sqlite3'

gem 'sass', '~> 3.1.0.alpha'
gem 'coffee-script'

gem 'dynamic_form'

gem 'devise', :git => "git://github.com/plataformatec/devise.git"
gem 'cancan'

gem 'paperclip', :git => "git://github.com/thoughtbot/paperclip.git"

gem 'searcher'
gem 'kaminari'

gem 'jquery-rails'
gem "oa-oauth", :require => "omniauth/oauth"
gem "delayed_job"

# gem "forem", :git => "git://github.com/radar/forem"
gem "ticketee-forem", :require => "forem", :path => "../forem"

gem 'sinatra'

group :test, :development do
  gem 'gmail'
  gem 'rspec-rails', '~> 2.6.1.beta1'
end

group :test do
  gem 'rack-test', :git => "git://github.com/radar/rack-test"
  gem 'cucumber-rails', :git => "git://github.com/cucumber/cucumber-rails"
  gem 'capybara'
  gem 'database_cleaner'
  gem 'factory_girl'
  gem 'email_spec'
  gem 'launchy'
end

group :production do
  gem 'pg'
end

2 个答案:

答案 0 :(得分:1)

Gemfiletest群组中,您有以下内容

gem 'rack-test', :git => "git://github.com/radar/rack-test"

它将指示bundler克隆存储库并将其内容用作gem。由于存储库在Github上不再存在,bundle失败。

您应该编辑Gemfile并使用新的存储库位置或使用rubygems.org中发布的gem。最后,您必须编辑gemfile以使用以下替代方法之一:

gem 'rack-test', :git => "https://github.com/brynary/rack-test.git"
# or
gem "rack-test"

答案 1 :(得分:0)

不,问题是存储库不再存在了。尝试在新地址下载存储库:

git clone git://github.com/brynary/rack-test.git

克隆完成后,在终端中执行:

cd rack-test

现在,当您执行very时,您处于git clone目录中,然后尝试运行命令:

bundle install --path vendor/bundle

一切都应该有效