hammackj / risu

Risu is Nessus parser, that converts the generated reports into a ActiveRecord database, this allows for easy report generation and vulnerability verification.
http://hammackj.github.io/risu
MIT License
63 stars 20 forks source link

Error: risu requires RubyGems version >= 1.6.0 #37

Closed zlj72 closed 13 years ago

zlj72 commented 13 years ago

Error: risu requires RubyGems version >= 1.6.0

I'm getting this error when trying to install risu:

box03:/home/jl/risu# gem install risu ERROR: Error installing risu: risu requires RubyGems version >= 1.6.0. Try 'gem update --system' to update RubyGems itself.

I have installed both rubygems 1.8 and 1.9.1

`box03:/home/jl# update-alternatives --config gem There are 2 choices for the alternative gem (providing /usr/bin/gem).

Selection Path Priority Status 0 /usr/bin/gem1.8 180 auto mode 1 /usr/bin/gem1.8 180 manual mode

but when I try to lookup for the gem version installed, I get this

box03:/home/jl/risu# gem --version 1.3.7

I'm on Debian Squeeze, and when I try to update gem by it own means, it shows this warning box03:/home/jl/risu# gem update --system ERROR: While executing gem ... (RuntimeError) gem update --system is disabled on Debian, because it will overwrite the content of the rubygems Debian package, and might break your Debian system in subtle ways. The Debian-supported way to update rubygems is through apt-get, using Debian official repositories. If you really know what you are doing, you can still update rubygems by setting the REALLY_GEM_UPDATE_SYSTEM environment variable, but please remember that this is completely unsupported by Debian.

I'm a bit scared about doing this, since it looks like it'll break all Debian dependencies. Anyone has seen this before? I'm new to ruby and probably I've something wrong with my installation

hammackj commented 13 years ago

Try /usr/bin/gem1.8 install risu

That might work. If possible I highly recommend using RVM (https://rvm.beginrescueend.com/) to manage ruby/gems.

Please let me know if that doesn't work.

-Jacob

zlj72 commented 13 years ago

It did work when installed rvm.

When tried using /usr/bin/gem1.8 I got: box03:/home/jl/risu# /usr/bin/gem1.8 install risu Building native extensions. This could take a while... ERROR: Error installing risu: ERROR: Failed to build gem native extension. /usr/bin/ruby1.8 extconf.rb extconf.rb:5:in 'require': no such file to load -- mkmf (LoadError) from extconf.rb:5 After this, I installed rvm (glad surprise that it was really easy) and installed risu: box03:~/risu$ risu -v risu - 1.4.5

Thank you Jacob