Gentoo Wiki


Author: Gert Pellin ( with the help of Brother Suport Belgium. Feel free to contact me with any info/questions.



This howto is for the brother HL-2030, but can also be used for other brother-printers, just download the rpm-packages for your model instead of the the ones the links point to, you can find them all on the brother site.

Emerge required packages

Note: This HOWTO assumes having CUPS installed.

For the DCP 540CN you also need app-text/a2ps and app-text/ghostscript-gpl.

If you do not have CUPS installed, refer to:

emerge -va csh rpm

Download the driver

Download the rpm-packages.

LPR Driver

Cups Wrapper

Choose a directory you can easily access, like your home directory.

Install the Printer

If you saved the files in your home directory:

cd /home/<username>
rpm -ihv --nodeps brhl2030lpr-2.0.0-1.i386.rpm 
rpm -ihv --nodeps cupswrapperHL2030-2.0.0-1.i386.rpm
cp /usr/lib/cups/filter/brlpdwrapperHL2030 /usr/libexec/cups/filter/brlpdwrapperHL2030
/etc/init.d/cupsd restart

Alternative Instructions

Download the RPM for both the LPR printer driver and the CUPS printer driver, for your printer at the Brother website to ~/Brother/

ln -s /usr/libexec/cups/ /usr/lib/
rpm -ihv --nodeps ~/Brother/*.rpm
/etc/init.d/cupsd restart


RPM does not work

With some versions of RPM the following error occurs if you try to install something:

rpmdb: unable to initialize mutex: Function not implemented
rpmdb: /var/lib/rpm/__db.001: unable to initialize environment lock: Function not implemented
error: db4 error(38) from dbenv->open: Function not implemented
error: cannot open Packages index using db3 - Function not implemented (38)
error: cannot open Packages database in /var/lib/rpm

Execute the following commands to repair this:

mkdir -p /etc/rpm
echo "%__dbi_cdb create cdb private mpool mp_mmapsize=16Mb mp_size=1Mb" >> /etc/rpm/macros

Now rpm should work.


You may have to run /usr/local/Brother/Printer/*/cupswrapper/cupswrapper* to get the correct drivers installed

If you get the Error-Message 'Filter "brlpdwrapperHL2030" for printer "BrotherHL2030" not available: No such file or directory', you have to copy /usr/lib/cups/filter/brlpdwrapperHL2030 to /usr/libexec/cups/filter

Retrieved from ""

Last modified: Sun, 24 Aug 2008 17:45:00 +0000 Hits: 6,003