Author Topic: Upgrading SANE backend  (Read 377 times)

Offline GreggB

  • Full Member
  • ***
  • Posts: 56
Upgrading SANE backend
« on: November 05, 2012, 03:34:23 PM »
The only reason (that I can think of) to not use the version of SANE already installed on PCLinuxOS,  is because the newer version supports your scanner and the installed version doesn't. Here are the steps I used to upgrade from 1.0.22 to 1.0.23 (to gain some support for my 9000F)

1) Use Synaptic to install the libusb development libraries. (libusb1.0-devel and libusb-compat0.1-devel at the time of writing).

2) Download the sane-backends-1.0.23.tar.gz and unzip to a suitable location.

3) CD to the directory it created and read README and README.linux

4) ./configure
    This will tell you what it will and will not install (If there is something missing that you think you need, now's the time to figure out how to get it)

5) make
6) su -c "make install"

7) Set up links for the new libraries:
     cd /usr/lib
     su -c "ln -sf /usr/local/lib/libsane.so.1.0.23 libsane.so.1"
     su -c "ln -sf /usr/local/lib/sane/libsane.la libsane.la"
     cd -

8) Copy new libsane.rules file (I recommend renaming the existing file first):
    (from the unzip directory) su -c "mv /etc/udev/rules.d/60-libsane.rules.old 60-libsane-rules.022"
      su -c "cp tools/udev/libsane.rules /etc/udev/rules.d/60-libsane.rules"

9) See if SANE finds your scanner: (don't be put off by "may or may not be supported")
    /usr/local/bin/sane-find-scanner

10) See if it will recognize your scanner:
   /usr/local/bin/scanimage -L

11) Check the version:
      /usr/local/bin/scanimage -V

12) Try a scan - if there is only one scanner detected then you should be able to:
       /usr/local/bin/scanimage > test.pnm
      otherwise use --help.

Notes: The above assume a USB scanner.
            I used the latest stable release. My procedures don't account for any differences that may exist if using a daily git snapshot.

.....I'm new to all this, so any suggestions on better ways to do things are welcome.

Gregg.