# RB + RMagick = cd Crash

**URL:** <https://www.ruby-forum.com/t/rb-rmagick-cd-crash/55988>\
**Category:** Ruby\
**Created:** [March 27, 2006, 12:02am UTC](https://www.ruby-forum.com/t/rb-rmagick-cd-crash/55988 "2006-03-27T00:02:33Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![kitesurfer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/e480ec/32.png) [@kitesurfer](https://www.ruby-forum.com/u/kitesurfer)\
**Post date:** [March 27, 2006, 12:02am UTC](https://www.ruby-forum.com/t/rb-rmagick-cd-crash/55988/1 "2006-03-27T00:02:33Z")

</div>

Hi,

I had to reinstall RMagick on my windows box. I am using cygwin and  
installed ImageMagick 6.2.6 from binary and then rmagick 1.10.1  
from the gem install.

Then I run irb \> require ‘RMagick’ and boom no errors nothing on the  
cmd  
line just a big crash…

Anyone seen this before ? Any help would be appreciated…

---

<div class="post-metadata">

**Author:** ![kitesurfer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/e480ec/32.png) [@kitesurfer](https://www.ruby-forum.com/u/kitesurfer)\
**Post date:** [March 27, 2006, 12:19am UTC](https://www.ruby-forum.com/t/rb-rmagick-cd-crash/55988/2 "2006-03-27T00:19:05Z")

</div>

De Railed wrote:

> Anyone seen this before ? Any help would be appreciated…

When you say “the gem install” do you mean the “rmagick” gem or the  
“rmagick-win32” gem? The rmagick gem is for Cygwin, the rmagick-win32  
gem for native MS Windows.

Can you use the ImageMagick commands like ‘convert’ and ‘identify’? Try:

identify myjpg.jpg  
convert myjpg.jpg mygif.gif

Did the RMagick examples run correctly when you installed RMagick?

---

<div class="post-metadata">

**Author:** ![kitesurfer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/e480ec/32.png) [@kitesurfer](https://www.ruby-forum.com/u/kitesurfer)\
**Post date:** [March 27, 2006, 12:26am UTC](https://www.ruby-forum.com/t/rb-rmagick-cd-crash/55988/3 "2006-03-27T00:26:39Z")

</div>

Hi Tim,

Thanks for the reply.

I ran a gem install rmagick from my cygwin prompt.  
All looked cool and it say rmagick was installed successfully. gem list  
shows it  
and RMagick.so is in the ruby i386 dir. From the same shell I can run  
display  
and ImageMagick comes up. Similarly identify xxx.gif works.

Any other clues ? Does irb dumps it’s crash logs somewhere ?

Thanks you !!

---

<div class="post-metadata">

**Author:** ![kitesurfer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/e480ec/32.png) [@kitesurfer](https://www.ruby-forum.com/u/kitesurfer)\
**Post date:** [March 27, 2006, 1:34am UTC](https://www.ruby-forum.com/t/rb-rmagick-cd-crash/55988/4 "2006-03-27T01:34:01Z")

</div>

De Railed wrote:

> Any other clues ? Does irb dumps it’s crash logs somewhere ?
> 
> Thanks you !!

If you can run a ruby script that uses RMagick then I can’t think of  
any reason why irb would crash unless there’s something wrong with irb  
itself. Is it possible that you’ve got something in your .irbrc file  
that’s conflicting with RMagick?

P.S. I’m glad to hear that RMagick installs well on Cygwin. I don’t have  
access to a box with Cygwin so I can’t test it there.

---

<div class="post-metadata">

**Author:** ![kitesurfer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/e480ec/32.png) [@kitesurfer](https://www.ruby-forum.com/u/kitesurfer)\
**Post date:** [March 27, 2006, 2:34pm UTC](https://www.ruby-forum.com/t/rb-rmagick-cd-crash/55988/5 "2006-03-27T14:34:44Z")

</div>

De Railed wrote:

> I thought you meant if I could run ImageMagick’s identify…

No, you were right the first time, I meant ImageMagick’s identify  
command.

The “no Ruby script found in input” message isn’t from RMagick or  
ImageMagick. I suppose it’s a Ruby message but I’m not sure what it  
means.

I’m still at a loss. The RMagick install process runs about 175 examples  
as part of building the documentation. If those examples all ran during  
the “gem install” then I can’t think of any reason why you can’t use  
RMagick now.

---

<div class="post-metadata">

**Author:** ![kitesurfer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/e480ec/32.png) [@kitesurfer](https://www.ruby-forum.com/u/kitesurfer)\
**Post date:** [March 27, 2006, 5:35pm UTC](https://www.ruby-forum.com/t/rb-rmagick-cd-crash/55988/6 "2006-03-27T17:35:58Z")

</div>

Hi Tim,

Yes I am stuck.I have tried to reinstall either GraphicMagick or  
ImageMagick  
and still ending up with the same results. I have struggled with this  
before  
but somehow found the magic incantation. But now I can’t see what I am  
missing  
The fact that ruby is crashing leads me to believe that a lib is  
either not  
there or is wrong for cygwin. The question then is which one ?

I’ll keep on grinding and hopefully will figure some solution. I’ll  
sure would  
ate going back to my windows install…

---

<div class="post-metadata">

**Author:** ![kitesurfer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/e480ec/32.png) [@kitesurfer](https://www.ruby-forum.com/u/kitesurfer)\
**Post date:** [March 28, 2006, 2:53pm UTC](https://www.ruby-forum.com/t/rb-rmagick-cd-crash/55988/7 "2006-03-28T14:53:55Z")

</div>

Hi,

> I ran a gem install rmagick from my cygwin prompt.

Did it run all the example files in /doc/ex ? As Tim says, if it does  
that  
well, you are far along already.

You might also try building a static version of RMagick.so once, just to  
see if you are in dll hell.

best greetings,  
kaspar

---

<div class="post-metadata">

**Author:** ![kitesurfer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/e480ec/32.png) [@kitesurfer](https://www.ruby-forum.com/u/kitesurfer)\
**Post date:** [March 27, 2006, 3:22am UTC](https://www.ruby-forum.com/t/rb-rmagick-cd-crash/55988/8 "2006-03-27T03:22:16Z")

</div>

Hi Tim,

Sorry I’ve misread your initial response. I can not run the sample  
rmagick  
scripts such as identify.rb. The script returns right away with no  
errors. Just  
like irb. If I run \> ruby -x identify.rb, I get the following message…

ruby: no Ruby script found in input (LoadError)

I thought you meant if I could run ImageMagick’s identify…
