我刚开始学习Ruby。似乎默认的gem安装路径不是Ruby的一部分。这是正常行为吗?我该如何设置默认的Ruby路径?例如:
[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
正如您所看到的,packetfu已安装在/Library/Ruby/Gems/1.8/gems/中,但是Ruby找不到它...
gem environment
打印出什么内容? - Brian