required modules in OS X

G

Gary Palmer

I have ruby-1.8.0 installed and working nicely on OS 10.2.6 so long as
I don't require anything from the ext folder, such as socket or tcltk.
Ruby is installed, from source, in /usr/bin. I no longer recall for
sure, but I believe I got the tar file from ruby-lang.org. From a look
at the socket folder (see below), it appears that socket.c is
compiling, but not linking. I don't really know where it is supposed to
be, but it is not in /usr/bin/ or /usr/lib/ruby/. Any help?

Gary Palmer

/Users/gary/src/ruby-1.8.0/ext/socket
/Users/gary/src/ruby-1.8.0/ext/socket/addrinfo.h
/Users/gary/src/ruby-1.8.0/ext/socket/depend
/Users/gary/src/ruby-1.8.0/ext/socket/extconf.rb
/Users/gary/src/ruby-1.8.0/ext/socket/getaddrinfo.c
/Users/gary/src/ruby-1.8.0/ext/socket/getnameinfo.c
/Users/gary/src/ruby-1.8.0/ext/socket/Makefile
/Users/gary/src/ruby-1.8.0/ext/socket/MANIFEST
/Users/gary/src/ruby-1.8.0/ext/socket/mkmf.log
/Users/gary/src/ruby-1.8.0/ext/socket/socket.bundle
/Users/gary/src/ruby-1.8.0/ext/socket/socket.c
/Users/gary/src/ruby-1.8.0/ext/socket/socket.o
/Users/gary/src/ruby-1.8.0/ext/socket/sockport.h
 
O

Ollivier Robert

[courtesy cc of this posting sent to cited author via email]

sure, but I believe I got the tar file from ruby-lang.org. From a look
at the socket folder (see below), it appears that socket.c is
compiling, but not linking. I don't really know where it is supposed to

It has been linked in the socket.bundle file. That is MacOS X equivalent of
a shared library. You should be able to find it in
/usr/local/lib/ruby/1.8/powerpc-darwin.

Running irb should show you whether it work or not:

213 [17:18] roberto@snuadh:Ruby/eproject> irb
irb(main):001:0> require "socket"
=> true
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top