I'm just starting to study ruby. It seems that the default gems installation path is not part of Ruby. Is this normal behavior? How can I set the ruby ββdefault path? Example:
[11:53:33]wuntee:/Library/Ruby/Gems/1.8/gems/packetfu-1.0.0/examples$ sudo ruby arphood.rb
Fetching the oui.txt from IEEE, it'll be a second. Avoid this with arphood.rb <filename>.
arphood.rb:30:in `require': no such file to load -- packetfu (LoadError)
from arphood.rb:30:in `arp_everyone'
from arphood.rb:51
As you can see, packfu is installed in / Library / Ruby / Gems / 1.8 / gems /, but Ruby cannot find it ...
source
share