我的 ghostscript 配置出了点问题,例如,在使用 epstopdf 时出现以下错误
./base/gsicc_manage.c:1088: gsicc_open_search(): Could not find default_gray.icc
| ./base/gsicc_manage.c:1914: gsicc_init_iccmanager(): cannot find default icc profile
./base/gsicc_manage.c:1088: gsicc_open_search(): Could not find default_rgb.icc
| ./base/gsicc_manage.c:1708: gsicc_set_device_profile(): cannot find device profile
**** Unable to open the initial device, quitting.
./base/gsicc_manage.c:1088: gsicc_open_search(): Could not find default_gray.icc
| ./base/gsicc_manage.c:1708: gsicc_set_device_profile(): cannot find device profile
Unrecoverable error: unknownerror in .special_op
./base/gsicc_manage.c:1088: gsicc_open_search(): Could not find default_gray.icc
+ ./base/gsicc_manage.c:2650: gs_setdefaultgrayicc(): cannot find default gray icc profile
Run Code Online (Sandbox Code Playgroud)
我想出了以下解决方法(插入到我的 .bashrc 中)
alias gs='gs -sICCProfilesDir=/usr/share/color/icc/ghostscript/'<br>
alias …Run Code Online (Sandbox Code Playgroud) 将发行版从 16.04 升级到 18.04.1 后,我拥有的两台打印机(Epson L805 和 HP 7500A)都停止工作。epson 测试页的 Cups 日志文件显示:
./base/gsicc_manage.c:1244: gsicc_open_search(): Could not find default_gray.icc
./base/gsicc_manage.c:2025: gsicc_set_device_profile(): cannot find device profile
Unrecoverable error: rangecheck in .putdeviceprops
Operand stack:
[Job 2256] true
[Job 2256] PID 21466 (/usr/lib/cups/filter/gstoraster) stopped with status 1.
[Job 2256] Hint: Try setting the LogLevel to "debug" to find out more.
[Job 2256] PID 21467 (/opt/epson-inkjet-printer-escpr/cups/lib/filter/epson-escpr-wrapper) stopped with status 1.
[Job 2256] Hint: Try setting the LogLevel to "debug" to find out more.
[Job 2256] …Run Code Online (Sandbox Code Playgroud)