From: Brian Candler Date: 2010-09-06T17:19:34+09:00 Subject: Re: unable to open X server `' (Magick::ImageMagickError) On Mon, Sep 06, 2010 at 12:42:11PM +0900, Abder-Rahman Ali wrote: > I have written a Ruby script "dicom_info.rb", and when I try running > it, I get the following error. Why is that? And, how can it get > solved? > > C:\Users\Abder-Rahman\Desktop\Research\dicom>ruby dicom_info.rb So I'm guessing you're running some version of ruby under some version of windows. > dicom_info.rb:22:in `display': unable to open X server Well, do you have an X server? For example, are you running under cygwin? It would be much more helpful if you could give the full context of where you're running this. * What O/S and version you're running under * What ruby version you're running under, and where you got it from or how you installed it (e.g. one-click installer, which version?) * What versions of relevant library/ies