終於搞定了...呼

1. 一般使用者下, 任意目錄打上, 以下載檔案

git clone git://git.debian.org/sane/sane-backends.git

2. git pull (update 用, 如果想要的話)

3.先確定 libusb 已經安裝

ps. 一定要裝 libusb-dev, 其 libusbxxx 的 library 全部沒用

4. ./configure --prefix=/usr/local --sysconfdir=/etc --localstatedir=/var

 注意, 這跟網頁上的不同, 網頁上說的是 ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var, 但可能是因為 xsane 的關係, 到時會變成 scanimage那些相關的檔在 /usr/local和 /usr/bin下各有一份,會很麻煩

不同版本的系統可能得裝不一樣的地方
ubuntu 內定會裝 sane-util, 所以用
whereis sane-find-scanner 或 whereis scanimage 看看要蓋過那一個目錄

5. make

6. sudo make install

原則上這樣就 OK 了 (但這時有權限問題, 因為內定只有 root 可以用 xsane 去開啟 USB 的 scanner. 現在先不管他吧 =.=)

測試

scanimage -L

scanimage -T

xsane

參考網頁