【发布时间】:2016-07-19 13:55:40
【问题描述】:
OS X: El Captain
我正在尝试将 libnfc-1.7.1 安装为 (ACR122U) 的 RFID Reader Kiosk。 它在 url, 上的树莓派上运行,但 libnfc 的安装在我的 mac 上不成功。
已安装 MacPorts-2.3.4-10.11-ElCapitan
然后在终端上执行这些命令:
// 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
执行“make”时出现警告:
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
稍后“sudo make install”出错:
~/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
错误信息类似于issue
已验证用户管理员权限。
在 libnfc 的 github 上打开了一个问题,但自 2 月以来没有人回答。
如果可能的话,请帮助我将 libnfc 安装整理为 RFID Reader Kiosk。
【问题讨论】:
-
我试过这个:stackoverflow.com/questions/3391722/…。它没有工作
-
我仍在努力解决这个问题:github.com/nfc-tools/libnfc/issues/42。我想这可能有助于找到答案
标签: installation nfc kiosk