On Tue, Aug 12, 2003 at 12:39:12AM +0900, Venkat wrote:
> Instead of fighting with them, is there any way I can compile Ruby 1.8
> in our Sun boxes to create a build I can take and and install in the
> customer's Solaris box?

Something like this ought to do the trick:

tar -czf rubydist.tar.gz \ 
  /usr/local/lib/ruby/1.8 /usr/local/lib/ruby/site-ruby/1.8 \
  /usr/local/bin/ruby /usr/local/bin/irb /usr/local/bin/erb \
  /usr/local/lib/libruby-static.a

This has the advantage that any RAA packages you added to the core will also
be in your tarball.

If you configured with --enable-dynamic then you'll have to include
/usr/local/lib/libruby.so* as well.

Oh, that assumes you have a sensible GNU tar, if stock Solaris then
  tar -cf rubydist.tar ...list of files...
  gzip -9 rubydist.tar

You should do 'ldd /usr/local/bin/ruby' to see what it's dynamically linked
against, and make sure the target system has the same libraries: e.g.

$ ldd /usr/local/bin/ruby
        libdl.so.1 =>    /lib/libdl.so.1
        libcrypt_i.so.1 =>       /lib/libcrypt_i.so.1
        libm.so.1 =>     /lib/libm.so.1
        libc.so.1 =>     /lib/libc.so.1
        libgen.so.1 =>   /lib/libgen.so.1
        /usr/platform/SUNW,Ultra-80/lib/libc_psr.so.1

HTH,

Brian.