【问题标题】:"libnfc Installation" /usr/lib/libnfc.5.dylib: Operation not permitted“libnfc 安装”/usr/lib/libnfc.5.dylib:不允许操作
【发布时间】: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。

【问题讨论】:

标签: installation nfc kiosk


【解决方案1】:

我已经调查过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 虚拟内核之外,我已经尝试了其中的大部分。

【讨论】:

  • 希望这对其他人有所帮助
猜你喜欢
  • 1970-01-01
  • 2015-12-30
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-01-06
  • 2012-12-15
  • 2022-01-17
相关资源
最近更新 更多