Rmagick problem?

I have a simple but wierd problem.

this is my simple program:

require 'RMagick'
img = Magick::ImageList.new("dsc01748.jpg")

dsc01748.jpg is an image in the current path.
After running it, this is the error:

#ruby ./test.rb
/usr/lib/ruby/1.8/RMagick.rb:1377:in `read': unable to open image `1748.jpg': No such file or directory: (Magick::ImageMagickError)
        from /usr/lib/ruby/1.8/RMagick.rb:1377:in `initialize'
        from /usr/lib/ruby/1.8/RMagick.rb:1376:in `each'
        from /usr/lib/ruby/1.8/RMagick.rb:1376:in `initialize'
        from ./test.rb:3:in `new'
        from ./test.rb:3

This used to work just fine, I also tested an older version of rmagick.
Is there something changed in ruby?

I can't figure it out, what am I missing?

···

--
Roeland

I have a simple but wierd problem.

this is my simple program:

require 'RMagick'
img = Magick::ImageList.new("dsc01748.jpg")

The 4 first characters are just ignored!
this works:
img = Magick::ImageList.new("1234dsc01748.jpg")

dsc01748.jpg is an image in the current path.
After running it, this is the error:

#ruby ./test.rb
/usr/lib/ruby/1.8/RMagick.rb:1377:in `read': unable to open image `1748.jpg': No such file or directory: (Magick::ImageMagickError)
        from /usr/lib/ruby/1.8/RMagick.rb:1377:in `initialize'
        from /usr/lib/ruby/1.8/RMagick.rb:1376:in `each'
        from /usr/lib/ruby/1.8/RMagick.rb:1376:in `initialize'
        from ./test.rb:3:in `new'
        from ./test.rb:3

This used to work just fine, I also tested an older version of rmagick.
Is there something changed in ruby?

I can't figure it out, what am I missing?

I did a debian upgrade today, could that cause the problem. A new
library or something?

···

On Sun, Sep 12, 2004 at 08:30:14PM +0900, Roeland Moors wrote:

--
Roeland

I did a debian upgrade today, could that cause the problem. A new
library or something?

You have a problem with your installation

svg% ls dsc01748.jpg
dsc01748.jpg
svg%

svg% ruby -rRMagick -e 'p Magick::ImageList.new("dsc01748.jpg")'
[dsc01748.jpg JPEG 480x480 DirectClass 8-bit 28716b]
scene=0
svg%

try to rebuild RMagick

Guy Decoux

ts wrote:

> I did a debian upgrade today, could that cause the problem. A new
> library or something?

You have a problem with your installation

svg% ls dsc01748.jpg
dsc01748.jpg
svg%

svg% ruby -rRMagick -e 'p Magick::ImageList.new("dsc01748.jpg")'
[dsc01748.jpg JPEG 480x480 DirectClass 8-bit 28716b]
scene=0
svg%

try to rebuild RMagick

Guy Decoux

Guy is right as usual. Looks like that Debian upgrade left you with a newer
version of ImageMagick than the one that RMagick was built with. Re-build
RMagick, starting with ./configure. (Hmmmm...make sure your RMagick
supports the new ImageMagick. RMagick 1.6.0 is the latest version of
RMagick.)

Let me know if this doesn't do the trick.