From: Brad Cox Date: 2002-07-13T21:09:47+09:00 Subject: Re: Socket problems on FreeBSD Thanks. See below for comparables... At 11:51 AM +0900 7/13/02, YANAGAWA Kazuhisa wrote: >Hmm.... Not a solution but just for your information, I got following >result: > > > uname -sr > FreeBSD 4.5-RELEASE bash-2.04$ uname -sr FreeBSD 4.1.1-STABLE > > ruby -v -rsocket -e 'TCPServer.new("127.0.0.1", 8080)' > ruby 1.7.2 (2002-05-07) [i386-freebsd] ruby 1.6.7 (2002-03-01) [i386-freebsd4.1.1] -e:1:in `new': Invalid argument - "bind(2)" (Errno::EINVAL) from -e:1 > > ruby -v -rsocket -e 'TCPServer.new("127.0.0.1", 80)' > ruby 1.7.2 (2002-05-07) [i386-freebsd] > -e:1:in `initialize': Permission denied - "bind(2)" (Errno::EACCES) > from -e:1:in `new' > from -e:1 bash-2.04$ ruby -v -rsocket -e 'TCPServer.new("127.0.0.1", 80)' ruby 1.6.7 (2002-03-01) [i386-freebsd4.1.1] -e:1:in `new': Invalid argument - "bind(2)" (Errno::EINVAL) from -e:1 >What's the version of your ruby? Above. Do you think upgrading ruby might help? -- Brad Cox, PhD; bcox@virtualschool.edu 703 361 4751 o For industrial age goods there were checks and credit cards. For everything else there is http://virtualschool.edu/mybank o Java Interactive Learning Environment http://virtualschool.edu/jile o Java Web Application Architecture: http://virtualschool.edu/jwaa