convert: UnableToOpenConfigureFile `delegates.xml'

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
demirci

convert: UnableToOpenConfigureFile `delegates.xml'

Post by demirci »

When I say

Code: Select all

convert file1.ps file2.pdf
it gives the following error

Code: Select all

convert: UnableToOpenConfigureFile `delegates.xml' @ configure.c/GetConfigureOptions/589.
Does anyone know why?

I tried everything. I reinstalled imagemagick, libmagick, etc...

Nothing changes the situation.

I am using Ubuntu 9.10.

(By the way I searched a lot on the internet. But there is no solution.)
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: convert: UnableToOpenConfigureFile `delegates.xml'

Post by magick »

Type
  • convert -debug configure file1.ps file2.pdf
It will tell you where ImageMagick is looking for its configuration files. Perhaps there is a permission problem.
demirci

Re: convert: UnableToOpenConfigureFile `delegates.xml'

Post by demirci »

OK. I did it. But I cannot figure out what is the problem, just from this output.

Code: Select all

2010-01-16T22:06:44-05:00 0:00.000 0.000u 6.5.8 Configure convert[5200]: utility.c/ExpandFilenames/868/Configure
  Command line: convert {-debug} {configure} {Cover-1.jpg} {deneme.pdf}
2010-01-16T22:06:44-05:00 0:00.000 0.000u 6.5.8 Configure convert[5200]: configure.c/GetConfigureOptions/564/Configure
  Searching for configure file: "/usr/local/share/ImageMagick-6.5.8/config/coder.xml"
2010-01-16T22:06:44-05:00 0:00.000 0.000u 6.5.8 Configure convert[5200]: configure.c/GetConfigureOptions/564/Configure
  Searching for configure file: "/usr/local/lib/ImageMagick-6.5.8/config/coder.xml"
2010-01-16T22:06:44-05:00 0:00.000 0.000u 6.5.8 Configure convert[5200]: configure.c/GetConfigureOptions/564/Configure
  Searching for configure file: "/usr/local/share/doc/ImageMagick-6.5.8/coder.xml"
2010-01-16T22:06:44-05:00 0:00.000 0.000u 6.5.8 Configure convert[5200]: configure.c/GetConfigureOptions/564/Configure
  Searching for configure file: "/usr/local/share/ImageMagick-6.5.8/coder.xml"
2010-01-16T22:06:44-05:00 0:00.000 0.000u 6.5.8 Configure convert[5200]: configure.c/GetConfigureOptions/564/Configure
  Searching for configure file: "/home/demirci/.magick/coder.xml"
2010-01-16T22:06:44-05:00 0:00.000 0.000u 6.5.8 Configure convert[5200]: configure.c/GetConfigureOptions/564/Configure
  Searching for configure file: "coder.xml"
2010-01-16T22:06:44-05:00 0:00.000 0.000u 6.5.8 Configure convert[5200]: configure.c/GetConfigureOptions/564/Configure
  Searching for configure file: "/usr/local/share/ImageMagick-6.5.8/config/magic.xml"
2010-01-16T22:06:44-05:00 0:00.010 0.000u 6.5.8 Configure convert[5200]: configure.c/GetConfigureOptions/564/Configure
  Searching for configure file: "/usr/local/lib/ImageMagick-6.5.8/config/magic.xml"
2010-01-16T22:06:44-05:00 0:00.010 0.000u 6.5.8 Configure convert[5200]: configure.c/GetConfigureOptions/564/Configure
  Searching for configure file: "/usr/local/share/doc/ImageMagick-6.5.8/magic.xml"
2010-01-16T22:06:44-05:00 0:00.010 0.000u 6.5.8 Configure convert[5200]: configure.c/GetConfigureOptions/564/Configure
  Searching for configure file: "/usr/local/share/ImageMagick-6.5.8/magic.xml"
2010-01-16T22:06:44-05:00 0:00.010 0.000u 6.5.8 Configure convert[5200]: configure.c/GetConfigureOptions/564/Configure
  Searching for configure file: "/home/demirci/.magick/magic.xml"
2010-01-16T22:06:44-05:00 0:00.010 0.000u 6.5.8 Configure convert[5200]: configure.c/GetConfigureOptions/564/Configure
  Searching for configure file: "magic.xml"
2010-01-16T22:06:44-05:00 0:00.010 0.000u 6.5.8 Configure convert[5200]: configure.c/GetConfigureOptions/564/Configure
  Searching for configure file: "/usr/local/share/ImageMagick-6.5.8/config/delegates.xml"
2010-01-16T22:06:44-05:00 0:00.010 0.000u 6.5.8 Configure convert[5200]: configure.c/GetConfigureOptions/564/Configure
  Searching for configure file: "/usr/local/lib/ImageMagick-6.5.8/config/delegates.xml"
2010-01-16T22:06:44-05:00 0:00.010 0.000u 6.5.8 Configure convert[5200]: configure.c/GetConfigureOptions/564/Configure
  Searching for configure file: "/usr/local/share/doc/ImageMagick-6.5.8/delegates.xml"
2010-01-16T22:06:44-05:00 0:00.010 0.000u 6.5.8 Configure convert[5200]: configure.c/GetConfigureOptions/564/Configure
  Searching for configure file: "/usr/local/share/ImageMagick-6.5.8/delegates.xml"
2010-01-16T22:06:44-05:00 0:00.010 0.000u 6.5.8 Configure convert[5200]: configure.c/GetConfigureOptions/564/Configure
  Searching for configure file: "/home/demirci/.magick/delegates.xml"
2010-01-16T22:06:44-05:00 0:00.010 0.000u 6.5.8 Configure convert[5200]: configure.c/GetConfigureOptions/564/Configure
  Searching for configure file: "delegates.xml"
2010-01-16T22:06:44-05:00 0:00.010 0.000u 6.5.8 Configure convert[5200]: delegate.c/LoadDelegateList/1222/Configure
  Loading delegate configuration file "built-in" ...
convert: UnableToOpenConfigureFile `delegates.xml' @ configure.c/GetConfigureOptions/589.
convert: NoDecodeDelegateForThisImageFormat `Cover-1.jpg' @ constitute.c/ReadImage/531.
convert: MissingAnImageFilename `deneme.pdf' @ convert.c/ConvertImageCommand/2838.
There can be no permission issue because there is no such directory at all:

Code: Select all

/usr/local/share/ImageMagick-6.5.8
The problem is really weird. I am using Ubuntu and I installed ImageMagick and libmagick by using "aptitude", the standard package manager of Ubuntu.

In the past I installed this way and eveything was OK.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: convert: UnableToOpenConfigureFile `delegates.xml'

Post by magick »

Its possible the package is broken. Normally, the ImageMagick configuration files would be in /usr/local/share/ImageMagick-6.5.8/config.
demirci

Re: convert: UnableToOpenConfigureFile `delegates.xml'

Post by demirci »

Sorry for posting again.

Now I realized that, there is a directory

Code: Select all

/usr/share/ImageMagick-6.5.1
but "convert" is looking for the directory

Code: Select all

/usr/share/ImageMagick-6.5.8
which doesn't exist. Is the problem with me, or with the Ubuntu packages?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: convert: UnableToOpenConfigureFile `delegates.xml'

Post by magick »

It looks like you may have two versions of ImageMagick installed. One for version 6.5.1 and one for version 6.5.8. We can't say if the problem is you or the distribution package. You could try downloading the source and typing:
  • tar xvfz ImageMagick-6.5.9-0.tar.gz
    cd ImageMagick-6.5.9-0
    ./configure --with-modules
    make
    make install
That should get you a working version of ImageMagick in /usr/local/bin.
demirci

Re: convert: UnableToOpenConfigureFile `delegates.xml'

Post by demirci »

Unfortunately, after removing everything, even the config files, by

sudo aptitude purge [package]

for whatever I can find related to ImageMagick, the problem is still the same. I know that I can install from source, but I prefer package manager, because that way maintenance becomes much easier.

Anyway. I hope somebody by chance having the same problem posts the solution here.
sharifu
Posts: 5
Joined: 2012-05-01T07:53:48-07:00
Authentication code: 13

Re: convert: UnableToOpenConfigureFile `delegates.xml'

Post by sharifu »

i have followed this and i get the following error

Code: Select all

./.convert.bin cdps5715a.tiff -resize 480x480 /opt/alfresco/tomcat/temp/Alfresco/ImageMagickContentTransformerWorker_target_4809025644968969038.png
.convert.bin: UnableToOpenConfigureFile `delegates.xml' @ configure.c/GetConfigureOptions/553.
.convert.bin: NoDecodeDelegateForThisImageFormat `cdps5715a.tiff' @ constitute.c/ReadImage/526.
.convert.bin: MissingAnImageFilename `/opt/alfresco/tomcat/temp/Alfresco/ImageMagickContentTransformerWorker_target_4809025644968969038.png' @ convert.c/ConvertImageCommand/2775.

this is bundled in with alfresco 3.4d, on centos 64bit 5.5
marsanyi
Posts: 1
Joined: 2012-09-12T12:39:01-07:00
Authentication code: 67789

Re: convert: UnableToOpenConfigureFile `delegates.xml'

Post by marsanyi »

I believe it's a packaging issue. I had the same problem: see http://ubuntuforums.org/showthread.php?p=12234817

--rbt
Post Reply