2011-07-26 67 views
1

試圖安裝寶石激光器時,出現激光需要激光的錯誤!如何調試由於循環依賴而失敗的rubygem安裝?

我沒有那麼多尋求幫助如何安裝激光,但如何調試出了什麼問題

以下是我所得到的,當我嘗試香草安裝的本地版本

C:\Documents and Settings\a.grimm\Desktop\code\sandbox\laser>gem install pkg\laser-0.5.2.gem 
Fetching: polyglot-0.3.1.gem (100%) 
Fetching: treetop-1.4.9.gem (100%) 
Fetching: ripper-plus-1.3.0.gem (100%) 
Fetching: axiom_of_choice-1.0.0.gem (100%) 
Fetching: stream-0.5.gem (100%) 
Fetching: object_regex-1.0.1.gem (100%) 
Fetching: trollop-1.16.2.gem (100%) 
ERROR: Error installing pkg\laser-0.5.2.gem: 
     laser requires laser (>= 0) 

再次嘗試:

C:\Documents and Settings\a.grimm\Desktop\code\sandbox\laser>gem install pkg\laser-0.5.2.gem 
ERROR: Error installing pkg\laser-0.5.2.gem: 
     laser requires laser (>= 0) 

我試圖使用由gem help install

列出的交換機
C:\Documents and Settings\a.grimm\Desktop\code\sandbox\laser>gem install --verbose pkg\laser-0.5.2.gem 
GET http://rubygems.org/latest_specs.4.8.gz 
302 Found 
GET http://production.s3.rubygems.org/latest_specs.4.8.gz 
304 Not Modified 
GET http://rubygems.org/specs.4.8.gz 
302 Found 
GET http://production.s3.rubygems.org/specs.4.8.gz 
304 Not Modified 
Installing gem laser-0.5.2 
Using local gem C:/Ruby19/lib/ruby/gems/1.9.1/cache/laser-0.5.2.gem 
ERROR: Error installing pkg\laser-0.5.2.gem: 
     laser requires laser (>= 0) 

C:\Documents and Settings\a.grimm\Desktop\code\sandbox\laser>gem install --backtrace pkg\laser-0.5.2.gem 
ERROR: Error installing pkg\laser-0.5.2.gem: 
     laser requires laser (>= 0) 

C:\Documents and Settings\a.grimm\Desktop\code\sandbox\laser>gem install --debug pkg\laser-0.5.2.gem 
Exception `NameError' at C:/Ruby19/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:163 - uninitialized constant Gem::Commands::InstallCommand 
Exception `LoadError' at C:/Ruby19/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36 - no such file to load -- psych 
Exception `LoadError' at C:/Ruby19/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60 - no such file to load -- psych 
Exception `NoMethodError' at C:/Ruby19/lib/ruby/site_ruby/1.9.1/rubygems/package/tar_input.rb:53 - undefined method `readpartial' for #<Gem::Package::TarReader::Entry:0x1a95360> 
Exception `NoMethodError' at C:/Ruby19/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:449 - undefined method `readpartial' for #<Gem::Package::TarReader::Entry:0x1a95360> 
Exception `IOError' at C:/Ruby19/lib/ruby/site_ruby/1.9.1/rubygems/format.rb:45 - closed stream 
Exception `Gem::LoadError' at C:/Ruby19/lib/ruby/site_ruby/1.9.1/rubygems.rb:926 - Could not find RubyGem sources (> 0.0.1) 

Exception `NoMethodError' at C:/Ruby19/lib/ruby/site_ruby/1.9.1/rubygems/package/tar_input.rb:53 - undefined method `readpartial' for #<Gem::Package::TarReader::Entry:0x2bedb00> 
Exception `NoMethodError' at C:/Ruby19/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:449 - undefined method `readpartial' for #<Gem::Package::TarReader::Entry:0x2bedb00> 
Exception `IOError' at C:/Ruby19/lib/ruby/site_ruby/1.9.1/rubygems/format.rb:45 - closed stream 
Exception `Errno::EEXIST' at C:/Ruby19/lib/ruby/1.9.1/fileutils.rb:243 - File exists - C:/Ruby19/lib/ruby/gems/1.9.1 
Exception `Gem::InstallError' at C:/Ruby19/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:208 - laser requires laser (>= 0) 
ERROR: Error installing pkg\laser-0.5.2.gem: 
     laser requires laser (>= 0) 

我試過看https://github.com/michaeledgar/laser/blob/master/laser.gemspechttps://github.com/michaeledgar/laser/blob/master/Rakefile,但找不到循環依賴。

我使用的解決方法是去Jedi並使用--force選項。現在我正在處理不同的安裝錯誤!

+0

你有沒有試過與包維護者交談?我不是寶石專家,但這聽起來好像是他包裝中的一個錯誤。 – Andy

回答

0

根據bug report,這是由於珠寶商和捆綁商之間的衝突。這就解釋了爲什麼我無法確定具體的違規代碼行。