Today when I check routine update, whatweb has an update form 0.4.7 to 0.4.8.
After the update, I got an error when running it:
Code:
root@vulman-bt5r1:/pentest/enumeration/web/whatweb# ./whatweb
/var/lib/gems/1.9.2/gems/gems/rchardet-1.3/lib/rchardet.rb:25:in `require': /var/lib/gems/1.9.2/gems/gems/rchardet-1.3/lib/rchardet/chardistribution.rb:60: syntax error, unexpected ':', expecting keyword_then or ';' or '\n' (SyntaxError)
/var/lib/gems/1.9.2/gems/gems/rchardet-1.3/lib/rchardet/chardistribution.rb:61: syntax error, unexpected ':', expecting keyword_then or ';' or '\n'
/var/lib/gems/1.9.2/gems/gems/rchardet-1.3/lib/rchardet/chardistribution.rb:75: syntax error, unexpected ':', expecting keyword_then or ';' or '\n'
/var/lib/gems/1.9.2/gems/gems/rchardet-1.3/lib/rchardet/chardistribution.rb:84: syntax error, unexpected keyword_end, expecting $end
	from /var/lib/gems/1.9.2/gems/gems/rchardet-1.3/lib/rchardet.rb:25:in `<top (required)>'
	from ./whatweb:79:in `require'
	from ./whatweb:79:in `block in <main>'
	from ./whatweb:75:in `each'
	from ./whatweb:75:in `<main>'
I tried adding rchardet by gem install rchardet and it doesn't work.
Changing to ruby 1.8 gives me another error:
Code:
root@vulman-bt5r1:/pentest/enumeration/web/whatweb# ./whatweb
/var/lib/gems/1.9.2/gems/gems/json-1.6.5/ext/json/ext/json/ext/parser.so: [BUG] Segmentation fault
ruby 1.8.7 (2010-01-10 patchlevel 249) [x86_64-linux]

Aborted
Is there a fix for this?