Vidar Hokstad
4/9/2008 9:34:00 AM
On Apr 9, 1:25 am, Jon Rust <wonderdog+rt...@gmail.com> wrote:
>irb(main):001:0> require 'socket'
> LoadError: no such file to load -- socket
> from (irb):1:in `require'
> from (irb):1
>
> I see in the console from 'make' that socket was built cleanly. And it's
> in the lib directory:
>
> lib/ruby/1.8/i686-linux/socket.so
>
It may be a path issue. "strace" in a shell is your friend. Run
"strace ruby yourscript.rb 2>&1 | grep socket | more". It'll how you
what files/directories your new Ruby interpreter actually tries
loading the socket extension from. (strace shows you what system calls
your app calls - it's very flexible, and well worth learning how to
use)
Vidar