[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

required modules in OS X

Gary Palmer

10/10/2003 12:11:00 AM

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


1 Answer

Ollivier Robert

10/10/2003 3:19:00 PM

0

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

In article <3AC55277-FAB6-11D7-9900-000A956D2FA8@ccmail.nevada.edu>,
Gary Palmer <gary.palmer@ccmail.nevada.edu> wrote:
> 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

--
Ollivier ROBERT -=- Eurocontrol EEC/AMI -=- roberto@eurocontrol.fr
Usenet Canal Historique FreeBSD: The Power to Serve!