On Thu, Jul 24, 2003 at 03:26:49PM +0900, nobu.nokada / softhome.net wrote:
> > Ah, there it is. But this now seems inconsistent. If you're going to put the
> > library in /usr/local/lib, surely ruby.h should be installed in
> > /usr/local/include?
> 
> Maybe, /usr/local/include/ruby-1.8?  Or, as you mentioned,
> multiple versions won't be possible to coexist.

But same applies to /usr/local/lib/libruby-static.a

I'm sure this has been discussed before at length before the decision was
made to change it. But to me it seems to be consistent then both the library
and headers should be in the same system-expected place: either

(1)
/usr/local/lib/libruby[-static].a
/usr/local/include/ruby.h

OR

(2)
/usr/local/lib/ruby/1.8/i386-freebsd-4.7/ruby.h
                                         libruby[-static].a
(as it was for 1.6.8)
OR

(3) like (2), but with symlinks from the first place to the second.

Also, why "libruby-static.a" instead of "libruby.a" ? I don't know of
anything else that uses a different name for the .a and the .so.

$ ls -l /usr/lib/libc.*
-r--r--r--  1 root  wheel  1213072 Mar 31 01:16 /usr/lib/libc.a
lrwxrwxrwx  1 root  wheel        9 May 19 21:19 /usr/lib/libc.so -> libc.so.4
-r--r--r--  1 root  wheel   567860 Mar 31 01:16 /usr/lib/libc.so.4

> > Also - I don't get a .so. Is that a platform limitation, or a compile-time
> > option? Any reason not to build it by default?
> 
> libruby.so?  Try configure with --enable-shared.

Ah thanks, I got it now: /usr/local/lib/libruby.so[.18].

Thanks,

Brian.