This is a strange bug that I''ve never seen before. It only shows up when I run the app through the console (the app is Family Connection, and it works fine when run as a web app): 22$ ruby script/console Loading development environment. >> User /opt/local/lib/ruby/vendor_ruby/1.8/powerpc-darwin8.3.0/ RMagick.bundle: [BUG] Bus Error ruby 1.8.2 (2004-12-25) [powerpc-darwin8.3.0] Abort trap I am then unceremoniously dumped back to the shell prompt. Anyone have a clue as to what''s going on here? Duane Johnson (canadaduane) http://blog.inquirylabs.com/
Duane Johnson wrote:> This is a strange bug that I''ve never seen before. It only shows up > when I run the app through the console (the app is Family Connection, > and it works fine when run as a web app): > > 22$ ruby script/console > Loading development environment. > >> User > /opt/local/lib/ruby/vendor_ruby/1.8/powerpc-darwin8.3.0/ RMagick.bundle: > [BUG] Bus Error > ruby 1.8.2 (2004-12-25) [powerpc-darwin8.3.0] > > Abort trap > > I am then unceremoniously dumped back to the shell prompt. Anyone have > a clue as to what''s going on here? > > Duane Johnson > (canadaduane) > http://blog.inquirylabs.com/Are you absolutely sure you are not using the Apple Ruby when running from the console? I''ve read that it was compiled with the wrong endianness setting. regards Justin
I have the same problem. Did you find the solution to this?
Duane Johnson wrote: Anyone> have a clue as to what''s going on here?I have the same problem: ./script/console Loading development environment. /usr/local/lib/ruby/site_ruby/1.8/powerpc-darwin8.4.0/RMagick.bundle: [BUG] Bus Error ruby 1.8.4 (2005-12-24) [powerpc-darwin8.4.0] Abort trap My-G4-Powerbook:~/Sites/app user$ rails -v Rails 1.1.2 My-G4-Powerbook:~/Sites/app user$ ruby -v ruby 1.8.4 (2005-12-24) [powerpc-darwin8.4.0] I think it started happening after the 1.1 upgrade, but I can''t be sure. I''ve searched high and wide, but found no info on this. -Lindsay -- Posted via http://www.ruby-forum.com/.
Duane Johnson wrote:> I am then unceremoniously dumped back to the shell prompt. Anyone > have a clue as to what''s going on here?try script/console, then ENV["PATH"] if it doesn''t start with "/opt/local/bin...", then you need to edit your .profile or .bash_profile to add the /opt/local stuff to the front (so you''ll get your DarwinPorts installs by preference to whatever came on the system). Something like this: export PATH=/opt/local/bin:/opt/local/sbin:$PATH --Al Evans -- Posted via http://www.ruby-forum.com/.
Al Evans wrote:> Duane Johnson wrote: > you need to edit > your .profile or .bash_profile to add the /opt/local stuff to the front > (so you''ll get your DarwinPorts installs by preference to whatever came > on the system). Something like this: > > export PATH=/opt/local/bin:/opt/local/sbin:$PATH > > --Al EvansAl, my .profile already contained: # Your previous .profile (if any) is saved as .profile.dpsaved # Setting the path for DarwinPorts. export PATH=/opt/local/bin:/opt/local/sbin:$PATH Presumably added when I installed Fink? Anyway, I tried exporting the PATH at the command line: $export PATH=/opt/local/bin:/opt/local/sbin:$PATH $./script/console Loading development environment. /usr/local/lib/ruby/site_ruby/1.8/powerpc-darwin8.4.0/RMagick.bundle: [BUG] Bus Error ruby 1.8.4 (2005-12-24) [powerpc-darwin8.4.0] Abort trap $echo $PATH /opt/local/bin:/opt/local/sbin:/sw/bin:/sw/sbin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/bin:/sbin:/usr/bin:/usr/sbin:/Users/lindsay/scripts:.:/usr/X11R6/bin -Lindsay -- Posted via http://www.ruby-forum.com/.
Lindsay Boyd wrote:> # Your previous .profile (if any) is saved as .profile.dpsaved > # Setting the path for DarwinPorts. > export PATH=/opt/local/bin:/opt/local/sbin:$PATH > > Presumably added when I installed Fink? Anyway, I tried exporting the > PATH at the command line: > > $export PATH=/opt/local/bin:/opt/local/sbin:$PATH > $./script/console > Loading development environment. > /usr/local/lib/ruby/site_ruby/1.8/powerpc-darwin8.4.0/RMagick.bundle: > [BUG] Bus Error > ruby 1.8.4 (2005-12-24) [powerpc-darwin8.4.0] > > Abort trap > $echo $PATH > /opt/local/bin:/opt/local/sbin:/sw/bin:/sw/sbin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/bin:/sbin:/usr/bin:/usr/sbin:/Users/lindsay/scripts:.:/usr/X11R6/binHmmm -- in my installation, RMagick is in /opt/local/lib. It took me a while to get everything lined up right, though. My guess would be that it built against the wrong version of ruby. There''s a good set of build instructions here: http://rmagick.rubyforge.org/install-osx.html Maybe something in them will give you an "aha"... --Al Evans -- Posted via http://www.ruby-forum.com/.
Takashi Okamoto
2006-Apr-22 18:11 UTC
[Rails] Re: RMagick bus error on OS X in console mode
i had the same exact bus error. at first i thought it was my RMagick installation, which i compiled long before i got into rails (inside / usr/local/lib). so i reinstalled with the gem version, but the bus error still exists. i don''t really have a solution, but i wanted to tell you i experience the same problem. -tak. On Apr 22, 2006, at 1:58 PM, Al Evans wrote:> Hmmm -- in my installation, RMagick is in /opt/local/lib. It took me a > while to get everything lined up right, though. My guess would be that > it built against the wrong version of ruby. There''s a good set of > build > instructions here: > > http://rmagick.rubyforge.org/install-osx.html > > Maybe something in them will give you an "aha"... > > --Al Evans
http://threebit.net/mail-archive/rails/msg01024.html -- -- Tom Mornini On Apr 22, 2006, at 11:12 AM, Takashi Okamoto wrote:> i had the same exact bus error. at first i thought it was my > RMagick installation, which i compiled long before i got into rails > (inside /usr/local/lib). so i reinstalled with the gem version, but > the bus error still exists. i don''t really have a solution, but i > wanted to tell you i experience the same problem. > > -tak. > > On Apr 22, 2006, at 1:58 PM, Al Evans wrote: > >> Hmmm -- in my installation, RMagick is in /opt/local/lib. It took >> me a >> while to get everything lined up right, though. My guess would be >> that >> it built against the wrong version of ruby. There''s a good set of >> build >> instructions here: >> >> http://rmagick.rubyforge.org/install-osx.html >> >> Maybe something in them will give you an "aha"... >> >> --Al Evans > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails
Lindsay Boyd
2006-Apr-22 21:19 UTC
[Rails] Re: Re: RMagick bus error on OS X in console mode
Tom Mornini wrote:> http://threebit.net/mail-archive/rails/msg01024.html > > -- > -- Tom MorniniExcellent instructions... my console now works! thanks Lindsay -- Posted via http://www.ruby-forum.com/.
Tom Mornini
2006-Apr-23 00:02 UTC
[Rails] Re: Re: RMagick bus error on OS X in console mode
Cool! Glad I was able to help. :-) -- -- Tom Mornini On Apr 22, 2006, at 2:19 PM, Lindsay Boyd wrote:> Tom Mornini wrote: >> http://threebit.net/mail-archive/rails/msg01024.html >> >> -- >> -- Tom Mornini > > Excellent instructions... my console now works! > > thanks > Lindsay > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails