Jon Evans
2005-Nov-30 21:08 UTC
weird errors with self-installed ruby 1.8.3 on Mac OS X 10.4.3
Hi All, I''m hoping someone has seen this error before and can advise me. I was having problems with Switchtower hanging, and I found a blog posting which pointed the finger at Apple''s install of Ruby 1.8.2 (?). I downloaded ruby-1.8.3.tar.gz, compiled it with --enable- shared, and installed it under /usr/local. I went through /usr/bin and /usr/lib and archived away all of the Apple bins and libs. Then I installed RubyGems. The install of the rake gem went fine, but the rails install bombed out with a segfault. I have found that it crashes while installing a gem, but not every time. For example, here I install activesupport OK, then uninstall it, then try again, at which point it fails:> plinth:~ evansj$ sudo gem install activesupport > Attempting local installation of ''activesupport'' > Local gem file not found: activesupport*.gem > Attempting remote installation of ''activesupport'' > Updating Gem source index for: http://gems.rubyforge.org > Successfully installed activesupport-1.2.3 > Installing RDoc documentation for activesupport-1.2.3... > > plinth:~ evansj$ sudo gem uninstall activesupport > Attempting to uninstall gem ''activesupport'' > Successfully uninstalled activesupport version 1.2.3 > > plinth:~ evansj$ sudo gem install activesupport > Attempting local installation of ''activesupport'' > Local gem file not found: activesupport*.gem > Attempting remote installation of ''activesupport'' > Successfully installed activesupport-1.2.3 > Installing RDoc documentation for activesupport-1.2.3... > > > RDoc failure in lib/active_support/dependencies.rb at or around > line 125 column 49 > > Before reporting this, could you check that the file > you''re documenting compiles cleanly--RDoc is not a > full Ruby parser, and gets confused easily if fed > invalid programs. > > The internal error was: > > ERROR: While executing gem ... (TypeError) > wrong instance allocationThe error message changes. Here''s another example:> RDoc failure in lib/active_support/core_ext/time/calculations.rb at > or around line 29 column 56 > > Before reporting this, [...] > > The internal error was: > > ERROR: While executing gem ... (NameError) > uninitialized constant RubyToken::TkReading2TokenNoKeyThe computer is a PowerBook with 1.5GB RAM. Every other application works fine and the machine is stable, so I''m fairly certin it''s not a hardware problem (my first thought when I got the segfault). I tried the preview of 1.8.4 with the same result. plinth:~ evansj$ ruby -v ruby 1.8.4 (2005-10-29) [powerpc-darwin8.3.0] plinth:~ evansj$ gem -v 0.8.11 Apple''s ruby worked great, apart from switchtower. Jon
Jon Evans
2005-Dec-01 13:13 UTC
Re: [fixed] weird errors with self-installed ruby 1.8.3 on Mac OS X 10.4.3
Hi All, On 30 Nov 2005, at 21:08, Jon Evans wrote:> I''m hoping someone has seen this error before and can advise me.Obviously I''m in a minority here... For the benefit of Google, I seem to now have a stable system after configuring ruby like this: ./configure --enable-shared --enable-pthread Without the --enable-pthread, it seemed to work fine but I got those weird errors thrown by gem install. Also, switchtower can now connect to my server over ssh (it used to hang). Jon
Chris Brinker
2005-Dec-22 19:23 UTC
Re: Re: [fixed] weird errors with self-installed ruby 1.8.3 on Mac OS X 10.4.3
I have been experiencing this same issue I am going to reconfig ruby in hopes of making it better... I too am on Tiger with a hand built ruby/gems/fcgi So, I feel your pain :) Chris On 12/1/05, Jon Evans <jon.evans-e+AXbWqSrlAAvxtiuMwx3w@public.gmane.org> wrote:> Hi All, > > On 30 Nov 2005, at 21:08, Jon Evans wrote: > > > I''m hoping someone has seen this error before and can advise me. > > Obviously I''m in a minority here... > > For the benefit of Google, I seem to now have a stable system after > configuring ruby like this: > > ./configure --enable-shared --enable-pthread > > Without the --enable-pthread, it seemed to work fine but I got those > weird errors thrown by gem install. Also, switchtower can now > connect to my server over ssh (it used to hang). > > Jon > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >