捆绑安装给出错误无法在任何源中找到email_spec-1.0.0

时间:2014-10-06 11:55:01

标签: ruby-on-rails ruby gem rubygems

我是RoR的新手。我必须打开一个已经创建的项目。该文件夹不包含bin文件夹,我将bin文件夹的内容从其他项目(运行并通过以下this创建)复制到当前。现在,当我移至path/to/bin/并提供rails server时,它会在任何来源中找不到somegem name。尝试捆绑安装。

如果我使用gem install gemname -v=versionnumber安装gem,它会正确安装。但是,如果我给出命令bundle install,则会给出错误

could not find email_spec-1.0.0 in any of the sources

我知道复制文件不是正确的方法。但是我怎样才能尝试运行该项目?或者我们如何才能特别解决这个错误。

。我还发现特定版本被拉了,我从外面从RubyGems.org下载了email_spec 1.0.0。我现在该怎么办?

编辑:: 这是我的宝石文件:

source 'http://rubygems.org'

gem 'rails', '3.0.3'

gem 'mysql2'
gem 'haml-rails'
gem 'jquery-rails'
gem 'devise'
gem 'cancan'
gem 'paperclip'
gem 'recurly'
gem 'hoptoad_notifier'
gem 'whenever', :require => false
gem "friendly_id", "~> 3.1"
gem "will_paginate"
gem "fastercsv"
gem 'meta-tags', :require => 'meta_tags'
gem 'acts-as-taggable-on'
gem 'thin'
gem 'faye', '0.5.5'
gem 'rack-ssl', :require => 'rack/ssl'
gem 'localized_country_select'

group :development, :test do
gem 'ruby-debug'
gem 'rspec-rails'
gem 'cucumber'
gem 'cucumber-rails'
gem 'capybara'
gem 'database_cleaner'
gem 'cucumber-rails'
gem 'cucumber'
gem 'rspec-rails'
gem 'spork'
gem 'launchy'
gem 'factory_girl_rails'
gem 'hpricot'
gem 'ruby_parser'
gem 'rest-client'
gem 'email_spec'
end

编辑:

根据评论,我删除了Gemfile.lock并尝试再次运行bundle install。现在问题是,它给出了以下错误

An error occured while installing linecache (0.46) and bundler can not continue. Make sure that gem install linecache -v '0.46' succeeds

我尝试过命令gem install linecache -v = 0.46

并且它给出了一些错误Gemfiles将保持安装在C:\ Ruby193 \ lib \ ruby​​ \ gems \ 1.9.1 \ gems \ linecache-0.46中进行检查。 结果记录到C:\ Ruby193 \ lib \ ruby​​ \ gems \ 1.9.1 \ gems \ linecache-0.46 \ ext \ gem_make.out

此特定文件包含以下内容:

C:/Ruby193/bin/ruby.exe extconf.rb
Can't handle 1.9.x yet
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of 
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Provided configuration options:
 --with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=C:/Ruby193/bin/ruby

我现在该怎么办?

1 个答案:

答案 0 :(得分:1)

尝试删除 Gemfile.lock 并再次运行捆绑安装

相关问题