Page 1 of 1
Configuring Convert to uses ghost-script
Posted: 2011-04-13T13:39:14-07:00
by kc2scy
Hello all,
I have written a simple command line to the convert application that converts RGB images to CMYK which works well
However I now try to uses a EPS files which is a image and I get this error :
"Sh GS command not found."
So I downloaded GS and I'm stuck. How to I tell convert where is GS is. I tried to look for a configuration file and could not find one. I found a couple of articles that say to run this command line : ./convert –list configuration but convert tells me it can't find the file configuration.xml.
I'm using a Macintosh OS X 10.6.7
Any help would be great
Re: Configuring Convert to uses ghost-script
Posted: 2011-04-13T13:43:39-07:00
by fmw42
Install GS, then re-install IM. You might find it better to have all your delegates installed via MacPorts. But I have been successful installing GS manually on Mac OSX Tiger.
Code: Select all
Key to Install Ghostscript on Mac OS X: Install Ghostscript.Framework
(IM does not recogize the installed ghostscript delegate without the framework)
From Ghostscript docs:
ghostscript-8.61/doc/Make.htm#MacOSX
MacOS X
The unix source distribution (.tar.gz) builds fine on Darwin/MacOS X, albeit without a display device. You can generally just use the Makefile generated by ./configure or macosx.mak as your top-level makefile and get a reasonable default build. This will allow you to use Ghostscript from the command line as a BSD-layer tool to rasterize postscript and pdf to image files, and convert between the high-level formats supported by Ghostscript. See the instructions for the unix build below for details of how to customize this build.
There is also a support for building Ghostscript as a framework. This is a special encapsulated shared library format specific to MacOS X. To build the framework, copy macosx.mak to the top-level directory, rename it to makefile and issue 'make framework' from Terminal.app. This will result in a Ghostscript.framework in the sobin directory. It must be manually copied to /Library/Frameworks/ before applications can use it. You may need to create the Frameworks/ directory on some systems.
So My Install Notes:
1) do normal install
./configure
make
sudo make install
2) Follow instructions above
*copy macosx.mak from src to top level of GS source directory
*rename to Makefile
*make framework
*copy framework from sobin directory of GS source code to /Library/Frameworks
*copy gsc from sobin directory and put in /usr/local/bin (same place as gs is located)
*copy libgs.8.71.dylib, libgs.8.dylib, libgs.dylib from sobin to /usr/local/lib
*reboot
3) Rebuild IM as usual.
Re: Configuring Convert to uses ghost-script
Posted: 2011-04-13T14:23:24-07:00
by kc2scy
OK I give this a try and let you know how I make out
thanks again.