我有一些 NFC 芯片,希望能够通过我的 ubuntu 安装来读取,我有一个 PN532 分线板,我想安装 LibNFC,这样我就可以修改和读取它们。我一直在关注教程步骤如下:
apt-get install autoconf libtool libusb-dev libpcsclite-dev build-essential
wget https://github.com/nfc-tools/libnfc/releases/download/libnfc-1.7.1/libnfc-1.7.1.tar.bz2
tar -jxvf libnfc-1.7.1.tar.bz2
cd libnfc-1.7.1
autoreconf -vis
./configure --with-drivers=all --sysconfdir=/etc --prefix=/usr
make
sudo make install
sudo mkdir /etc/nfc
sudo mkdir /etc/nfc/devices.d
但是我被困在
make
我收到版本不匹配错误,但我不知道如何解决它,任何研究都是无用的,这里是错误代码片段。
(CDPATH="${ZSH_VERSION+.}:" && cd . && autoheader) rm -f stamp-h1 touch config.h.in cd . && /bin/bash ./config.status config.h config.status: creating config.h make all-recursive make[1]: Entering directory '/home/ubuntu/libnfc-1.7.1'
Making all in libnfc
make[2]: Entering directory '/home/ubuntu/libnfc-1.7.1/libnfc' Making all in chips
make[3]: Entering directory '/home/ubuntu/libnfc-1.7.1/libnfc/chips' CC libnfcchips_la-pn53x.lo
libtool: Version mismatch error. This is libtool 2.4.6 Debian-2.4.6-0.1, but the
libtool: definition of this LT_INIT comes from libtool 2.4.2.
libtool: You should recreate aclocal.m4 with macros from libtool 2.4.6 Debian-2.4.6-0.1
libtool: and run autoconf again.
Makefile:397: recipe for target 'libnfcchips_la-pn53x.lo' failed
make[3]: *** [libnfcchips_la-pn53x.lo] Error 63
make[3]: Leaving directory '/home/ubuntu/libnfc-1.7.1/libnfc/chips'
Makefile:613: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/ubuntu/libnfc-1.7.1/libnfc'
Makefile:478: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/ubuntu/libnfc-1.7.1'
Makefile:385: recipe for target 'all' failed
make: *** [all] Error 2
更新:我从本网站(它在 wiki 页面中)并按照文件 INSTALL(进行必要的调整)
./configure --prefix=/usr
制作
安装
这样就可以了
答案1
尝试安装libtool-bin
包