# Ruby, Windows or Rmagick error?

**URL:** <https://www.ruby-forum.com/t/ruby-windows-or-rmagick-error/71605>\
**Category:** Ruby\
**Created:** [October 10, 2006, 8:57am UTC](https://www.ruby-forum.com/t/ruby-windows-or-rmagick-error/71605 "2006-10-10T08:57:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [October 10, 2006, 8:57am UTC](https://www.ruby-forum.com/t/ruby-windows-or-rmagick-error/71605/1 "2006-10-10T08:57:55Z")

</div>

Hi.

Well i´ve written a little program on my linux machine which uses  
my\_image = “20061002\_122234\_No\_1.jpg”  
Image.read(my\_image)

This isn´t really complicated… and it works (at least on my linux  
machine).  
On windows the beahvior ist really strange…  
it t works with  
my\_image=“test.jpg”  
but with  
my\_image = “20061002\_122234\_No\_1.jpg”  
it doesn´t…  
really strange is the error with different paths (relative, absolute,  
with “\” or with “/”…)  
All of them don´t work with the image and all of them produce a sort of  
file/directory not found. And in the error message it also writes down  
the file which couldn´t be found. And now the obscure part.  
Depending of the part it writes 234\_No\_1.jpg or 61002\_122234\_No\_1.jpg or  
something like 2234\_No\_1.jpg not found…

Sure it can´t be found. It´s not even the name of the image … and the  
path is gone too …  
☹

So is there a problem with ruby ? windows ? rmagick ?

I don´t know, otherwise i wouldn´t ask.  
I guess there isn´t a “real” ruby problem, otherwise there would be a  
problem using linux too…  
So is it rmagick ?  
for the same reason there shouldn´t…  
Leaves windows …  
But windows can handle such file names…

So there isn´t a problem at all ?

Since i have this problem there should be a problem in the windows  
version of ruby or rmagick or in the combination of all three…

Any ideas ?

Thanks

Marinho

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [October 10, 2006, 1:40pm UTC](https://www.ruby-forum.com/t/ruby-windows-or-rmagick-error/71605/2 "2006-10-10T13:40:27Z")

</div>

removed\_email\_address@domain.invalid wrote:

> but with
> 
> Any ideas ?
> 
> Thanks
> 
> Marinho

This happens when you install a version of ImageMagick that is not the  
version that comes bundled in the rmagick-win32 gem. RMagick for Windows  
is built to work with the version of ImageMagick that it’s bundled with  
and no other. Uninstall ImageMagick and RMagick and re-install RMagick  
following the directions in the README file.

[http://rmagick.rubyforge.org/install-faq.html#later](http://rmagick.rubyforge.org/install-faq.html#later)
