Nach Yosemite kann nicht gedruckt werden; CUPS error_log: „/bin/bash: gs: Befehl nicht gefunden“

Mein Drucker funktioniert seit dem Upgrade auf Yosemite nicht mehr. Das Druckwarteschlangenfenster sagt nur "Gestoppt - 'Filter' fehlgeschlagen". Aus /var/log/cups/error_log:

...
D [28/Oct/2014:21:46:49 -0700] [Job 4] PID 3334 (/usr/libexec/cups/filter/cgpdftops) exited with no errors.
D [28/Oct/2014:21:46:49 -0700] [Job 4] Wrote 1 pages...
D [28/Oct/2014:21:46:49 -0700] [Job 4] PID 3335 (/usr/libexec/cups/filter/pstops) exited with no errors.
D [28/Oct/2014:21:46:49 -0700] [Job 4] Flushing FIFO.
D [28/Oct/2014:21:46:49 -0700] [Job 4] Starting renderer with command: "gs -dBATCH -dPARANOIDSAFER -dNOPAUSE -sDEVICE=pxlmono -r600x600 -dMediaPosition=0 -dDEVICEWIDTHPOINTS=612 -dDEVICEHEIGHTPOINTS=792 -sOutputFile=/dev/fd/3 -_ 3>&1 1>&2"
D [28/Oct/2014:21:46:49 -0700] [Job 4] Starting process "kid3" (generation 1)
D [28/Oct/2014:21:46:49 -0700] [Job 4] Starting process "kid4" (generation 2)
D [28/Oct/2014:21:46:49 -0700] [Job 4] JCL: -12345X@PJL
D [28/Oct/2014:21:46:49 -0700] [Job 4] <job data> 
D [28/Oct/2014:21:46:49 -0700] [Job 4] Starting process "renderer" (generation 2)
D [28/Oct/2014:21:46:49 -0700] [Job 4] /bin/bash: gs: command not found
D [28/Oct/2014:21:46:49 -0700] [Job 4] renderer exited with status 127
D [28/Oct/2014:21:46:49 -0700] [Job 4] Closing renderer
D [28/Oct/2014:21:46:49 -0700] [Job 4] kid3 exited with status 1
D [28/Oct/2014:21:46:49 -0700] [Job 4] Process is dying with "Error closing renderer
D [28/Oct/2014:21:46:49 -0700] [Job 4] ", exit stat 1
D [28/Oct/2014:21:46:49 -0700] [Job 4] Cleaning up...
D [28/Oct/2014:21:46:49 -0700] [Job 4] PID 3336 (/usr/libexec/cups/filter/foomatic-rip) stopped with status 1.
D [28/Oct/2014:21:46:49 -0700] [Job 4] Hint: Try setting the LogLevel to "debug" to find out more.
D [28/Oct/2014:21:46:49 -0700] [Job 4] Sent 0 bytes...
D [28/Oct/2014:21:46:49 -0700] [Job 4] STATE: +cups-waiting-for-job-completed
D [28/Oct/2014:21:46:49 -0700] [Job 4] Waiting for read thread to exit...
D [28/Oct/2014:21:46:49 -0700] [Job 4] PID 3337 (/usr/libexec/cups/backend/usb) exited with no errors.
D [28/Oct/2014:21:46:49 -0700] [Job 4] End of messages
D [28/Oct/2014:21:46:49 -0700] [Job 4] printer-state=3(idle)
D [28/Oct/2014:21:46:49 -0700] [Job 4] printer-state-message="Filter failed"
D [28/Oct/2014:21:46:49 -0700] [Job 4] printer-state-reasons=none

/bin/bash: gs: command not foundsieht interessant aus, da gehe PID 3336 (/usr/libexec/cups/filter/foomatic-rip) stopped with status 1.ich davon aus, dass der erste Fehler zum zweiten geführt hat.

GhostScript ist seit langem installiert. Ich habe gerade das neueste (9.15) installiert. Beim Ausführen gsin Terminal wird das GhostScript-Befehlszeilentool gestartet. which gssagt mir /usr/local/bin/gs.

Ich habe versucht, CUPS neu zu starten ( sudo launchctl [stop/start] org.cups.cupsd). Ich habe gs auch mit /usr/bin und /sbin verknüpft.

Warum kann es nicht finden, gswenn ich tatsächlich versuche zu drucken?

Ich habe es immer noch nicht behoben, aber Leute mit ähnlichen Problemen haben es. Siehe Discussions.apple.com/message/26887951#26887951 . Es hat mit neuen Sandbox-Beschränkungen in Yosemite oder so etwas zu tun.

Antworten (1)

Wenn Sie in Ihre Konsole schauen, sehen Sie wahrscheinlich eine Meldung darüber, dass sandboxd die Ausführung von gs verhindert. Fügen Sie einfach diese Zeile am Ende von /etc/cups/cups-files.conf hinzu:

Entspannt Sandboxen

dann tippe:

sudo launchctl stop org.cups.cupsd