Note:
ruby-bundled-gems is required for net/ftp, net/imap, net/pop, and
net/smtp. For some reason Fedora’s ruby package does not automatically
install the ruby-bundled-gems package as a dependency of ruby.
sudo dnf install -y gcc make ruby-devel ruby-bundled-gems git zip nmap masscan graphviz
sudo gem install ronin
First we will need to install a C compiler (gcc or clang) and make. These are required to install certain ruby gems, which contain C extensions (aka C bindings) to other C libraries, such as the nokogiri, sqlite3, and nio4r gems.
sudo dnf install -y gcc make
Next, we will need to install Ruby >= 3.0.0, which should already be available in your system’s package manager.
sudo dnf install -y ruby-devel ruby-bundled-gems
Next we will need to install additional utilities, such as git and zip, that parts of Ronin use:
sudo dnf install -y git zip
Now that everything else is installed, it is time to install Ronin!
sudo gem install ronin
Assuming no errors occur, you should now be able to run ronin:
ronin help
Ruby and many ruby gems will not work if the LANG environment variable is
not set or set to C. Make sure that LANG is set to a UTF8 language, such as
en_US.UTF-8.
If you get an exception saying cannot load such file -- net/ftp when trying to
run ronin irb or requiring ronin/support in Ruby, this is because the
Fedora ruby-bundled-gems rpm package isn’t installed. You can fix this by
running:
sudo dnf install -y ruby-bundled-gems