From: "Gennady F. Bystritsky" Date: 2002-12-11T09:33:50+09:00 Subject: Re: mac os x eruby ----- Original Message ----- From: "FUJIMOTO Hisakuni" To: "ruby-talk ML" Sent: Tuesday, December 10, 2002 3:45 PM Subject: Re: mac os x eruby > At Tue, 10 Dec 2002 20:02:54 +0900, > Tom Sawyer wrote: > > so i have a question. i'm looking at hosting a wiki on an mac xserve and i > > started doing some development work on a ruby based wiki. what's the status > > of eruby on mac os x? last i heard she's still barfing due to a dynamic > > linking issues. > > To make eruby, libruby is necessary. However, Mac OS X 10.2 > (Jaguar) does not include libruby somehow. So you need to build Mac OS X 10.2 (Jaguar) does include libruby and it is OK, as mod_ruby uses it and works perfectly well. The problem with eruby lays in how dynamic linking is performed in OS X. When eruby.so is dlopened by Apache Ruby symbols (rb_*) are not found despite the fact that they are already present in the process (loaded by mod_ruby, actually libruby.a is compiled into mod_ruby during build). I think that to fix it libruby must be made shared and both mod_ruby and eruby compilation changed to refer it. Than on load a linker will be able to locate symbols for both. I haven't given it a try yet, maybe sometime next week. > libruby with ruby source in order to make eruby. I don't use > eruby, so I have not tried this. But maybe I think so. > > If this is too hard, you can use Erb written only with Ruby. Erb > is useful. > > Regards, > -- > FUJIMOTO Hisakuni > > >