Dúvidas sobre link simbólico Impressora Brother all-in-one

1

Eu tenho uma dúvida e confusão sobre links simbólicos nas configurações da "impressora Brother MFC-660CN"

Eu instalei os drivers através de um arquivo de instalação do site Brother

O arquivo é "linux-1.0-installer-brfax"

Instalado tudo certo sem erros ...

Mas no /var/log/sys.log ou no boot , aparece:

FX6300 udevd[412]: unknown key 'SYSFS{idVendor}' in /etc/udev/rules.d/40-brother-libsane-type1.rules:17
FX6300 udevd[412]: invalid rule '/etc/udev/rules.d/40-brother-libsane-type1.rules:17'

No arquivo /etc/udev/rules.d/40-brother-libsane-type1.rules eu tenho isto:

> #   udev rules sample for Brother MFP
> #         version 1.0.0-1
> #
> #   Copyright (C) 2012 Brother. Industries, Ltd.
> #
> #   copy to /etc/udev/rules.d or /lib/udev/rules.d
> #
> 
>
> ACTION!="add", GOTO="brother_mfp_end"
> 
> SUBSYSTEM=="usb", GOTO="brother_mfp_udev_1" SUBSYSTEM!="usb_device",
> GOTO="brother_mfp_end" LABEL="brother_mfp_udev_1"
> 
>
> SYSFS{idVendor}=="04f9", GOTO="brother_mfp_udev_2"
> ATTRS{idVendor}=="04f9", GOTO="brother_mfp_udev_2"
> GOTO="brother_mfp_end" LABEL="brother_mfp_udev_2"
> 
> #  ATTRS{bInterfaceNumber}=="01", GOTO="brother_mfp_udev_3"
> #  ATTRS{bInterfaceNumber}=="02", GOTO="brother_mfp_udev_3"
> #  ATTRS{bInterfaceNumber}=="03", GOTO="brother_mfp_udev_3"
> #  GOTO="brother_mfp_end"
> #  LABEL="brother_mfp_udev_3"
> 
> ATTRS{bInterfaceClass}!="0ff", GOTO="brother_mfp_end"
> ATTRS{bInterfaceSubClass}!="0ff", GOTO="brother_mfp_end"
> ATTRS{bInterfaceProtocol}!="0ff", GOTO="brother_mfp_end"
> 
> #MODE="0666"
> #GROUP="scanner" ENV{libsane_matched}="yes"
> #SYMLINK+="scanner-%k"
> 
> LABEL="brother_mfp_end"

No arquivo /lib/udev/rules.d/40-libsane.rules :

# Kernel < 2.6.22 jumps here
LABEL="libsane_usb_rules_begin"

# Brother scanners
ATTRS{idVendor}=="04f9", ATTRS{idProduct}=="01b0", ENV{libsane_matched}="yes"

# The following rule will disable USB autosuspend for the device
ENV{libsane_matched}=="yes", RUN+="/bin/sh -c 'if test -e /sys/$env{DEVPATH}/power/control; then echo on > /sys/$env{DEVPATH}/power/control; elif test -e /sys/$env{DEVPATH}/power/level; then echo on > /sys/$env{DEVPATH}/power/level; fi'"

LABEL="libsane_usb_rules_end"

Quando eu instalo qualquer coisa do terminal, também tenho este erro:

/sbin/ldconfig.real: /usr/lib/libbrcolm2.so.1 is not a symbolic link
/sbin/ldconfig.real: /usr/lib/libbrscandec2.so.1 is not a symbolic link

Quando eu uso o comando ls -l eu tenho isto:

$ ls -l /usr/lib/libbrscandec2.so
   -rwxr-xr-x 1 root root 37064 Nov 23 18:21 /usr/lib/libbrscandec2.so

$ ls -l /usr/lib/libbrscandec2.so.1
   -rwxr-xr-x 1 root root 37064 Nov 23 18:21 /usr/lib/libbrscandec2.so.1

$ ls -l /usr/lib/libbrscandec2.so.1.0.0
   -rwxr-xr-x 1 root root 37064 Nov 23 18:21 /usr/lib/libbrscandec2.so.1.0.0

$ ls -l /usr/lib64/libbrscandec2.so
   lrwxrwxrwx 1 root root 29 Dez  2  2009 /usr/lib64/libbrscandec2.so -> /usr/lib64/libbrscandec2.so.1

$ ls -l /usr/lib64/libbrscandec2.so.1
   lrwxrwxrwx 1 root root 33 Dez  2  2009 /usr/lib64/libbrscandec2.so.1 -> /usr/lib64/libbrscandec2.so.1.0.0

$ ls -l /usr/lib64/libbrscandec2.so.1.0.0
   -rwxr-xr-x 1 root root 37064 Dez  2  2009 /usr/lib64/libbrscandec2.so.1.0.0

$ ls -l /usr/lib/libbrcolm2.so
   -rwxr-xr-x 1 root root 15072 Nov 23 18:21 /usr/lib/libbrcolm2.so

$ ls -l /usr/lib/libbrcolm2.so.1
   -rwxr-xr-x 1 root root 15072 Nov 23 18:21 /usr/lib/libbrcolm2.so.1

$ ls -l /usr/lib/libbrcolm2.so.1.0.1
   -rwxr-xr-x 1 root root 15072 Nov 23 18:21 /usr/lib/libbrcolm2.so.1.0.1

$ ls -l /usr/lib64/libbrcolm2.so
   lrwxrwxrwx 1 root root 26 Dez  2  2009 /usr/lib64/libbrcolm2.so -> /usr/lib64/libbrcolm2.so.1

$ ls -l /usr/lib64/libbrcolm2.so.1
   lrwxrwxrwx 1 root root 30 Dez  2  2009 /usr/lib64/libbrcolm2.so.1 -> /usr/lib64/libbrcolm2.so.1.0.1

$ ls -l /usr/lib64/libbrcolm2.so.1.0.1
   -rwxr-xr-x 1 root root 15072 Dez  2  2009 /usr/lib64/libbrcolm2.so.1.0.1

Eu não sei se é a maneira correta que eu acho, mas ..

Na pasta:

/ usr / lib64 /

O link simbólico é de:

libbrscandec2.so para libbrscandec2.so.1 e termina em libbrscandec2.so.1.0.0 ?

O mesmo para libbcolm2.so ?

Pelo que entendi em outros posts, o link simbólico deve estar entre as pastas:

/ usr / lib / e / usr / lib64 /

Ou eu estou pensando de maneira errada? O que há de errado aqui?

Agradeço qualquer ajuda sobre isso ..

Obrigado.

    
por Lc1975 24.11.2013 / 18:58

2 respostas

1

Resolvi meu problema ...

Eu faço um comentário /etc/udev/rules.d/40-brother-libsane-type1.rules :

#SYSFS{idVendor}=="04f9", GOTO="brother_mfp_udev_2"  <<<<< here
ATTRS{idVendor}=="04f9", GOTO="brother_mfp_udev_2"
GOTO="brother_mfp_end" LABEL="brother_mfp_udev_2"

Talvez um conflito entre SYSFS {idVendor} e ATTRS {idVendor} , já que são os mesmos "04f9" ?? Apenas adivinhando ...

E simlink no / etc / lib /

libbrscandec2.so > libbrscandec2.so.1 > libbrscandec2.so.1.0.0

E a libbcolm2.so também libbrscanedc2.so

Os erros não aparecem mais ...

Funciona muito bem ...

    
por Lc1975 25.11.2013 / 20:34
0

Comecei a receber os mesmos erros de link simbólico do ldconfig depois de atualizar para atrevido. Você pode editar manualmente os links simbólicos como o lc1975 , ou apenas remover e reinstalar o pacote brscan2 ( disponível aqui ).

Tanto o libbrscandec2 quanto o libbrcolm2 são fornecidos pelo brscan2 deb da Brother, e eles são links simbólicos no pacote:

$ dpkg-deb -c brscan2-0.2.5-1.amd64.deb 
drwxr-xr-x root/root         0 2009-12-01 20:20 ./
drwxr-xr-x root/root         0 2009-12-01 20:20 ./usr/
drwxr-xr-x root/root         0 2009-12-01 20:20 ./usr/local/
drwxr-xr-x root/root         0 2009-12-01 20:20 ./usr/local/Brother/
drwxr-xr-x root/root         0 2009-12-01 20:20 ./usr/local/Brother/sane/
-rw-r--r-- root/root      1536 2009-12-01 20:20 ./usr/local/Brother/sane/Brsane2.ini
drwxr-xr-x root/root         0 2009-12-01 20:20 ./usr/local/Brother/sane/GrayCmData/
drwxr-xr-x root/root         0 2009-12-01 20:20 ./usr/local/Brother/sane/GrayCmData/AL/
-rw-r--r-- root/root     14940 2009-12-01 20:20 ./usr/local/Brother/sane/GrayCmData/AL/brmsl09f.cm
drwxr-xr-x root/root         0 2009-12-01 20:20 ./usr/local/Brother/sane/GrayCmData/ALL/
-rw-r--r-- root/root     14940 2009-12-01 20:20 ./usr/local/Brother/sane/GrayCmData/ALL/brmsl08f.cm
-rwxr-xr-x root/root     22312 2009-12-01 20:20 ./usr/local/Brother/sane/brsaneconfig2
drwxr-xr-x root/root         0 2009-12-01 20:20 ./usr/local/Brother/sane/models2/
-rw-r--r-- root/root        98 2009-12-01 20:20 ./usr/local/Brother/sane/models2/ext2.ini
-rw-r--r-- root/root       722 2009-12-01 20:20 ./usr/local/Brother/sane/models2/ext1.ini
-rwxr-xr-x root/root       581 2009-12-01 20:20 ./usr/local/Brother/sane/setupSaneScan2
-rw-rw-rw- root/root         1 2009-12-01 20:20 ./usr/local/Brother/sane/brsanenetdevice2.cfg
drwxr-xr-x root/root         0 2009-12-01 20:20 ./usr/lib64/
-rwxr-xr-x root/root     37064 2009-12-01 20:20 ./usr/lib64/libbrscandec2.so.1.0.0
drwxr-xr-x root/root         0 2009-12-01 20:20 ./usr/lib64/sane/
-rwxr-xr-x root/root    112832 2009-12-01 20:20 ./usr/lib64/sane/libsane-brother2.so.1.0.7
-rwxr-xr-x root/root     15072 2009-12-01 20:20 ./usr/lib64/libbrcolm2.so.1.0.1
drwxr-xr-x root/root         0 2009-12-01 20:20 ./usr/bin/
lrwxrwxrwx root/root         0 2009-12-01 20:20 ./usr/lib64/libbrcolm2.so -> /usr/lib64/libbrcolm2.so.1
lrwxrwxrwx root/root         0 2009-12-01 20:20 ./usr/lib64/libbrscandec2.so.1 -> /usr/lib64/libbrscandec2.so.1.0.0
lrwxrwxrwx root/root         0 2009-12-01 20:20 ./usr/lib64/libbrscandec2.so -> /usr/lib64/libbrscandec2.so.1
lrwxrwxrwx root/root         0 2009-12-01 20:20 ./usr/lib64/libbrcolm2.so.1 -> /usr/lib64/libbrcolm2.so.1.0.1
lrwxrwxrwx root/root         0 2009-12-01 20:20 ./usr/lib64/sane/libsane-brother2.so.1 -> /usr/lib64/sane/libsane-brother2.so.1.0.7
lrwxrwxrwx root/root         0 2009-12-01 20:20 ./usr/lib64/sane/libsane-brother2.so -> /usr/lib64/sane/libsane-brother2.so.1
lrwxrwxrwx root/root         0 2009-12-01 20:20 ./usr/bin/brsaneconfig2 -> /usr/local/Brother/sane/brsaneconfig2
    
por Justin Painter 04.12.2013 / 20:36