Zapotek/arachni — Issue #119: gemspec dependencies seem wrong
Author: todb-r7
Created: 2011-12-12 23:25:57+00:00
State: open

This doesn't seem correct in your gemspec:

> s.add_dependency "nokogiri", "~> 1.4.4"

I think that tilde-wakka (or whatever that thing is called) is causing some unexpected installation behaviors. The current latest for Nokogiri is 1.5.0.

Anyway, here's why. I realize this is almost certainly Nokogiri's problem and not yours, but it's preventing normal use of Arachni on Ubuntu 10.04 after fresh gem install.

todb@mazikeen:~/git/rapid7/metasploit-framework$ irb
ruby-1.9.1-p378 :001 > require 'nokogiri'
=> true
ruby-1.9.1-p378 :002 > Nokogiri::VERSION
=> "1.5.0"
ruby-1.9.1-p378 :003 > exit
todb@mazikeen:~/git/rapid7/metasploit-framework$ gem list -d nokogiri

*** LOCAL GEMS ***

nokogiri (1.5.0)
Authors: Aaron Patterson, Mike Dalessio, Yoko Harada
Rubyforge: http://rubyforge.org/projects/nokogiri
Homepage: http://nokogiri.org
Installed at: /home/todb/.rvm/gems/ruby-1.9.1-p378

Nokogiri (鋸) is an HTML, XML, SAX, and Reader parser
todb@mazikeen:~/git/rapid7/metasploit-framework$ rvm gemset use arachni
Using /home/todb/.rvm/gems/ruby-1.9.1-p378 with gemset arachni
todb@mazikeen:~/git/rapid7/metasploit-framework$ gem list -d nokogiri

*** LOCAL GEMS ***

nokogiri (1.4.7)
Authors: Aaron Patterson, Mike Dalessio
Rubyforge: http://rubyforge.org/projects/nokogiri
Homepage: http://nokogiri.org
Installed at: /home/todb/.rvm/gems/ruby-1.9.1-p378@arachni

Nokogiri (鋸) is an HTML, XML, SAX, and Reader parser
todb@mazikeen:~/git/rapid7/metasploit-framework$ irb
ruby-1.9.1-p378 :001 > require 'nokogiri'
NameError: undefined method `attributes' for class `Nokogiri::XML::AttributeDecl'
from /home/todb/.rvm/gems/ruby-1.9.1-p378@arachni/gems/nokogiri-1.4.7/lib/nokogiri/xml/attribute_decl.rb:7:in `undef_method'
from /home/todb/.rvm/gems/ruby-1.9.1-p378@arachni/gems/nokogiri-1.4.7/lib/nokogiri/xml/attribute_decl.rb:7:in `'
from /home/todb/.rvm/gems/ruby-1.9.1-p378@arachni/gems/nokogiri-1.4.7/lib/nokogiri/xml/attribute_decl.rb:5:in `'
from /home/todb/.rvm/gems/ruby-1.9.1-p378@arachni/gems/nokogiri-1.4.7/lib/nokogiri/xml/attribute_decl.rb:2:in `'
from /home/todb/.rvm/gems/ruby-1.9.1-p378@arachni/gems/nokogiri-1.4.7/lib/nokogiri/xml/attribute_decl.rb:1:in `'
from /home/todb/.rvm/gems/ruby-1.9.1-p378@arachni/gems/nokogiri-1.4.7/lib/nokogiri/xml.rb:5:in `require'
from /home/todb/.rvm/gems/ruby-1.9.1-p378@arachni/gems/nokogiri-1.4.7/lib/nokogiri/xml.rb:5:in `'
from /home/todb/.rvm/gems/ruby-1.9.1-p378@arachni/gems/nokogiri-1.4.7/lib/nokogiri.rb:36:in `require'
from /home/todb/.rvm/gems/ruby-1.9.1-p378@arachni/gems/nokogiri-1.4.7/lib/nokogiri.rb:36:in `'
from (irb):1:in `require'
from (irb):1
from /home/todb/.rvm/rubies/ruby-1.9.1-p378/bin/irb:16:in `

'
ruby-1.9.1-p378 :002 >