Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread

 

By: Omer Bar-or
RE: Changing architecture of RMagick2.bundle? [ reply ]  
2010-04-07 16:34
That's good to know. Thanks for following up!

By: Jan-Yves Ruzicka
RE: Changing architecture of RMagick2.bundle? [ reply ]  
2010-04-07 07:16
OK, after playing around with some other stuff I found that some other gems weren't working either. I upgraded ruby and everything started working fine again.

The problem might have been that I kept the same ruby install across OS upgrades (10.5 -> 10.6), and rebuilding ruby fixed that. A lesson learned for next time, I guess.

Thanks for the really quick response!

By: Jan-Yves Ruzicka
RE: Changing architecture of RMagick2.bundle? [ reply ]  
2010-04-07 04:14
Yeah, I installed MacPorts, then from there installed ImageMagick through it. RMagick was installed through rubygems.

By: Omer Bar-or
RE: Changing architecture of RMagick2.bundle? [ reply ]  
2010-04-07 04:02
Hi, Jan-Yves -

I don't have access to a Mac currently, but I tried and failed to reproduce an architecture issue using both 32-bit and 64-bit Ubuntu Linux.

How did you go about installing RMagick? Were you following these directions? http://rmagick.rubyforge.org/install-faq.html#osx

If so, I'll ask Benjamin to look into this when he gets a chance, since I believe he has Snow Leopard.

Thanks,
- Omer.

By: Jan-Yves Ruzicka
RE: Changing architecture of RMagick2.bundle? [ reply ]  
2010-04-07 02:53
OK, I've mucked about with stuff and found that no, it doesn't seem to be a problem with the architecture.

FWIW, I'm running ruby 1.9.1 (i386-darwin9.7.0) on OS X 10.6.2 on a 2.1GHz Intel Core 2 Duo MacBook. I have ImageMagick 6.6.0 installed via MacPorts, and I'm trying to install RMagick 2.13.1.

My problem is that when I try to require rmagick, I get the following error:

LoadError: dlopen(/usr/local/lib/ruby/gems/1.9.1/gems/rmagick-2.13.1/lib/RMagick2.bundle, 9): no suitable image found. Did find:
/usr/local/lib/ruby/gems/1.9.1/gems/rmagick-2.13.1/lib/RMagick2.bundle: mach-o, but wrong architecture - /usr/local/lib/ruby/gems/1.9.1/gems/rmagick-2.13.1/lib/RMagick2.bundle
from /usr/local/lib/ruby/gems/1.9.1/gems/rmagick-2.13.1/lib/rmagick.rb:11:in `require'
from /usr/local/lib/ruby/gems/1.9.1/gems/rmagick-2.13.1/lib/rmagick.rb:11:in `<top (required)>'
from (irb):2:in `require'
from (irb):2
from /usr/local/bin/irb:12:in `<main>'

Running `file` on RMagick2.bundle gives:

RMagick2.bundle: Mach-O 64-bit bundle x86_64

However, if I make a simple hello world.c and compile it using cc I get the same info on file, and that will run fine.

So, yeah. I'm a wee bit stumped. Any ideas?

By: Jan-Yves Ruzicka
Changing architecture of RMagick2.bundle? [ reply ]  
2010-04-06 23:48
I've been trying to install rmagick (through rubygems) for a bit now, and I keep hitting problems. I'm pretty sure I've worked out the main problem now: lib/RMagick2.bundle is being installed as 64-bit on my 32-bit system. I'm not sure why this is happening, but OS X 10.6 Snow Leopard seems to love assuming it's on a 64-bit computer no matter what.

Is there any way to install rmagick through gems and specify the architecture? I'm looking specifically at the creation of RMagick, since the rest of it seems fine.