[gs-bugs] [Bug 691955] Missing CIDFmap?

bugzilla-daemon at ghostscript.com bugzilla-daemon at ghostscript.com
Wed Feb 16 07:50:59 UTC 2011


--- Comment #23 from Chris Liddell <chris.liddell at artifex.com> 2011-02-16 07:50:58 UTC ---
(In reply to comment #20)
> Sorry to ask help again.
> In console, I can create enviornment variable "GS_LIB=...." and export it. Then
> I normally run the gs command. It works. And then I add the following line in
> /etc/init.d/cups in order to make CUPS can use this variable for GS. However,
> it does not work. CUPS run gs command without "-I" switch and then gs cannot
> find the font mapping information. So, fails the generation.
> GS_LIB=/usr/local/share/ghostscript/9.00/Resource/Init; export GS_LIB
> Question: How can I add "/usr/local/share/ghostscript/9.00/Resource/Init" to be
> the default value for GS9.00, no matter "GS_LIB" or "-I" so that I can normally
> call gs without specifying "-I" (font mapping info)?

This really is a question for the CUPS people, as Ray says above, Ghostscript
is working as expected.

One thing, however, springs to mind. You say "I can create enviornment variable
"GS_LIB=...." and export it. Then I normally run the gs command. It works."
I'll assume that means you created the environment variable and ran Ghostscript
in the same shell instance. When you print through CUPS, however, Ghostscript
will run in a completely different shell instance, so your environment variable
does not exist for that execution of Ghostscript.

*If* CUPS runs it's filters as the current user, and not some special
privileged user, then add the GS_LIB environment variable to your ~/.profile
file might just help you.

Configure bugmail: http://bugs.ghostscript.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the gs-bugs mailing list