[cups.general] Re: gs_init.ps not found

Gene Heskett gene.heskett at verizon.net
Fri Mar 18 13:21:56 PST 2005


On Friday 18 March 2005 13:59, 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?

The /etc/init.d/cups is a script, and I see no reason why the setting 
of that path, and its exportation, could not be edited into that 
script, at least for the duration of your usage of a broken install.  
But the need to do so bothers me a bit in that I wonder what else is 
broken. And I'd also suggest that the problem might well go away of 
that copy of gs was removed, and the specific built for cups use 
espgs was installed in its place.
 
>Thanks again for the reply.
>-smynggi
>_______________________________________________
>cups mailing list
>cups at easysw.com
>http://lists.easysw.com/mailman/listinfo/cups

-- 
Cheers, Gene
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
99.34% setiathome rank, not too shabby for a WV hillbilly
Yahoo.com and AOL/TW attorneys please note, additions to the above
message by Gene Heskett are:
Copyright 2005 by Maurice Eugene Heskett, all rights reserved.





More information about the cups mailing list