From: Joel VanderWerf Date: 2008-07-09T05:41:33+09:00 Subject: Re: require 'socket' returns false in windows? David Miller wrote: > I have two windows computers that return false when the following > statement is executed: > > require 'socket' > > Both computers are XP loaded with 1.8.6 via the one click installer. On > one of the windows machines I am able to disable the firewall which > makes no difference. The other windows machine does not have a local > fire wall. I know that require is finding the file, because I get a > completely different message if I require something that doesn't exist. > I am wondering if this is an initialization error, or a false false. > > I also have a Linux machine. On my Linux Machine, the statement returns > true as expected. > > What can I do to figure out what is causing this? It just means that socket has already been loaded: $ RUBYOPT="" ruby -e 'p require("socket"); p require("socket")' true false (I had to clear RUBYOPT to show this because otherwise gems was apparently loading socket.) -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407