" libnfc安装" /usr/lib/libnfc.5.dylib:不允许操作

时间:2016-03-31 08:21:16

标签: installation nfc kiosk

OS X:El Captain

我正在尝试安装libnfc-1.7.1作为(ACR122U)的RFID阅读器Kiosk。 它从这个url,开始使用raspberry pi,但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。

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标签。

我现在正在研究

这是有效的:

but not efficient

......最新的解决方案可以在这里找到: #330 github

除了ext虚拟内核之外,我尝试了其中大部分内容。

相关问题