OS X:El Captain
我正在尝试安装libnfc-1.7.1作为(ACR122U)的RFID阅读器Kiosk。 它从这个url,开始使用raspberry pi,但libnfc的安装在我的mac上没有成功。
// just comments
sudo port -v selfupdate // stack overflow
sudo port upgrade outdated // suggested by terminal
sudo port install libusb-legacy //source libnfc community website
其余步骤来自此link:
wget https://bintray.com/artifact/download/nfc-tools/sources/libnfc-1.7.1.tar.bz2
tar -xvzf libnfc-x.x.x.tar.gz
cd libnfc-x.x.x
./configure --prefix=/usr -sysconfdir=/etc
make
brew update && brew upgrade
sudo make install
arygon.c:94:22: warning: unused variable 'arygon_error_incomplete_command'
[-Wunused-const-variable]
static const uint8_t arygon_error_incomplete_command[] = "FF0C0000\x0d\x0a";
我甚至尝试过:
make clean && make
~/Downloads/libnfc-1.7.1$ sudo make install
Making install in libnfc
Making install in chips
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
Making install in buses
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
Making install in drivers
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
Making install in .
test -z "/usr/lib" || .././install-sh -c -d "/usr/lib"
/bin/sh ../libtool --mode=install /usr/bin/install -c libnfc.la '/usr/lib'
libtool: install: /usr/bin/install -c .libs/libnfc.5.dylib /usr/lib/libnfc.5.dylib
install: /usr/lib/libnfc.5.dylib: Operation not permitted
make[3]: *** [install-libLTLIBRARIES] Error 71
make[2]: *** [install-am] Error 2
make[1]: *** [install-recursive] Error 1
make: *** [install-recursive] Error 1
验证了用户管理员权限。
答案 0 :(得分:0)
我调查了similar problem。我有一种预感,可能会涉及到libusb。
libsub 正常安装步骤:
./configure
sudo make
sudo make install
之后安装libnfc-1.7.1:
./configure
sudo make
sudo make install
libnfc是从我的Mac El Captain运行的。 这是终端直接新鲜的:
nfc-list uses libnfc 1.7.1
error libnfc.driver.acr122_usb Unable to claim USB interface (Resource busy)
nfc-list: ERROR: Unable to open NFC device: acr122_usb:001:006-072f-2200-00-00
目前,libnfc正在从终端讲述某些内容,但却没有识别出nfc标签。
我现在正在研究
这是有效的:
......最新的解决方案可以在这里找到: #330 github
除了ext虚拟内核之外,我尝试了其中大部分内容。