You own a Mac running MacOS and want to print a document using a Brother printer. You also prefer not to use MacPorts because you have another package maanger installed.
- I used a 2021 Macbook Pro 14" running Sonoma 14.0
- I am using Homebrew as a package manager
- The printer is a Brother DCP-7030
- You can print remotely over Bonjour from the Macbook using the "Generic PostScript Driver" if you have another computer connected to the printer running Linux and with the
brlaserdriver installed - You can install the open source
brlaserprint drivers via MacPorts - You can install the open source
brlaserprint drivers manually
You will need a C compiler (clang) and cmake. I installed cmake using homebrew
$ brew install cmakeClone or download the latest brlaser source code.
$ curl -LO https://github.com/pdewacht/brlaser/archive/refs/tags/v6.tar.gz
$ tar xvzf v6.tar.gz$ cd brlaser-6
$ cmake .
$ make
$ ppdc brlaser.drv -d ppdFun fact: ppdc is deprecated according to its man page
Apparently /usr/share is a protected directory for MacOS which causes problems when running sudo make install. Since installation is relatively straightforward, I will just do it manually.
If you figure out a better way of doing this just leave a comment and I will update the steps.
$ sudo make install
Password:
[ 41%] Built target rastertobrlaser
[ 58%] Built target test_lest
[ 83%] Built target test_line
[100%] Built target test_block
Install the project...
-- Install configuration: "RelWithDebInfo"
-- Installing: /usr/libexec/cups/filter/rastertobrlaser
-- Installing: /usr/share/cups/drv/brlaser.drv
CMake Error at cmake_install.cmake:67 (file):
file INSTALL cannot copy file
"/Users/kktse/src/build/brlaser-6/brlaser.drv" to
"/usr/share/cups/drv/brlaser.drv": Operation not permitted.Install rastertobrlaser
$ sudo mv rastertobrlaser /usr/libexec/cups/filter/rastertobrlaser
$ sudo chown root:wheel /usr/libexec/cups/filter/rastertobrlaserInstall PPD files
$ sudo mv ppd/*.ppd /Library/Printers/PPDs/Contents/Resources/
$ sudo shown root:wheel /Library/Printers/PPDs/Contents/Resources/*.ppdPlug in the printer and select the brlaser6 driver.
You may now celebrate by doing a dance, or putting away your baseball bats.