Closed khanfar closed 1 year ago
./configure: line 4627: syntax error near unexpected token $datarootdir,' ./configure: line 4627: AX_RECURSIVE_EVAL($datarootdir, datarootdir_exp)' make: *** No targets specified and no makefile found. Stop.
i try again after install some dependancies in my raspberry . now its look ok ? + test -f Makefile
.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal autoreconf: configure.ac: tracing autoreconf: configure.ac: not using Libtool autoreconf: running: /usr/bin/autoconf autoreconf: running: /usr/bin/autoheader autoreconf: running: automake --add-missing --copy --no-force configure.ac:20: installing './compile' configure.ac:16: installing './config.guess' configure.ac:16: installing './config.sub' configure.ac:7: installing './install-sh' configure.ac:7: installing './missing' Makefile.am: installing './depcomp' autoreconf: Leaving directory
.'
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking build system type... armv7l-unknown-linux-gnueabihf
checking host system type... armv7l-unknown-linux-gnueabihf
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of gcc... gcc3
checking for msgfmt... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for libpcsclite... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking winscard.h usability... yes
checking winscard.h presence... yes
checking for winscard.h... yes
checking for SCardEstablishContext... yes
checking for unistd.h... (cached) yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking for string.h... (cached) yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for stdlib.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking whether sys/types.h defines makedev... no
checking sys/mkdev.h usability... no
checking sys/mkdev.h presence... no
checking for sys/mkdev.h... no
checking sys/sysmacros.h usability... yes
checking sys/sysmacros.h presence... yes
checking for sys/sysmacros.h... yespcsc-tools has been configured with following options:
pcsc_dir: /usr/local/share/pcsc ATR parser: no
checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating ATR_analysis config.status: creating ATR_analysis.1p config.status: creating po/Makefile config.status: creating gscriptor.desktop config.status: creating config.h config.status: executing depfiles commands make all-recursive make[1]: Entering directory '/home/pi/pcsc-tools/pcsc-tools' Making all in po make[2]: Entering directory '/home/pi/pcsc-tools/pcsc-tools/po' msgfmt --check --statistics --verbose -o ru.gmo ru.po ru.po: 74 translated messages, 1 untranslated message. msgfmt --check --statistics --verbose -o fr.gmo fr.po fr.po: 61 translated messages, 14 untranslated messages. make[2]: Leaving directory '/home/pi/pcsc-tools/pcsc-tools/po' make[2]: Entering directory '/home/pi/pcsc-tools/pcsc-tools' CC pcsc_scan-pcsc_scan.o CCLD pcsc_scan make[2]: Leaving directory '/home/pi/pcsc-tools/pcsc-tools' make[1]: Leaving directory '/home/pi/pcsc-tools/pcsc-tools'
i try this : /pcsc_scan PC/SC device scanner V 1.6.2 (c) 2001-2022, Ludovic Rousseau ludovic.rousseau@free.fr Using reader plug'n play mechanism Scanning present readers... 0: ACS ACR 38U-CCID 00 00
Tue Jun 13 16:14:26 2023 Reader 0: ACS ACR 38U-CCID 00 00 Event number: 0 Card state: Card inserted, ATR: 3B 04 A2 13 10 91
how to read data in card ???
i try this and get this error : ./scriptor Can't locate Chipcard/PCSC.pm in @INC (you may need to install the Chipcard::PCSC module) (@INC contains: /etc/perl /usr/local/lib/arm-linux-gnueabihf/perl/5.32.1 /usr/local/share/perl/5.32.1 /usr/lib/arm-linux-gnueabihf/perl5/5.32 /usr/share/perl5 /usr/lib/arm-linux-gnueabihf/perl-base /usr/lib/arm-linux-gnueabihf/perl/5.32 /usr/share/perl/5.32 /usr/local/lib/site_perl) at ./scriptor line 22. BEGIN failed--compilation aborted at ./scriptor line 22.
now i try this and get this error : ./scriptor No reader given: using ACS ACR 38U-CCID 00 00 Can't allocate Chipcard::PCSC::Card object: Card is unresponsive.
i try this : ./gscriptor Couldn't read from /home/pi/.gscriptor. Using default configuration but gui start . what should i do to read ?
I check servicees : systemctl status pcscd ● pcscd.service - PC/SC Smart Card Daemon Loaded: loaded (/lib/systemd/system/pcscd.service; indirect; vendor preset> Active: active (running) since Tue 2023-06-13 16:48:47 IDT; 5min ago TriggeredBy: ● pcscd.socket Docs: man:pcscd(8) Main PID: 24328 (pcscd) Tasks: 5 (limit: 1595) CPU: 105ms CGroup: /system.slice/pcscd.service └─24328 /usr/sbin/pcscd --foreground --auto-exit
Jun 13 16:48:47 raspberrypi systemd[1]: Started PC/SC Smart Card Daemon. Jun 13 16:49:35 raspberrypi pcscd[24328]: 00000000 commands.c:2312:SetParameter> Jun 13 16:50:02 raspberrypi pcscd[24328]: 26166172 prothandler.c:86:PHSetProtoc> Jun 13 16:50:14 raspberrypi pcscd[24328]: 12030034 commands.c:2312:SetParameter> Jun 13 16:50:35 raspberrypi pcscd[24328]: 21435381 commands.c:2312:SetParameter> Jun 13 16:50:40 raspberrypi pcscd[24328]: 05289501 commands.c:2312:SetParameter> Jun 13 16:51:14 raspberrypi pcscd[24328]: 33401473 commands.c:2312:SetParameter> Jun 13 16:51:46 raspberrypi pcscd[24328]: 32123432 commands.c:2312:SetParameter> lines 1-19/19 (END)
i stack on this : gscripter cant connect to reader named ACS ACR 38U-CCID 00 00
i change the settings of reader in gscryptor gui to RAW . Now i see it connected . now how to read data fom card ?
Your problem is NOT with pcsc-tools.
https://blog.apdu.fr/posts/2020/11/how-to-get-smart-card-support/
hi , i try setup in my pi and i got this error : pi@raspberrypi:~ $ git clone https://salsa.debian.org/rousseau/pcsc-tools.git cd pcsc-tools ./bootstrap ./configure make Cloning into 'pcsc-tools'... remote: Enumerating objects: 5389, done. remote: Counting objects: 100% (111/111), done. remote: Compressing objects: 100% (62/62), done. remote: Total 5389 (delta 60), reused 87 (delta 46), pack-reused 5278 Receiving objects: 100% (5389/5389), 1.19 MiB | 928.00 KiB/s, done. Resolving deltas: 100% (3747/3747), done.
.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal autoreconf: configure.ac: tracing autoreconf: configure.ac: not using Libtool autoreconf: running: /usr/bin/autoconf autoreconf: running: /usr/bin/autoheader autoreconf: running: automake --add-missing --copy --no-force configure.ac:20: installing './compile' configure.ac:16: installing './config.guess' configure.ac:16: installing './config.sub' configure.ac:7: installing './install-sh' configure.ac:7: installing './missing' Makefile.am: installing './depcomp' autoreconf: Leaving directory
.' checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether make supports nested variables... (cached) yes checking build system type... armv7l-unknown-linux-gnueabihf checking host system type... armv7l-unknown-linux-gnueabihf checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking whether make supports the include directive... yes (GNU style) checking dependency style of gcc... gcc3 checking for msgfmt... yes checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for libpcsclite... yes checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking winscard.h usability... yes checking winscard.h presence... yes checking for winscard.h... yes checking for SCardEstablishContext... yes checking for unistd.h... (cached) yes checking time.h usability... yes checking time.h presence... yes checking for time.h... yes checking for string.h... (cached) yes checking stdio.h usability... yes checking stdio.h presence... yes checking for stdio.h... yes checking for stdlib.h... (cached) yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes ./configure: line 4627: syntax error near unexpected token$datarootdir,' ./configure: line 4627:
AX_RECURSIVE_EVAL($datarootdir, datarootdir_exp)' make: *** No targets specified and no makefile found. Stop. pi@raspberrypi:~/pcsc-tools $