Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

10.7: MacPorts CUPS-PDF 2.5.1 not printing Printers
The MacPorts CUPS-PDF 2.5.1 port would not produce a printer, the 'backend' part. In Terminal, I found the file /usr/libexec/cups/backend/cups-pdf is set up as a symlink (root:wheel) to file /opt/local/libexec/cups/backend/cups-pdf (my_user-id:staff).

I finally did as follows:
  • Renamed the symlink file with a '_x' suffix.
  • Copied the actual file /opt/local/libexec/cups/backend/cups-pdf over to the folder /usr/libexec/cups/backend/.
  • Typed in sudo chown root:wheel /usr/libexec/cups/backend/cups-pdf.
And now, MacPorts CUPS-PDF produces PDFs.

[crarko adds: I haven't tested this one. It's strange that the symlink should break like that. I suppose it's a permissions issue.]
    •    
  • Currently 3.00 / 5
  You rated: 2 / 5 (5 votes cast)
 
[6,322 views]  

10.7: MacPorts CUPS-PDF 2.5.1 not printing | 5 comments | Create New Account
Click here to return to the '10.7: MacPorts CUPS-PDF 2.5.1 not printing' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
CUPS running in Sandbox
Authored by: mkuron on Aug 18, '11 09:35:12AM

cups has been running sandboxed since Snow Leopard. That broke older versions of CUPS-PDF and Adobe Acrobat because CUPS could no longer write to e.g. the user's home folder. I assume this issue is very similar, only that Lion also restricts CUPS read access to the places it really needs (and obviously /opt wouldn't be part of that because it's not a standard Apple path).



[ Reply to This | # ]
10.7: MacPorts CUPS-PDF 2.5.1 not printing
Authored by: blb on Aug 18, '11 02:32:16PM

Note that stuff in /opt/local (by default) should be owned by root, not your own user ID; that may have been why cups wasn't loading the backend initially.



[ Reply to This | # ]
10.7: MacPorts CUPS-PDF 2.5.1 not printing
Authored by: kevinp on Aug 18, '11 02:34:23PM

VipRiser also makes a good alternative -- no Terminal shenanigans required.

---
Kevin



[ Reply to This | # ]
10.7: MacPorts CUPS-PDF 2.5.1 not printing
Authored by: benwiggy on Aug 19, '11 05:40:25AM

CUPS backends have to run as root anyway, so that wrong user attribute should have caused a problem under Snow Leopard, too.

Because of sandboxing, CUPS-PDF and other save-to-disk backends can only save to a few locations on disk, such as /var or /tmp.

I was fearful that "improvements in security" in Lion might break things like CUPS-PDF, so good to know that it still works.



[ Reply to This | # ]
10.7: MacPorts CUPS-PDF 2.5.1 not printing
Authored by: ChipMck on Aug 21, '11 09:18:06AM

One problem with CUPS-PDF is the size of the outputted PDF; one sample - 80 mb.
A package on sourceForge PDFwriter http://pdfwriterformac.sourceforge.net/ is based on CUPS-PDF and produces a smaller PDF; the sample - 27mb.
Also, the .dmg installs and works on Lion on 1st attempt.



[ Reply to This | # ]