gs_init.ps not found

Helge Blischke h.blischke at srz.de
Sat Mar 19 06:56:49 PST 2005


Anonymous wrote:
> 
> > smynggi at myrealbox.com wrote:
> > >
> > > I'm receiving the following in my cups error log:
> > > ESP Ghostscript 7.07.1: Can't find initialization file gs_init.ps.
> > >
> > > The file does exist on my system in /usr/share/ghostscript/7.07/lib.
> > >
> > > I'm running Gentoo and using emerge to install Ghostscript.
> > >
> > > To troubleshoot, I ran gs from the command prompt and got the same message.  So I created the environment variable GS_LIB.  I no longer get the error message at the command prompt.  But I still get the error message in the CUPS error log.  Why would CUPS not work if gs is working from the command line?
> >
> > Seems that your gs has not been compiled with respect to the propoer
> > library path;
> > perhapos gentoo has different ideas where to install binaries and stuff
> > that those need.
> >
> > Set your GS_LIB variable in the /etc/init.d/cups startup file (or
> > whereever it
> > resides) and restart CUPS.
> >
> > Helge
> >
> > --
> > Helge Blischke
> > Softwareentwicklung
> > SRZ Berlin | Firmengruppe besscom
> > http://www.srz.de
> 
> Hi Helge,
> Thanks for the reply.  I tried adding:
> GS_LIB=/usr/share/ghostscript/7.07/lib
> export GS_LIB
> to the /etc/init.d/cupsd in the section where the daemon is to be started.  In order to start the daemon, the script executes:
> start-stop-daemon --start --quiet --exec /usr/sbin/cupsd
> 
> It would appear that start-stop-daemon runs the cups daemon as a system process and doesn't recognize the variable that I set.  The user who actually executed the /etc/init.d/cupsd script now can echo $GS_LIB and see that the variable is set properly.
> 
> Do you know how I can set this variable so that daemons initiated via start-stop-daemon can read it?  If not, can you point me in the right direction?
> 
> Thanks again for the reply.
> -smynggi

-- 
Helge Blischke
Softwareentwicklung
SRZ Berlin | Firmengruppe besscom
http://www.srz.de

Look into that script and see what it does with defined environment
variables.
BTW, is it really a script?

Helge




More information about the cups mailing list