# Rails OSX Tiger RMagick Bus Error Abort trap

**URL:** <https://www.ruby-forum.com/t/rails-osx-tiger-rmagick-bus-error-abort-trap/70238>\
**Category:** Ruby\
**Created:** [September 27, 2006, 5:45pm UTC](https://www.ruby-forum.com/t/rails-osx-tiger-rmagick-bus-error-abort-trap/70238 "2006-09-27T17:45:21Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![ribes](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f4b2a3/32.png) [@ribes](https://www.ruby-forum.com/u/ribes)\
**Post date:** [September 27, 2006, 5:45pm UTC](https://www.ruby-forum.com/t/rails-osx-tiger-rmagick-bus-error-abort-trap/70238/1 "2006-09-27T17:45:21Z")

</div>

Hi;

I am using a PowerBook G4 with:  
OSX Tiger version 10.4.7; Rubygems 0.9; Rails 1.1.6; RMagic 1.13.0

I have Ruby and friends installed at /usr/local/…  
just as described in:

> **[Dan Benjamin](https://danbenjamin.com)**
>
> Dan Benjamin's personal website.

then installed RMagick as descibed in:

> **[Dan Benjamin](https://danbenjamin.com)**
>
> Dan Benjamin's personal website.

Then installed file\_column and the full Rails environment worked fine  
for about four weeks. I could do script/console under iterm and get  
into the  
development environment.

Then, I had to update Quicksilver, Rubygems and Rails; after  
that, I can’t access script/console.

If I do script/console under my Rails app dir in iterm, I get this:

PBG4:~/Rails/app vr\_mex$ script/console  
Loading development environment.  
/usr/local/lib/ruby/gems/1.8/gems/rmagick-1.13.0/lib/RMagick.bundle:  
[BUG] Bus Error  
ruby 1.8.4 (2005-12-24) [powerpc-darwin8.7.0]

Abort trap

So then I deleted all RMagick using: uninstall-RMagick.rb and went to  
install RMagick again via the same method:

> **[Dan Benjamin](https://danbenjamin.com)**
>
> Dan Benjamin's personal website.

I got nowhere same error when I do script/console under my Rails app  
dir; so then I thought it had to do with file\_column, so I went  
and tried it with acts\_as\_attachment via doing th sample Rails app in:  
[http://weblog.techno-weenie.net/articles/acts\_as\_attachment](http://weblog.techno-weenie.net/articles/acts_as_attachment)

For acts\_as\_attachment example to work, I had to install  
acts\_as\_attachment-1.1.6 that I got from here:  
[http://svn.techno-weenie.net/projects/plugins/tags/acts\_as\_attachment](http://svn.techno-weenie.net/projects/plugins/tags/acts_as_attachment)…

Well I got acts\_as\_attachment to work fine, but when I went into iterm  
and tried script/console, I got the same error as before; so clearly  
it is not a  
problem with acts\_as\_attachment or file\_column

Then from iterm I did this:  
PBG4:~/Rails/app vr\_mex$ ruby -rrubygems -e “require ‘RMagick’; puts  
Magick::Long\_version;”  
This is RMagick 1.13.0 ($Date: 2006/06/26 23:32:37 $) Copyright (C)  
2006 by Timothy P. Hunter  
Built with ImageMagick 6.2.8 09/22/06 Q16 [http://www.imagemagick.org](http://www.imagemagick.org)  
Built for ruby 1.8.4 (2005-12-24) [powerpc-darwin8.7.0]  
Web page: [http://rmagick.rubyforge.org](http://rmagick.rubyforge.org)  
Email: removed\_email\_address@domain.invalid

If i do this :  
PBG4:~/Rails/app vr\_mex$ which ruby  
/usr/local/bin/ruby

So I reinstalled Ruby and friends again at /usr/local/…  
just as described in:

> **[Dan Benjamin](https://danbenjamin.com)**
>
> Dan Benjamin's personal website.

then reinstalled RMagick again as descibed in:

> **[Dan Benjamin](https://danbenjamin.com)**
>
> Dan Benjamin's personal website.

And still getting the same error, can’t get script/console to work.

I need to have script/console access when using RMagic under Rails.

Please Help

---

<div class="post-metadata">

**Author:** ![ribes](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f4b2a3/32.png) [@ribes](https://www.ruby-forum.com/u/ribes)\
**Post date:** [September 27, 2006, 6:13pm UTC](https://www.ruby-forum.com/t/rails-osx-tiger-rmagick-bus-error-abort-trap/70238/2 "2006-09-27T18:13:25Z")

</div>

try building rmagick from source. Any problems installing rmagic will  
be  
shown this way. By installing by source, I solved an rmagick problem I  
was  
stumbling on for over a week.

---

<div class="post-metadata">

**Author:** ![ribes](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f4b2a3/32.png) [@ribes](https://www.ruby-forum.com/u/ribes)\
**Post date:** [September 27, 2006, 6:49pm UTC](https://www.ruby-forum.com/t/rails-osx-tiger-rmagick-bus-error-abort-trap/70238/3 "2006-09-27T18:49:29Z")

</div>

The only way I got it to work was to remove all the Hivelogic steps  
completely, download DarwinPorts and then install graphicsMagick  
instead of ImageMagick. Worked like a charm.

* * *

Peter Wright  
removed\_email\_address@domain.invalid

Personal Blog → [http://peterwright.blogspot.com](http://peterwright.blogspot.com)  
Agile Development Blog → [http://exceeding-expectations.blogspot.com](http://exceeding-expectations.blogspot.com)

---

<div class="post-metadata">

**Author:** ![ribes](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f4b2a3/32.png) [@ribes](https://www.ruby-forum.com/u/ribes)\
**Post date:** [September 27, 2006, 7:25pm UTC](https://www.ruby-forum.com/t/rails-osx-tiger-rmagick-bus-error-abort-trap/70238/4 "2006-09-27T19:25:36Z")

</div>

I’ve been using rmagick with rails on OS X. I followed these  
directions to install:  
[http://rmagick.rubyforge.org/install-osx.html](http://rmagick.rubyforge.org/install-osx.html)  
Worked like a charm!

Sarah

On 9/27/06, Victor R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> then installed RMagick as descibed in:  
> [Dan Benjamin](http://hivelogic.com/articles/2006/06/10/rmagick_os_x)  
> …

---

<div class="post-metadata">

**Author:** ![ribes](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f4b2a3/32.png) [@ribes](https://www.ruby-forum.com/u/ribes)\
**Post date:** [September 27, 2006, 8:47pm UTC](https://www.ruby-forum.com/t/rails-osx-tiger-rmagick-bus-error-abort-trap/70238/5 "2006-09-27T20:47:49Z")

</div>

Thanks Pete and Sarah;

My main concern is if I go the DarwinPorts road,  
I have all installed in /usr/local and DarwinPorts installs all  
in /opt/… so my question would be :  
is anyone of you using a mixed environment say having  
Ruby and others in /usr/local and just the Imagemagick stuff in  
/opt/…?

I know some people are using all under /usr/local that is the way I  
would  
prefer to go…

---

<div class="post-metadata">

**Author:** ![ribes](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f4b2a3/32.png) [@ribes](https://www.ruby-forum.com/u/ribes)\
**Post date:** [September 27, 2006, 8:57pm UTC](https://www.ruby-forum.com/t/rails-osx-tiger-rmagick-bus-error-abort-trap/70238/6 "2006-09-27T20:57:50Z")

</div>

I have all (RMagic, Ruby, gem, rails, etc.) under /opt with Darwinports.  
It  
seemed less complicated that way. sudo port install “whatever” and it  
works.

Vish

---

<div class="post-metadata">

**Author:** ![ribes](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f4b2a3/32.png) [@ribes](https://www.ruby-forum.com/u/ribes)\
**Post date:** [September 27, 2006, 11:10pm UTC](https://www.ruby-forum.com/t/rails-osx-tiger-rmagick-bus-error-abort-trap/70238/7 "2006-09-27T23:10:13Z")

</div>

Thanks Vishnu,

Wish I could do that but I do have some other apps that have to be in  
/usr/local/… and that do not have DarwinPorts support…

Guys, any other suggestions as to how to install in /usr/local/… ?  
Anyone else has had this problem and solved it lately under  
/usr/local/… ?

---

<div class="post-metadata">

**Author:** ![ribes](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f4b2a3/32.png) [@ribes](https://www.ruby-forum.com/u/ribes)\
**Post date:** [September 28, 2006, 1:20am UTC](https://www.ruby-forum.com/t/rails-osx-tiger-rmagick-bus-error-abort-trap/70238/8 "2006-09-28T01:20:25Z")

</div>

Victor R. wrote:

> [Dan Benjamin](http://hivelogic.com/articles/2006/06/10/rmagick_os_x)
> 
> [Dan Benjamin](http://hivelogic.com/articles/2006/06/10/rmagick_os_x)  
> Well I got acts\_as\_attachment to work fine, but when I went into iterm  
> Built for ruby 1.8.4 (2005-12-24) [powerpc-darwin8.7.0]
> 
> then reinstalled RMagick again as descibed in:  
> [Dan Benjamin](http://hivelogic.com/articles/2006/06/10/rmagick_os_x)
> 
> And still getting the same error, can’t get script/console to work.
> 
> I need to have script/console access when using RMagic under Rails.
> 
> Please Help

Uninstall RMagick and install it again from source - not from the gem -  
using the instructions at [http://rmagick.rubyforge.org/install-osx.html](http://rmagick.rubyforge.org/install-osx.html).  
The installation includes running 175+ tests. Pay close attention to the  
output from these tests. Do you get any errors? If so, report them to  
removed\_email\_address@domain.invalid. If not, then RMagick is installed and running  
properly and you need to look elsewhere for the problem. My guess  
(lacking any other information) would be that you have two versions of  
ImageMagick installed. To determine that you’ll just have to search your  
filesystem. If that turns out to be the case, remove both _completely_  
and install ImageMagick and RMagick again _from source_ using the  
procedure outlined in the RMagick installation FAQ.

If you do have to re-install ImageMagick, think about using the  
–with-quantum-depth=8 option when you configure ImageMagick. For  
general images intended for the web and for printing on inkjet printers  
8 bits is enough and you’ll cut your memory requirements in half and  
your CPU requirements almost in half.

---

<div class="post-metadata">

**Author:** ![ribes](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f4b2a3/32.png) [@ribes](https://www.ruby-forum.com/u/ribes)\
**Post date:** [October 18, 2006, 10:38am UTC](https://www.ruby-forum.com/t/rails-osx-tiger-rmagick-bus-error-abort-trap/70238/9 "2006-10-18T10:38:56Z")

</div>

Finally I fixed this problem.  
now all works under /usr/local/…

I followed this link’s instructions:  
[http://blog.labratz.net/articles/2006/10/10/really-truly-getting-imagemagick-rmagick-working-on-osx-from-source-without-using-macports-darwinports-or-fink](http://blog.labratz.net/articles/2006/10/10/really-truly-getting-imagemagick-rmagick-working-on-osx-from-source-without-using-macports-darwinports-or-fink)

and applied the shell script:  
[http://blog.labratz.net/files/rmagick\_imagemagick\_redo\_osx.sh](http://blog.labratz.net/files/rmagick_imagemagick_redo_osx.sh)
