From: Resident Moron Date: 2012-03-29T19:34:39+09:00 Subject: uninitialized constant SOCKSSocket I am running ruby 1.9.3 on a linux box. I would like to use SOCKSSocket, however, I continue to run into the following error: uninitialized constant SOCKSSocket simple test using IRB irb(main):001:0> require 'resolv-replace' => true irb(main):002:0> SOCKSSocket NameError: uninitialized constant SOCKSSocket from (irb):2 from /usr/local/bin/irb:12:in `
' here is the source code directly from resolv-replace.rb class SOCKSSocket < TCPSocket # :stopdoc: alias original_resolv_initialize initialize # :startdoc: def initialize(host, serv) original_resolv_initialize(IPSocket.getaddress(host), port) end end if defined? SOCKSSocket I can't help but think that I need to install some dependency needed to enable socks or something. Anything would be helpful. -- Posted via http://www.ruby-forum.com/.