Page 1 of 2

anyone know how I can fix this install error?

Posted: 2009-06-02T21:34:49-07:00
by fmw42
IM 6.5.3-2 Q16 Mac OSX Tiger

When compiling IM, I get the following error message with regard to Ghostscript:

checking for Ghostscript...
checking for Ghostscript version... 8.61
checking for gs alpha device... pngalpha
checking for gs color device... pnmraw
checking for gs CMYK device... Unknown device: pam
Unrecoverable error: undefined in .uninstallpagedevice
Operand stack:
defaultdevice
bmpsep8

checking for gs mono device... pbmraw
checking for gs PDF writing device... pdfwrite
checking for gs PS writing device... pswrite
checking for gs EPS writing device... epswrite


Does anyone know what this means and how I would go about correcting it?

Re: anyone know how I can fix this install error?

Posted: 2009-06-02T21:37:25-07:00
by anthony
It means ghostscript is not configured to use a 'PAM' image format. This format is part of the NetPBM or PBMPlus image filtering package.

Re: anyone know how I can fix this install error?

Posted: 2009-06-02T22:12:41-07:00
by fmw42
anthony wrote:It means ghostscript is not configured to use a 'PAM' image format. This format is part of the NetPBM or PBMPlus image filtering package.
so what do I do to fix that in the GS install. i never got that before recent IM installs and I have PNM installed. GS 8.61 has been installed since I first started with IM. What has changed? Any suggestions would be appreciated. Looks like GS is up to 8.64 now. Do I try upgrading GS? Any known issues with more current GS versions? What version of GS are the IM folks using at this time?



Thanks.

Re: anyone know how I can fix this install error?

Posted: 2009-06-03T00:09:40-07:00
by anthony
Didn't you change your delegates for postscript at one point?

Re: anyone know how I can fix this install error?

Posted: 2009-06-03T09:47:53-07:00
by fmw42
Only to install gsc in /usr/local/bin to get GS working.

Re: anyone know how I can fix this install error?

Posted: 2009-06-03T10:10:46-07:00
by magick
Type gs -h and look at the devices. Is the bmpsep8 device listed? If so, take a closer look at config.log to see why the device is failing.

Re: anyone know how I can fix this install error?

Posted: 2009-06-03T10:16:36-07:00
by fmw42
Yes, both bmpsep8 and pam are there.

gs -h
GPL Ghostscript 8.61 (2007-11-21)
Copyright (C) 2007 Artifex Software, Inc. All rights reserved.
Usage: gs [switches] [file1.ps file2.ps ...]
Most frequently used switches: (you can use # in place of =)
-dNOPAUSE no pause after page | -q `quiet', fewer messages
-g<width>x<height> page size in pixels | -r<res> pixels/inch resolution
-sDEVICE=<devname> select device | -dBATCH exit after last file
-sOutputFile=<file> select output file: - for stdout, |command for pipe,
embed %d or %ld for page #
Input formats: PostScript PostScriptLevel1 PostScriptLevel2 PostScriptLevel3 PDF
Default output device: x11alpha
Available devices:
alc1900 alc2000 alc4000 alc4100 alc8500 alc8600 alc9100 ap3250 appledmp
atx23 atx24 atx38 bbox bit bitcmyk bitrgb bitrgbtags bj10e bj10v bj10vh
bj200 bjc600 bjc800 bjc880j bjccmyk bjccolor bjcgray bjcmono bmp16 bmp16m
bmp256 bmp32b bmpgray bmpmono bmpsep1 bmpsep8 ccr cdeskjet cdj1600 cdj500
cdj550 cdj670 cdj850 cdj880 cdj890 cdj970 cdjcolor cdjmono cfax cgm24
cgm8 cgmmono chp2200 cif cljet5 cljet5c cljet5pr coslw2p coslwxl cp50
cups declj250 deskjet devicen dfaxhigh dfaxlow dj505j djet500 djet500c
dl2100 dnj650c epl2050 epl2050p epl2120 epl2500 epl2750 epl5800 epl5900
epl6100 epl6200 eps9high eps9mid epson epsonc epswrite escp escpage faxg3
faxg32d faxg4 fmlbp fmpr fs600 gdi hl1240 hl1250 hl7x0 hpdj1120c hpdj310
hpdj320 hpdj340 hpdj400 hpdj500 hpdj500c hpdj510 hpdj520 hpdj540 hpdj550c
hpdj560c hpdj600 hpdj660c hpdj670c hpdj680c hpdj690c hpdj850c hpdj855c
hpdj870c hpdj890c hpdjplus hpdjportable ibmpro ijs imagen imdi inferno
iwhi iwlo iwlq jetp3852 jj100 jpeg jpegcmyk jpeggray la50 la70 la75
la75plus laserjet lbp310 lbp320 lbp8 lex2050 lex3200 lex5700 lex7000
lips2p lips3 lips4 lips4v lj250 lj3100sw lj4dith lj4dithp lj5gray lj5mono
ljet2p ljet3 ljet3d ljet4 ljet4d ljet4pjl ljetplus ln03 lp1800 lp1900
lp2000 lp2200 lp2400 lp2500 lp2563 lp3000c lp7500 lp7700 lp7900 lp8000
lp8000c lp8100 lp8200c lp8300c lp8300f lp8400f lp8500c lp8600 lp8600f
lp8700 lp8800c lp8900 lp9000b lp9000c lp9100 lp9200b lp9200c lp9300
lp9400 lp9500c lp9600 lp9600s lp9800c lps4500 lps6500 lq850 lx5000
lxm3200 lxm5700m m8510 mag16 mag256 md1xMono md2k md50Eco md50Mono md5k
mgr4 mgr8 mgrgray2 mgrgray4 mgrgray8 mgrmono miff24 mj500c mj6000c
mj700v2c mj8000c ml600 necp6 npdl nullpage oce9050 oki182 oki4w okiibm
omni oprp opvp paintjet pam pbm pbmraw pcl3 pcx16 pcx24b pcx256 pcx2up
...

The config.log file in IM 6.5.3-2 says everything is fine.

configure:44795: checking for Ghostscript
configure:44797: result:
configure:44799: checking for Ghostscript version
configure:44806: result: 8.61
configure:44810: checking for gs alpha device
configure:44817: result: pngalpha
configure:44821: checking for gs color device
configure:44828: result: pnmraw
configure:44832: checking for gs CMYK device
configure:44839: result: bmpsep8
configure:44843: checking for gs mono device
configure:44850: result: pbmraw
configure:44854: checking for gs PDF writing device
configure:44861: result: pdfwrite
configure:44865: checking for gs PS writing device
configure:44872: result: pswrite
configure:44876: checking for gs EPS writing device
configure:44883: result: epswrite

So why does it complain during the ./configure?

Also if I do:

convert motorcycle.eps motorcycle2.png

returns:
Unknown device: bmpsep8
Unrecoverable error: undefined in .uninstallpagedevice
Operand stack:
defaultdevice
Unknown device: bmpsep8
Unrecoverable error: undefined in .uninstallpagedevice
Operand stack:
defaultdevice
convert: Postscript delegate failed `/var/tmp/magick-HL8Awl4H': No such file or directory @ ps.c/ReadPSImage/741.
convert: motorcycle.eps: invalid TIFF directory; tags are not sorted in ascending order. `TIFFReadDirectory' @ tiff.c/TIFFWarnings/525.


with the following image:
http://www.fmwconcepts.com/misc_tests/motorcycle.eps

This file was posted by another use and I was trying to help him with it when I uncovered the above issues.

Re: anyone know how I can fix this install error?

Posted: 2009-06-03T11:02:50-07:00
by magick
We're not sure why its failing in this instance. Even if it fails with configure you can always go ahead and install ImageMagick and edit delegates.xml and change pnmraw to the pam device for the ps:cmyk tag. Now try
  • convert -verbose motorcycle.eps motorcycle.miff
and see if it complains.

Re: anyone know how I can fix this install error?

Posted: 2009-06-03T11:06:56-07:00
by fmw42
Don't you mean bmpsep8?

without changing anything:

convert -verbose motorcycle.eps motorcycle.miff
"gsc" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=0 "-sDEVICE=bmpsep8" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x72" -g121x87 "-sOutputFile=/var/tmp/magick-CmlkVhsf" "-f/var/tmp/magick-vbQ4G3V5" "-f/var/tmp/magick-ppU66HlG"
Unknown device: bmpsep8
Unrecoverable error: undefined in .uninstallpagedevice
Operand stack:
defaultdevice
"gsc" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=0 "-sDEVICE=bmpsep8" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x72" -g121x87 "-sOutputFile=/var/tmp/magick-CmlkVhsf" "-f/var/tmp/magick-vbQ4G3V5" "-f/var/tmp/magick-ppU66HlG" -c showpage
Unknown device: bmpsep8
Unrecoverable error: undefined in .uninstallpagedevice
Operand stack:
defaultdevice
motorcycle.eps TIFF 121x87 121x87+0+0 4-bit Palette PseudoClass 256c 23.6kb
motorcycle.eps EPT 121x87 121x87+0+0 4-bit Palette PseudoClass 256c 23.6kb
motorcycle.eps=>motorcycle.miff EPT 121x87 121x87+0+0 8-bit Palette PseudoClass 256c 16kb
convert: Postscript delegate failed `/var/tmp/magick-wXdm6939': No such file or directory @ ps.c/ReadPSImage/741.
convert: motorcycle.eps: invalid TIFF directory; tags are not sorted in ascending order. `TIFFReadDirectory' @ tiff.c/TIFFWarnings/525.

Re: anyone know how I can fix this install error?

Posted: 2009-06-03T11:13:08-07:00
by magick
No I mean 'pam'. Let's see if the PAM device works.

Re: anyone know how I can fix this install error?

Posted: 2009-06-03T11:14:43-07:00
by fmw42
How do I do that?

Also it seems to be failing when looking for the CMYK device and getting bmpsep8. Why are you asking about the pnmraw device? Wrong line? See my first message above. Perhaps I am getting confused.

Do I edit the delegates.xml file to change the ps:cmyk device from bmpsep8 to pam?

Re: anyone know how I can fix this install error?

Posted: 2009-06-03T11:33:04-07:00
by magick
Change the bmpsep8 device in config/delegates.xml to pam. Verify by running the convert command with -verbose and make sure it mentions pam rather than bmpsep8.

Re: anyone know how I can fix this install error?

Posted: 2009-06-03T15:34:17-07:00
by fmw42
magick wrote:Change the bmpsep8 device in config/delegates.xml to pam. Verify by running the convert command with -verbose and make sure it mentions pam rather than bmpsep8.
OK changed in 3 places, but now it finds the same error with pam rather than bmpsep8

convert -verbose motorcycle.eps motorcycle.miff
"gsc" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=0 "-sDEVICE=pam" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x72" -g121x87 "-sOutputFile=/var/tmp/magick-eyHttDYM" "-f/var/tmp/magick-9h3l33gt" "-f/var/tmp/magick-VM7dLcCc"
Unknown device: pam
Unrecoverable error: undefined in .uninstallpagedevice
Operand stack:
defaultdevice
"gsc" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=0 "-sDEVICE=pam" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x72" -g121x87 "-sOutputFile=/var/tmp/magick-eyHttDYM" "-f/var/tmp/magick-9h3l33gt" "-f/var/tmp/magick-VM7dLcCc" -c showpage
Unknown device: pam
Unrecoverable error: undefined in .uninstallpagedevice
Operand stack:
defaultdevice
motorcycle.eps TIFF 121x87 121x87+0+0 4-bit Palette PseudoClass 256c 23.6kb
motorcycle.eps EPT 121x87 121x87+0+0 4-bit Palette PseudoClass 256c 23.6kb
motorcycle.eps=>motorcycle.miff EPT 121x87 121x87+0+0 8-bit Palette PseudoClass 256c 16kb
convert: Postscript delegate failed `/var/tmp/magick-7xxhZhlW': No such file or directory @ ps.c/ReadPSImage/741.
convert: motorcycle.eps: invalid TIFF directory; tags are not sorted in ascending order. `TIFFReadDirectory' @ tiff.c/TIFFWarnings/525.

Do I need to restart my computer after editing the delegates.xml file?

Re: anyone know how I can fix this install error?

Posted: 2009-06-03T17:35:51-07:00
by magick
No need for a restart. The problem appears to be a Ghostscript installation problem. You can test by running Ghostscript directly from the command line.
  • convert logo: logo.ps
    "gsc" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=0 "-sDEVICE=pam" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x72" -g121x87 "-sOutputFile=logo.pam" "logo.ps"

Re: anyone know how I can fix this install error?

Posted: 2009-06-03T18:07:48-07:00
by anthony
Fred, could you have two ghostscript programs installed?