Ruby Forum Ruby-core > Ruby 1.8 fails to compile under Mac OS X 10.5 (Leopard)

Posted by murphy (Guest)
on 22.12.2007 02:52
(Received via mailing list)
hi!

when I try to compile Ruby 1.8 on Leopard, I get this:

...
gcc -g -O2 -pipe -fno-common  -DRUBY_EXPORT  -L.    main.o dmydln.o \
  libruby-static.a -lpthread -ldl -lobjc   -o miniruby
ruby: [BUG] Segmentation fault
ruby 1.8.6 (2007-12-03) [i686-darwin9.1.0]

make: *** [.rbconfig.time] Abort trap

I used

./configure --prefix=/usr/local --with-readline-dir=/usr/local \
  --enable-pthread

Disabling pthread makes it work again (but throws a warning about Tcl/Tk
not working well without pthread.)

how can I make it compile with pthread?

[murphy]
Posted by Roger Pack (rogerdpack)
on 11.01.2008 00:18
(Received via mailing list)
I know the mac port works--you might download it and see what changes
it makes to ruby in order for it to compile.
Posted by Laurent Sansonetti (Guest)
on 11.01.2008 00:22
(Received via mailing list)
On Dec 22, 2007 2:52 AM, murphy <murphy@rubychan.de> wrote:
> make: *** [.rbconfig.time] Abort trap
>
It's a well-known bug, try applying the following patch, then 
rebuilding.

http://chopine.be/lrz/ruby-osx-patches/ignore-gsetcontext.diff

Laurent