I've just compiled the latest nut v2.7.3 without any issues. As I tried to use the nut-scanner tool, the following messages were shown on the screen:
# ./nut-scanner
Cannot load USB library (libusb) : file not found. USB search disabled.
Cannot load XML library (libneon) : file not found. XML search disabled.
No start IP, skipping NUT bus (old connect method)
The libraries are definitely available on my system, therefore I used strace to identify the root cause of the problem. I found out that the program tries to load libusb.soand libneon.so, which are usually part of the development files and not available by default.
# ls -al libusb-* libneon*
lrwxrwxrwx 1 root root 17 Feb 25 2015 libneon.so.27 -> libneon.so.27.3.1
-rw-r--r-- 1 root root 143556 Feb 25 2015 libneon.so.27.3.1
lrwxrwxrwx 1 root root 19 Mar 29 2014 libusb-0.1.so.4 -> libusb-0.1.so.4.4.4
-rw-r--r-- 1 root root 14732 Mar 29 2014 libusb-0.1.so.4.4.4
lrwxrwxrwx 1 root root 19 Mar 29 2014 libusb-1.0.so.0 -> libusb-1.0.so.0.1.0
-rw-r--r-- 1 root root 76636 Mar 29 2014 libusb-1.0.so.0.1.0
As I searched for a solution of the problem I found out that this problem has already been addresses for the Fedora project files three years ago, but it seems that the changes has not been implemented in the nut base package:
[nut] do not depend on devel files (#838139)
https://lists.fedoraproject.org/archives/list/scm-commits%40lists.fedoraproject.org/message/KVXANOQPK6G7JMBPDT34XVRJWI7IBKOF/
I've just compiled the latest nut v2.7.3 without any issues. As I tried to use the nut-scanner tool, the following messages were shown on the screen:
The libraries are definitely available on my system, therefore I used strace to identify the root cause of the problem. I found out that the program tries to load
libusb.soandlibneon.so, which are usually part of the development files and not available by default.As I searched for a solution of the problem I found out that this problem has already been addresses for the Fedora project files three years ago, but it seems that the changes has not been implemented in the nut base package:
[nut] do not depend on devel files (#838139)
https://lists.fedoraproject.org/archives/list/scm-commits%40lists.fedoraproject.org/message/KVXANOQPK6G7JMBPDT34XVRJWI7IBKOF/