“宝石......已被删除。它安装在”错误。捆绑安装不会安装宝石。如何重新安装宝石?

时间:2013-07-04 12:19:30

标签: bundler capybara-webkit

我正在尝试在XP上构建capybara-webkit。我关注this instruction。我说:

8) Clone latest version of capybara-webkit from Github:

 $ git clone git://github.com/thoughtbot/capybara-webkit.git

9) Bundle/Install capybara-webkit version:

 $ cd ruby193\capybara-webkit
 $ bundle install

我是第一次这样做的。它安装了一些宝石。然后我按照指示步骤但无法构建capybara-webkit。因此,为了再次开始,我删除了所有手动安装的gem。现在我遵循所有相同的步骤,但bundle install不再起作用。我说所有的宝石都存在:

C:\RailsInstaller\Ruby1.9.3\lib\ruby\gems\1.9.1\gems>cd capybara-webkit

C:\RailsInstaller\Ruby1.9.3\lib\ruby\gems\1.9.1\gems\capybara-webkit>bundle install
Resolving dependencies...
Using rake (0.9.2)
Using addressable (2.3.2)
Using bundler (1.3.5)
Using appraisal (0.4.0)
Using mime-types (1.22)
Using nokogiri (1.5.9)
Using rack (1.5.2)
Using rack-test (0.6.2)
Using xpath (2.0.0)
Using capybara (2.1.0)
Using json (1.8.0)
Using capybara-webkit (1.0.0) from source at .
Using ffi (1.2.0)
Using childprocess (0.3.6)
Using diff-lcs (1.1.2)
Using websocket (1.0.6)
Using libwebsocket (0.1.7.1)
Using subexec (0.0.4)
Using mini_magick (3.2.1)
Using multi_json (1.5.0)
Using rack-protection (1.3.2)
Using rspec-core (2.6.4)
Using rspec-expectations (2.6.0)
Using rspec-mocks (2.6.0)
Using rspec (2.6.0)
Using rubyzip (0.9.9)
Using selenium-webdriver (2.27.2)
Using tilt (1.3.3)
Using sinatra (1.3.5)
Your bundle is complete!
Use `bundle show [gemname]` to see where a bundled gem is installed.

但现在我用bundle show检查这些宝石,但它说它们都被删除了:

C:\RailsInstaller\Ruby1.9.3\lib\ruby\gems\1.9.1\gems\capybara-webkit>bundle show sinatra
The gem sinatra has been deleted. It was installed at:
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/sinatra-1.3.5

C:\RailsInstaller\Ruby1.9.3\lib\ruby\gems\1.9.1\gems\capybara-webkit>bundle show selenium-webdriver
The gem selenium-webdriver has been deleted. It was installed at:
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.27.2

C:\RailsInstaller\Ruby1.9.3\lib\ruby\gems\1.9.1\gems\capybara-webkit>bundle show mini_magick
The gem mini_magick has been deleted. It was installed at:
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/mini_magick-3.2.1

bundle install表示它们存在但bundle show表示它们被删除了怎么办?所以bundle install不再起作用了。我怎样才能再次使用bundle install再次安装这些宝石?

1 个答案:

答案 0 :(得分:9)