LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Brother rpm driver fails to install. How do I trick it? (https://www.linuxquestions.org/questions/slackware-14/brother-rpm-driver-fails-to-install-how-do-i-trick-it-4175733967/)

Wed 02-17-2024 02:04 PM

Brother rpm driver fails to install. How do I trick it?
 
I have a Brother DCP-L3560CDW printer. Drivers are published in rpm and deb format. I picked rpm for no reason.


Code:

brother-udev-rule-type1-1.0.2-0.noarch.rpm
brscan5-1.3.1-0.x86_64.rpm
linux-brprinter-installer-2.2.3-1*
brscan-skey-0.3.2-0.x86_64.rpm
dcpl3560cdwpdrv-3.5.1-1.i386.rpm

The instructions say to gunzip and run the linux installer, but omitted making the file executable.

Code:

# ./linux-brprinter-installer-2.2.3-1
Input model name ->DCP-L3560CDW

You are going to install following packages.
  dcpl3560cdwpdrv-3.5.1-1.i386.rpm
  brscan5-1.3.1-0.x86_64.rpm
  brscan-skey-0.3.2-0.x86_64.rpm
OK? [y/N] ->y

rpm -ihv --nodeps --replacefiles --replacepkgs dcpl3560cdwpdrv-3.5.1-1.i386.rpm
warning: Generating 18 missing index(es), please wait...
Verifying...                          ########################################
Preparing...                          ########################################
Updating / installing...
dcpl3560cdwpdrv-3.5.1-1              ########################################
mkdir: cannot create directory ‘/var/spool/lpd/dcpl3560cdw’: No such file or directory
chown: cannot access '/var/spool/lpd/dcpl3560cdw': No such file or directory
chgrp: cannot access '/var/spool/lpd/dcpl3560cdw': No such file or directory
chmod: cannot access '/var/spool/lpd/dcpl3560cdw': No such file or directory
lpadmin -p DCPL3560CDW -E -v usb://dev/usb/lp0 -P /usr/share/cups/model/Brother/brother_dcpl3560cdw_printer_en.ppd
lpadmin: Printer drivers are deprecated and will stop working in a future version of CUPS.
#
Will you specify the Device URI? [Y/n] ->


Slackware don't seem to have a lpd-directory where Red Hat seem to have. Can I possibly move files around manually? Or create lpd in /var/spool? Maybe another driver would help? Or do I have a paper weight?

Pixxt 02-17-2024 02:42 PM

Thanks to Hazel for the blog post.

This helped me get my Brother printer/fax to work under Slackware

https://www.linuxquestions.org/quest...t-linux-37620/

You might have to tinker with the steps, but the post helped me get the printer working.

dhalliwe 02-17-2024 02:57 PM

I can't find any info on the model # your provide. What sort of connection does it use?

I have a Brother MFC-L8900CDW colour laser printer, which connects via the LAN. I spent quite a bit of time figuring out where the DEB or RPM files wanted to end up, and how to get them to go where Slackware wanted them to be. I did manage to get the driver working, but a few features were glitchy/non-functional.

In the end, I installed the printer as a generic IPP printer. Still one or two features not accessible that way, but I haven't had the time to try to sort out why one or the other driver won't play ball.

I did keep notes on the things I tried/managed, but not in a coherent document.

Slackware 15.0 stable, with XFCE4 as my desktop (if it makes any difference).

camorri 02-17-2024 03:31 PM

I installed a Brother HL-L2320D using this How to:

http://docs.slackware.com/howtos:har...r_installation

The printer works fine on 15.0 and current. The only difference is the 32 bit files you need, depending if its 15.0 or current.

knudfl 02-17-2024 05:40 PM

I guess no harm is done with
# mkdir -p /var/spool/lpd

Then the package installs OK :
# rpm -Uvh --nodeps dcpl3560cdwpdrv-3.5.1-1.i386.rpm

... The /var files, and files in /opt can be copied to more relevant locations if required. E.g. files.ppd are usually found in /etc/cups/ppd/
( The ppd file is /opt/brother/Printers/dcpl3560cdw/cupswrapper/brother_dcpl3560cdw_printer_en.ppd )

-

_peter 02-18-2024 06:40 AM

Slackware does have a directory /var/spool/lpd once the printer installation has completed.
Code:

ls /var/spool/lpd/
MFCL2710DW/    < - -  brother printer that works at my office.

You have to run bash while invoking the script as root.

Code:

#bash linux-brprinter-installer-2.2.3-1 DCP-L3560CDW
You are going to install following packages.
  dcpl3560cdwpdrv-3.5.1-1.i386.rpm
  brscan5-1.3.1-0.x86_64.rpm
  brscan-skey-0.3.2-0.x86_64.rpm
OK? [y/N] ->y

rpm -ihv --nodeps --replacefiles --replacepkgs dcpl3560cdwpdrv-3.5.1-1.i386.rpm
Verifying...                          ########################################
Preparing...                          ########################################
Updating / installing...
dcpl3560cdwpdrv-3.5.1-1              ########################################
lpadmin -p DCPL3560CDW -E -v usb://dev/usb/lp0 -P /usr/share/cups/model/Brother/brother_dcpl3560cdw_printer_en.ppd
lpadmin: Printer drivers are deprecated and will stop working in a future version of CUPS.
#
Will you specify the Device URI? [Y/n] ->



You ran the manufacturer script linux-brprinter-installer-2.2.3-1 as root for your printer ?

Code:

Step1. Download the tool.(linux-brprinter-installer-*.*.*-*.gz)

The tool will be downloaded into the default "Download" directory.
(The directory location varies depending on your Linux distribution.)
e.g. /home/(LoginName)/Download

Step2. Open a terminal window.

Step3. Go to the directory you downloaded the file to in the last step. By using the cd command.

e.g. cd Downloads

Step4. Enter this command to extract the downloaded file:

Command: gunzip linux-brprinter-installer-*.*.*-*.gz

e.g. gunzip linux-brprinter-installer-2.1.1-1.gz

Step5. Get superuser authorization with the "su" command or "sudo su" command.

Step6. Run the tool:

Command: bash linux-brprinter-installer-*.*.*-* Brother machine name
e.g. bash linux-brprinter-installer-2.1.1-1 MFC-J880DW

Step7. The driver installation will start. Follow the installation screen directions.
 

 When you see the message "Will you specify the DeviceURI ?",

 For USB Users: Choose N(No)
 For Network Users: Choose Y(Yes) and DeviceURI number.

The install process may take some time. Please wait until it is complete.


Wed 02-18-2024 11:01 AM

Quote:

Originally Posted by knudfl (Post 6484289)
I guess no harm is done with
# mkdir -p /var/spool/lpd

I didn't use -p
# mkdir /var/spool/lpd
Will that make a big difference?


Quote:

Then the package installs OK :
# rpm -Uvh --nodeps dcpl3560cdwpdrv-3.5.1-1.i386.rpm
I just reran the installer

Code:

# ./linux-brprinter-installer-2.2.3-1 DCP-L3560CDW
You are going to install following packages.
  dcpl3560cdwpdrv-3.5.1-1.i386.rpm
  brscan5-1.3.1-0.x86_64.rpm
  brscan-skey-0.3.2-0.x86_64.rpm
OK? [y/N] ->y

rpm -ihv --nodeps --replacefiles --replacepkgs dcpl3560cdwpdrv-3.5.1-1.i386.rpm
Verifying...                          ########################################
Preparing...                          ########################################
Updating / installing...
dcpl3560cdwpdrv-3.5.1-1              ########################################
ln: failed to create symbolic link '/opt/brother/Printers/dcpl3560cdw/lpd/brdcpl3560cdwfilter': File exists
ln: failed to create symbolic link '/opt/brother/Printers/dcpl3560cdw/lpd/brprintconf_dcpl3560cdw': File exists
lpadmin -p DCPL3560CDW -E -v usb://dev/usb/lp0 -P /usr/share/cups/model/Brother/brother_dcpl3560cdw_printer_en.ppd
lpadmin: Printer drivers are deprecated and will stop working in a future version of CUPS.
#
Will you specify the Device URI? [Y/n] ->

Is it ok if file exists already?

Code:

0: beh
1: ipp
2: https
3: socket
4: hp
5: http
6: cups-brf:/
7: lpd
8: ipps
9: smb
10: hpfax
11 (I): Specify IP address.
12 (A): Auto. (usb://dev/usblp0)

select the number of destination Device URI. ->11

 enter IP address ->192.168.1.133                                                 
lpadmin -p DCPL3560CDW -v socket://192.168.1.133 -E
Test Print? [y/N] ->y

wait 5s.
lpr -P DCPL3560CDW /usr/share/cups/data/testprint
You are going to install following packages.
  brscan5-1.3.1-0.x86_64.rpm
rpm -ihv --nodeps --replacefiles --replacepkgs brscan5-1.3.1-0.x86_64.rpm
Verifying...                          ################################# [100%]
Preparing...                          ################################# [100%]
Updating / installing...
  1:brscan5-1.3.1-0                  ################################# [100%]
This software is based in part on the work of the Independent JPEG Group.
You are going to install following packages.
  brscan-skey-0.3.2-0.x86_64.rpm
rpm -ihv --nodeps --replacefiles --replacepkgs brscan-skey-0.3.2-0.x86_64.rpm
Verifying...                          ################################# [100%]
Preparing...                          ################################# [100%]
Updating / installing...
  1:brscan-skey-0.3.2-0              ################################# [100%]
brsaneconfig5 -a name=DCP-L3560CDW model=DCP-L3560CDW ip=192.168.1.133

The printer started buzzing for a bit, but no test page came out.

Quote:

... The /var files, and files in /opt can be copied to more relevant locations if required. E.g. files.ppd are usually found in /etc/cups/ppd/
( The ppd file is /opt/brother/Printers/dcpl3560cdw/cupswrapper/brother_dcpl3560cdw_printer_en.ppd )

-
Maybe I will tidy things up, but probably not. If I get it working, Ill be happy.

In localhost:631, CUPS reports it as installed, idle and accepting jobs. Same thing though. buzzing for a bit and then nothing.

As shown, the installer installs all the files it finds. Driver for printer, scanner and scanner key.

Xsane finds the printer too and acquiring the preview worked fine, but only if the paper was fed through the top. Actually scanning failed because now the feed tray was empty ...

allend 02-18-2024 11:05 PM

Quote:

dcpl3560cdwpdrv-3.5.1-1.i386.rpm
Note the .i386 in the name. This suggests compilation for 32 bit architecture. Follow the instructions in the link in post#4 for installing the multilib glibc-solibs package on a 64 bit system.

Even better, follow all the instructions in that link. You will end up with proper Slackware packages that can be cleanly installed and uninstalled.

knudfl 02-19-2024 01:55 AM

Re #8, @allend

The package dcpl3560cdwpdrv-3.5.1-1.i386.rpm contains the 32bit and the 64 bit {brdcpl3560cdwfilter, brprintconf_dcpl3560cdw} :
Code:

/opt/brother/Printers/dcpl3560cdw/lpd/
├── i686
│  ├── brdcpl3560cdwfilter
│  └── brprintconf_dcpl3560cdw
└── x86_64
    ├── brdcpl3560cdwfilter
    └── brprintconf_dcpl3560cdw


allend 02-19-2024 05:09 AM

Well, I got that wrong.

Pixxt 02-25-2024 01:14 AM

If OP is using current or is on 15.0 and wants to install avahi from slackbuilds, since with avahi installed, CUPS supports driverless printing. It will find your printer on the network if it's connected and print and scan both work without the hassle of finding and installing print drivers.

allend 02-25-2024 11:49 PM

On Slackware 15.0, it is not necessary to install avahi to set up the CUPS everywhere driver for a network printer. The required service discovery can be done using nmap.

I have looked at the Brother procedure for installing the Brother DCP-L3560CDW.
It requires the use of the linux-brprinter-installer-2.2.3-1 tool, that can be downloaded and extracted as per the instructions on the Brother page. This tool also handles scanner installation.

Initially when I ran the tool, I saw errors. Apparently the tool expects a /var/spool/lpd directory to exist. It also expects CUPS to running, otherwise the lpadmin tool fails. On completion, uninstaller scripts are created. The uninstall is not clean, leaving files behind. When I reran the installer tool after manually creating a /var/spool/lpd directory, the printer installation appeared to work OK. I did not attempt scanner installation, just answering no when prompted. Without the actual hardware, I cannot test any further.

mw.decavia 02-27-2024 10:47 AM

I am sorry that this is not a direct answer to your question, but

I have been using a Brother hl-l8360cdw, which is now 4 years old. Not the newest tech.
It includes ftp-printing = it is running it's own ftp server, and any client pc wanting to print needs only to transfer (via ftp) a file. The file formats it accepts include .ps , .pdf , and others.

Probably other Brother printers might include ftp printing too.
Perhaps Cups can be configured for ftp-printing? That protocol has been around for a long time.

Wed 03-03-2024 12:21 PM

Many thanks for all the suggestions, and sorry for my rare responses. Life is crazy.

I still haven't got the printer working. I'm logged in to it. I can get it to print reports of itself.

After trying to send a test page in Cups, and then cancelling it:
In localhost:631 (cups), it is DCPL3560CDW (Processing, Accepting Jobs, Not Shared)

"Show completed jobs"
canceled at
sön 3 mar 2024 19:13:47
"Unable to locate printer "BRWC894023D1294"."

Why is it unable to be located?
Is there a point in trying to reinstall the driver?
Do I need to symlink anything?

dhalliwe 03-03-2024 01:28 PM

You have not yet told us how you are connecting to the printer (network, USB?). That may be important.

As I mentioned earlier, I had issues getting a Brother MFC-L8900CDW working. Here are a few things from my notes:
  • CUPS expects printer filter information in directory /usr/lib/cups/filter.
  • The Brother installation placed these files in /opt/brother/Printers/mfcl8900cdw/cupswrapper.
  • I created links in /usr/lib/cups/filter for the three files:
  • --- brother_lpdwrapper_mfcl8900cdw
  • --- brother_mfcl8900cdw_printer_en.ppd
  • --- cupswrappermfcl8900cdw
  • This still didn't work, so I turned on debugging log using “cupsctl –debug-logging” and restarted cups using “/etc/rc.d/rc.cuip restart”.
  • When I tried printing again, I found an error log entry saying /opt/brother/Printers/mfcl8900cdw/lpd/brmfcl8900cdwfilter: No such file or directory.
  • The file (plus one other) did exist one directory down:
  • --- /opt/brother/Printers/mfcl8900cdw/lpd/x86_64
  • I created two more links:
  • --- brmfcl8900cdwfilter -> x86_64/brmfcl8900cdwfilter
  • --- brprintconf_mfcl8900cdw -> x86_64/brprintconf_mfcl8900cdw

...and then I could print.

The files you need will have names matching your printer model (not mine). Try searching for relevant files and making those links. Turn on CUPS debugging and check the log for additional details on where it fails. That will help identify where it is looking, and for what files. Find where Brother placed those files and create links where CUPS is expecting them.


All times are GMT -5. The time now is 02:53 AM.