OS X: El Captain
I am trying to install libnfc-1.7.1 as RFID Reader Kiosk for (ACR122U).
It worked on raspberry pi from this url, but the libnfc's installation was unsuccessful on my mac.
had Installed MacPorts-2.3.4-10.11-ElCapitan
Then executed these commands on terminal:
// just comments
sudo port -v selfupdate // stack overflow
sudo port upgrade outdated // suggested by terminal
sudo port install libusb-legacy //source libnfc community website
The rest of the steps were from this 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
a warning showed up while executing "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";
I even tried:
make clean && make
later on "sudo make install" errored:
~/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
The error message is simialr to this issue
The user admin privileges were verified.
An issue was opened on libnfc's github, but no one is answering since February.
Please help me get the libnfc installation sorted out as RFID Reader Kiosk if possible.
I have looked into similar problem. I had a hunch that libusb might be involved.
libsub
normal installtion steps:
./configure
sudo make
sudo make install
After that installing libnfc-1.7.1:
./configure
sudo make
sudo make install
libnfc is running from my mac El Captain.
This is straight fresh from Terminal:
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
At the moment libnfc is telling something from the terminal, but not recognizing nfc tags.
I will be researching now
this is working:
but not efficient
...up to date possible solutions could be found here:
#330 github
I have attempted most of them except for the ext dummy kernal.
Related
That file opensslv.h is requested by "make modules bzImage" when trying to compile a new kernel. I had previously done
$ sudo apt-get install update and
$ sudo apt-get install libcurl4-openssl-dev
$ openssl version
OpenSSL 1.0.2g 1 Mar 2016
with no problems reported;
This is the error msg given by make modules bzImage after a few seconds:
(...)
HOSTCC scripts/sign-file
scripts/sign-file.c:23:30: fatal error: openssl/opensslv.h: No such file or directory
compilation terminated.
scripts/Makefile.host:91: recipe for target 'scripts/sign-file' failed
make[1]: *** [scripts/sign-file] Error 1
Makefile:556: recipe for target 'scripts' failed
make: *** [scripts] Error 2
I searched google for the error message; most answers indicate that I should install openssl-dev, which I did. I also searched here for the name of the missing file but answers were not helpful.
I am doing this on ubuntu 16.04, trying to install kernel version linux 4.4.53. Previous steps (installing libncurses5-dev, make menuconfig and make localconfig) gave no problem.
I'm trying to install LTTng on a Raspberry Pi 3 running Raspian Jessie (Debian). The directions say that with that distribution, I need to build it from source. When I do, and try to execute the make, I get the following error:
/usr/bin/make -C /lib/modules/4.4.34-v7+/build M=/tmp/tmp.tHMTTCom3X/lttng-modules-2.9.0 CONFIG_LTTNG=m CONFIG_LTTNG_CLOCK_PLUGIN_TEST=m modules
make[1]: Entering directory '/lib/modules/4.4.34-v7+/build'
make[1]: *** No rule to make target 'modules'. Stop.
make[1]: Leaving directory '/lib/modules/4.4.34-v7+/build'
Makefile:110: recipe for target 'modules' failed
make: *** [modules] Error 2
(It looks to me that there is a rule for that target.)
Has anyone done this, or have any tips or ideas on how to do this?
Thanks!
You might be missing the headers for the running kernel, try installing the raspberrypi-kernel-headers package :
sudo apt-get install raspberrypi-kernel-headers
After downloading the package of GNU Binutils 2.25
I followed the instructions on "Installing Binutils":
./cnofigure
make
errors happened after build:
../../binutils-gdb/binutils/nm.c:1733:28: error: 'sbrk' is deprecated [-Werror,-Wdeprecated-declarations]
char *lim = (char *) sbrk (0);
/usr/include/unistd.h:582:7: note: 'sbrk' has been explicitly marked deprecated here
void *sbrk(int);
1 error generated.
make[4]: *** [nm.o] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-binutils] Error 2
make: *** [all] Error 2
I did some research on net and they said using this command
./configure --prefix=/usr --disable-werror
and I get
/Library/Developer/CommandLineTools/usr/bin/make all-recursive
make[8]: Nothing to be done for 'all-am'.
make[1]: Nothing to be done for 'all-target'.
(what does that mean "nothing to be done for all-am and all-target")
I don't know what to do anymore.
Is it a bug or it's me doing something wrong?
Please help.
You really would make life easier for yourself if you used homebrew as a package manager on OSX.
Goto the homebrew website and copy and paste the one-line install script into your Terminal.
Then you can install binutils simply by typing
brew install binutils
If, down the line, you want to find GNU sed, or ImageMagick, you can just do
brew search sed
or
brew search imagemagick
then
brew install sed
If you have any problems, just run
brew doctor
If you want to update all your packages, just run
brew update
brew upgrade --all
More cool ideas and suggestions here.
After build failure , you should clean previously generated object files
So,
make clean
./configure --prefix=/usr --disable-werror
make
I am trying to install otp R14B04 release on mac osx.
./configure goes well but make gives me this error:
make -f i386-apple-darwin11.3.0/Makefile TYPE=opt
make[3]: Nothing to be done for `all'.
cd lib && \
ERL_TOP=/Users/abhinavsingh/Documents/otp_src_R14B04 PATH=/Users/abhinavsingh/Documents/otp_src_R14B04/bootstrap/bin:${PATH} \
make opt SECONDARY_BOOTSTRAP=true
=== Entering application hipe
erlc -W +debug_info +inline -o../ebin hipe_rtl.erl
(no error logger present) error: "Error in process <0.1.0> with exit value: {{badfun,[<<5 bytes>>,<<54 bytes>>,<<9 bytes>>,<<3 bytes>>,<<2 bytes>>,<<5 bytes>>,<<19 bytes>>,<<2 bytes>>,<<8 bytes>>,<<8 bytes>>,<<5 bytes>>,<<7 bytes>>,<<5 bytes>>,<<11 bytes>>,<<2 bytes>>,<<11 bytes>>,<<15 bytes>>,<<4 bytes>>,<<57 bytes>>,<<5 bytes>>,<<1 byte>>,<<7 bytes>>,<<10 bytes>>,<<7 bytes>>,<<6 bytes>>,<<7 bytes>>,<<7 bytes>>,<<6 bytes>>,<<12 bytes>>]},[{erlang,apply,2}]}\n"
any pointers will be of great help.
It seems a known MacPorts issue. For details, please refer to:
https://trac.macports.org/ticket/31698
I try to compile and install libapreq2 via Homebrew package manager.
brew create http://www.apache.si//httpd/libapreq/libapreq2-2.13.tar.gz
The content of the libapreq2.rb formula is as follows.
require 'formula'
class Libapreq2 < Formula
url 'http://www.apache.si//httpd/libapreq/libapreq2-2.13.tar.gz'
homepage ''
md5 'c11fb0861aa84dcc6cd0f0798b045eee'
# depends_on 'cmake'
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
# system "cmake . #{std_cmake_parameters}"
system "make install"
end
end
I proceed with
brew install -vd libapreq2
but unfortunately the compilation ended with errors.
mkdir: /usr/include/apache2/apreq2: Permission denied
make[3]: *** [install-pkgincludeHEADERS] Error 1
make[3]: *** Waiting for unfinished jobs....
/usr/bin/install -c .libs/mod_apreq2.so /usr/libexec/apache2/mod_apreq2.so
install: /usr/libexec/apache2/mod_apreq2.so: Permission denied
make[3]: *** [install-pkglibLTLIBRARIES] Error 71
make[2]: *** [install-am] Error 2
make[1]: *** [install-recursive] Error 1
make: *** [install-recursive] Error 1
Brew try to install some files outside the /usr/local/Cellar/libapreq2/ directory. I wonder how to manage these "permission denied" issues. I tried as root user (i.e., sudo brew install libapreq2), but if I later want to remove the library, only the files in /usr/local/Cellar/libapreq2/ are removed.
Thanks for any pointers.
Try this:
sudo chown -R $(whoami) /usr/local/Cellar/libapreq2/
It works for me!
Your package really shouldn't install anything in the system includes in /usr/include. The place for homebrew packaged includes is /usr/local/include (as symlinks into Cellar). You'll just have to adjust your ./configure invocation to use #{prefix}/include for the includes (probably --incdir or something very similar).