Після Йосеміті не можна друкувати; CUPS error_log: "/ bin / bash: gs: команда не знайдена"


4

Мій принтер перестав працювати з моменту оновлення до Yosemite. У вікні черги друку вказано лише "Зупинений -" Фільтр "не вдалося". З / 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 found виглядає цікаво, як це робить PID 3336 (/usr/libexec/cups/filter/foomatic-rip) stopped with status 1. Я припускаю, що перша помилка призвела до другої.

GhostScript вже давно встановлено. Я тільки що встановив останню (9.15). Біг gs у терміналі запускає інструмент командного рядка GhostScript. which gs говорить мені /usr/local/bin/gs.

Я спробував перезавантажити CUPS ( sudo launchctl [stop/start] org.cups.cupsd ). Я також символічно пов'язував gs з / usr / bin та / sbin.

Чому вона не може знайти gs коли я фактично намагаюся друкувати?


Я досі не зафіксував, але люди з подібними проблемами. Подивитися discussions.apple.com/message/26887951#26887951 . Це стосується нових обмежень для пісочниці в Yosemite або щось інше.
Trevor Dixon

Відповіді:


6

Якщо ви подивитеся на вашу консоль, ви, ймовірно, побачите повідомлення про те, як пісочниця не запускається. Просто додайте цей рядок до кінця файлу /etc/cups/cups-files.conf:

Пісочниці розслаблені

потім введіть:

sudo launchctl stop org.cups.cupsd
Використовуючи наш веб-сайт, ви визнаєте, що прочитали та зрозуміли наші Політику щодо файлів cookie та Політику конфіденційності.
Licensed under cc by-sa 3.0 with attribution required.