Permissions problems with files generated from IM/GS
Posted: 2007-03-15T08:40:34-07:00
I'm running ImageMagick 6.3.0 and AFPL Ghostscript 8.54 on Mac OS X 10.4, and I'm trying to get Ghostscript working correctly with IM.
GS is installed and working, but there is some problem with the install, since the files it generates have the wrong permissions. The directory I am converting these to is set for 777, so isn't a prob with the directory. As a result, when I run the following IM command (which should use GS):
I get the following error:
[/color]
Seems to be unable to read/write to /var/tmp/ , but when I run this via sudo, it works...
For the record, there's no problem when i run:, and all other IM commands work fine...I've also tried rebuilding both IM and GS multiple times with various options, such as (for IM):
Any thoughts?
Thanks
-Jon Keegan
GS is installed and working, but there is some problem with the install, since the files it generates have the wrong permissions. The directory I am converting these to is set for 777, so isn't a prob with the directory. As a result, when I run the following IM command (which should use GS):
Code: Select all
convert 1.pdf 1.jpg
Code: Select all
Error: /undefinedfilename in (/var/tmp/magick-AltCgcLT)
Operand stack:
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push
Dictionary stack:
--dict:1128/1686(ro)(G)-- --dict:0/20(G)-- --dict:70/200(L)--
Current allocation mode is local
Last OS error: 13
AFPL Ghostscript 8.54: Unrecoverable error, exit code 1
convert: unable to open image `/var/tmp/magick-fAn9bRGU': Permission denied.
convert: no decode delegate for this image format `/var/tmp/magick-fAn9bRGU'.
convert: Postscript delegate failed `1.pdf'.
convert: missing an image filename `1.jpg'.
Seems to be unable to read/write to /var/tmp/ , but when I run this via sudo, it works...
For the record, there's no problem when i run:
Code: Select all
convert 1.jpg 1.gif
Code: Select all
sudo ./configure --enable-shared --with-modules=yes --prefix=/usr/local --enable-delegate-build
Thanks
-Jon Keegan