在任何来源中都找不到 capistrano-2.13.3 [英] Could not find capistrano-2.13.3 in any of the sources

查看:58
本文介绍了在任何来源中都找不到 capistrano-2.13.3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 http 设置了 ruby​​ on rails 环境://jaysonrowe.blogspot.com/2012/04/installing-ruby-and-rails-on-fedora.html.我安装了 mysql 5.5.现在,当我从 bitbucket 克隆一个项目并运行 bundle install 时,出现以下错误:

I setup ruby on rails environment using http://jaysonrowe.blogspot.com/2012/04/installing-ruby-and-rails-on-fedora.html. I installed mysql 5.5. Now when I clone a project from bitbucket and run bundle install, I get following error:

[xyz@xyz ruby_repo]$ bundle install
Fetching gem metadata from http://rubygems.org/......
Fetching gem metadata from http://rubygems.org/..
Could not find capistrano-2.13.3 in any of the sources

当我在 ruby​​_repo 目录中执行 rails -v 时,出现以下错误:

When I execute rails -v in ruby_repo directory, I get following error:

[xyz@xyz ruby_repo]$  rails -v
Could not find abstract-1.0.0 in any of the sources
Run `bundle install` to install missing gems.

下面是我的 Gemfile:

Below is my Gemfile:

source 'http://rubygems.org'

gem 'rails', '3.0.10'

# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'rmagick'
gem "will_paginate", "~> 3.0.pre2"
gem 'mysql2','0.2.7'
gem "nokogiri"
gem 'activemerchant', :require => 'active_merchant'
gem "webrobots", "~> 0.0.10"
gem 'mixpanel'
gem 'thinking-sphinx', '2.0.10'
gem 'whenever', :require => false
gem 'json'
gem 'vimeo'
gem "koala"
gem 'typhoeus'
gem 'delayed_job_active_record'
gem "delayed_job"
gem 'mini_fb'
gem 'daemons'
gem 'annotate'
gem 'capistrano'
gem 'rvm-capistrano'
gem 'grosser-ssl_requirement', :require => 'ssl_requirement'
gem 'acts-as-taggable-on'
gem 'capistrano'
gem 'rvm-capistrano'
# Use unicorn as the web server
# gem 'unicorn'

# Deploy with Capistrano
#gem 'capistrano'
#gem 'capistrano-ext'
#To use debugger (ruby-debug for Ruby 1.8.7+, ruby-debug19 for Ruby 1.9.2+)
# gem 'ruby-debug'


# Bundle the extra gems:
# gem 'bj'
# gem 'nokogiri'
# gem 'sqlite3-ruby', :require => 'sqlite3'
# gem 'aws-s3', :require => 'aws/s3'

# Bundle gems for the local environment. Make sure to
# put test-only gems in this group so their generators
# and rake tasks are available in development mode:
# group :development, :test do
#   gem 'webrat'
# end

当我执行 gem list 时,我得到以下输出

When I execute gem list, I get following output

*** LOCAL GEMS ***

actionmailer (3.2.8)
actionpack (3.2.8)
activemodel (3.2.8)
activerecord (3.2.8)
activeresource (3.2.8)
activesupport (3.2.8)
arel (3.0.2)
builder (3.0.4)
bundler (1.2.1)
capistrano (2.13.4)
coffee-rails (3.2.2)
coffee-script (2.2.0)
coffee-script-source (1.4.0)
erubis (2.7.0)
execjs (1.4.0)
highline (1.6.15)
hike (1.2.1)
i18n (0.6.1)
journey (1.0.4)
jquery-rails (2.1.3)
json (1.7.5)
mail (2.4.4)
mime-types (1.19)
multi_json (1.3.6)
mysql2 (0.3.11)
net-scp (1.0.4)
net-sftp (2.0.5)
net-ssh (2.6.1)
net-ssh-gateway (1.1.0)
polyglot (0.3.3)
rack (1.4.1)
rack-cache (1.2)
rack-ssl (1.3.2)
rack-test (0.6.2)
rails (3.2.8)
railties (3.2.8)
rake (0.9.2.2)
rdoc (3.12)
rubygems-bundler (1.1.0)
rvm (1.11.3.5)
sass (3.2.1)
sass-rails (3.2.5)
sprockets (2.1.3)
sqlite3 (1.3.6)
thor (0.16.0)
tilt (1.3.3)
treetop (1.4.11)
tzinfo (0.3.33)
uglifier (1.3.0)

但是,当我创建一个全新的项目时,我不会遇到任何此类问题.谁能告诉我可能是什么问题?

However when I create a completely new project, I don't face any such issue. Can anyone please tel me what might be the issue?

推荐答案

删除 Gemfile.lock 的内容或文件本身.

Delete the contents of Gemfile.lock or the file itself.

这篇关于在任何来源中都找不到 capistrano-2.13.3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆