Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/63.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 bundle安装出现错误,在任何源中都找不到电子邮件_spec-1.0.0_Ruby On Rails_Ruby_Gem_Rubygems - Fatal编程技术网

Ruby on rails bundle安装出现错误,在任何源中都找不到电子邮件_spec-1.0.0

Ruby on rails bundle安装出现错误,在任何源中都找不到电子邮件_spec-1.0.0,ruby-on-rails,ruby,gem,rubygems,Ruby On Rails,Ruby,Gem,Rubygems,我是新来的。我必须打开一个已经创建的项目。该文件夹不包含bin文件夹,我将bin文件夹的内容从其他项目(该项目正在运行,我已通过以下方式创建)复制到当前文件夹。现在,当我移动到路径/to/bin/并给出rails服务器时,它给出了,在任何源中都找不到somegem名称。尝试安装捆绑包 如果我使用gem install gemname-v=versionnumber安装gem,它会正确安装。但是如果我给出命令bundle install,它会给出错误 在任何来源中都找不到电子邮件\u spec-1

我是新来的。我必须打开一个已经创建的项目。该文件夹不包含bin文件夹,我将bin文件夹的内容从其他项目(该项目正在运行,我已通过以下方式创建)复制到当前文件夹。现在,当我移动到
路径/to/bin/
并给出
rails服务器
时,它给出了,在任何源中都找不到
somegem名称
。尝试安装捆绑包

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

在任何来源中都找不到电子邮件\u spec-1.0.0

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

我还发现这个特定的版本被拉了出来,我从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安装。现在的问题是,它给出了以下错误

安装linecache(0.46)时出错,捆绑程序无法继续。确保gem安装linecache-v“0.46”成功

我尝试使用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\u 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

现在我该怎么办?

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

@Learner,共享您的Gemfile我恢复了Gemfile.lock,再次删除并继续。现在它给出了此错误
安装linecache(0.46)时发生的错误,bundler无法继续。确保
gem安装linecache-v“0.46”成功。我也这么做了,并再次安装了bundle,但没有用。