--MIME MULTIPART BOUNDARY	80435792:+'1
Content-Type: text/plain; charset=US-ASCII
Content-Id: <1417539070-2 / customs.treas.gov>
Content-Transfer-Encoding: 7bit

|--------+----------------------->
|        |          ruby-talk@net|
|        |          lab.co.jp AT |
|        |          smtplink     |
|        |                       |
|        |          01/25/01     |
|        |          09:49 AM     |
|        |                       |
|--------+----------------------->
         >-----------------------------------------------------------|
         |                                                           |
         |       To:     ruby-talk / netlab.co.jp AT smtplink@ccmail   |
         |       cc:     ruby-talk / netlab.co.jp AT smtplink@ccmail,  |
         |       (bcc: MICHAEL W WILSON/NE/USCS)                     |
         |       Subject:     [ruby-talk:9879] Re: sockets...again   |
         >-----------------------------------------------------------|













--MIME MULTIPART BOUNDARY	80435792:+'1
Content-Type: text/plain; charset=US-ASCII
Content-Id: <1417539070-3 / customs.treas.gov>
Content-Transfer-Encoding: 7bit


       >>>>> "M" MICHAEL W WILSON
       <MICHAEL.W.WILSON / customs.treas.gov> writes:

       M> After my previous message regarding my inability to 'require
        "socket"',
       M> Dave suggested that I add the location of my socket.so
       M> (/usr/gnu/lib/ruby/1.6/sparc-solaris) to my LD_LIBRARY_PATH
       (should I have M> a socket.rb? I don't).  In that same
       directory, I have etc.so, pty.so, M> md5.so, tcltklib.so and a
       bunch of header files.  All of the shared M> libraries have 555
       permissions, all of the headers have 644 permissions. I M>
       added that directory to my LD_LIBRARY_PATH, but still if I do
       something

        #This is strange, I don't need LD_LIBRARY_PATH on 2.7

       #moulon% echo $LD_LIBRARY_PATH

       #moulon% ruby -ve 'require "socket" or puts "not found"'
       #ruby 1.6.2 (2000-12-25) [sparc-solaris2.7]
       #moulon%

        #Verify that you have the right $LOAD_PATH

       #moulon% ruby -e 'puts $LOAD_PATH.join("\n")'
       #/usr/local/lib/ruby/site_ruby/1.6/sparc-solaris2.7
       #/usr/local/lib/ruby/site_ruby/1.6
       #/usr/local/lib/ruby/site_ruby
       #/usr/local/lib/ruby/1.6/sparc-solaris2.7
       #/usr/local/lib/ruby/1.6
       #.
       #moulon%

       Sorry if this is hard to read, if you've ever used Lotus Notes,
        you'll know why (it doesn't mark replied to material, I have
       to do it by hand, sorry)

       sol-> ruby -e 'puts $LOAD_PATH.join("\n")'
       /usr/gnu/lib
       /usr/gnu/lib/ruby/site_ruby/1.6/sparc-solaris2.6
       /usr/gnu/lib/ruby/site_ruby/1.6
       /usr/gnu/lib/ruby/site_ruby
       /usr/gnu/lib/ruby/1.6/sparc-solaris2.6
       /usr/gnu/lib/ruby/1.6
       .
       sol-> file /usr/gnu/lib/ruby/1.6/sparc-solaris2.6/socket.so
       /usr/gnu/lib/ruby/1.6/sparc-solaris2.6/socket.so:       ELF
       32-bit MSB dynamic lib SPARC Version 1, dynamically linked, not
        stripped

       sol-> strings /usr/gnu/lib/ruby/1.6/sparc-solaris2.6/socket.so
       | head -5
       Insecure: can't shutdown socket
       `how' should be either 0, 1, 2
       Insecure: can't close socket
       getsockname(2)
       getpeername(2)

       (I can read it)

       sol-> cd /usr/gnu/lib/ruby/1.6/sparc-solaris2.6/
       sol-> ruby -e 'require "socket" or print "not found\n"'
       not found
       sol->

       I just don't get it....


        #ruby use stat(), verify this :

            #The stat()  function  obtains  information  about  the
            file
            #pointed  to  by  path. Read, write, or execute permission
             of
            #the named file is not required, but all  directories
            listed
            #in the path name leading to the file must be searchable.


       #Guy Decoux




--MIME MULTIPART BOUNDARY	80435792:+'1--