Eu comprei um leitor de cartão inteligente, o zoweetek 12026-1, para o qual precisarei instalar os drivers pccs e ccid.
Eu instalei com sucesso o pcsc-lite-1.8.6, mas quando eu tentei instalar o ccid-1.4.5-alcor, recebi o seguinte erro durante o ./configure
.
Ambos os drivers foram baixados do site zoweetek
./configure
bash: ./configure: Permission denied
que eu "resolvi" por chmod +x configure
Mas quando eu corri make
, recebi o seguinte erro
make[2]: Entering directory '/home/matt/9540-V2/ccid-1.4.5.1 alcor/examples'
CC scardcontrol-scardcontrol.o
scardcontrol.c: In function ‘main’:
scardcontrol.c:754:5: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
(void)fgets(in, sizeof(in), stdin);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
scardcontrol.c: At top level:
scardcontrol.c:816:1: fatal error: opening dependency file
.deps/scardcontrol-scardcontrol.Tpo: Permission denied } /* main */
^
compilation terminated.
Makefile:322: recipe for target 'scardcontrol-scardcontrol.o' failed
make[2]: *** [scardcontrol-scardcontrol.o] Error 1
make[2]: Leaving directory '/home/matt/9540-V2/ccid-1.4.5.1-alcor/examples'
Makefile:345: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/matt/9540-V2/ccid-1.4.5.1-alcor'
Makefile:274: recipe for target 'all' failed
make: *** [all] Error 2
E, como conseqüência disso, make install
também não funcionou.
Eu tentei encontrar um mais novo (principalmente no GitHub), mas não o fiz e, como não tenho certeza sobre o significado da mensagem de erro, achei que seria melhor perguntar antes de começar a bagunçar meu Ubuntu instalação.
solicitou a saída lsusb -t
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/6p, 480M
|__ Port 1: Dev 29, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
|__ Port 1: Dev 29, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M
|__ Port 4: Dev 32, If 0, Class=Chip/SmartCard, Driver=, 12M
|__ Port 6: Dev 5, If 2, Class=Vendor Specific Class, Driver=, 12M
|__ Port 6: Dev 5, If 0, Class=Wireless, Driver=btusb, 12M
|__ Port 6: Dev 5, If 3, Class=Application Specific Interface, Driver=, 12M
|__ Port 6: Dev 5, If 1, Class=Wireless, Driver=btusb, 12M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/6p, 480M
|__ Port 4: Dev 3, If 0, Class=Video, Driver=uvcvideo, 480M
|__ Port 4: Dev 3, If 1, Class=Video, Driver=uvcvideo, 480M
instalou o pacote sugerido, mas recebi a seguinte mensagem de erro no terminal:
Gdk-Message: Window 0x56282676daf0 is a temporary window without parent, application will not be able to position it on screen.
Gdk-Message: Window 0x56282676daf0 is a temporary window without parent, application will not be able to position it on screen.
(cardpeek:16708): Gdk-CRITICAL **: xdg_popup_configure: assertion 'impl->transient_for' failed
Gdk-Message: Window 0x5628267afc80 is a temporary window without parent, application will not be able to position it on screen.
Gdk-Message: Window 0x5628267afc80 is a temporary window without parent, application will not be able to position it on screen.
(cardpeek:16708): Gdk-CRITICAL **: xdg_popup_configure: assertion 'impl->transient_for' failed
Gdk-Message: Window 0x56282676daf0 is a temporary window without parent, application will not be able to position it on screen.
Gdk-Message: Window 0x56282676daf0 is a temporary window without parent, application will not be able to position it on screen.
(cardpeek:16708): Gdk-CRITICAL **: xdg_popup_configure: assertion 'impl->transient_for' failed
parece duas vezes a mesma mensagem ... o que eu recebo depois de executar cardpeek apenas uma vez!