GUI / monerod v0.13.0.3 does not start on Linux because of "./monero-wallet-gui: error while loading shared libraries: libhidapi-libusb.so.0". How do I resolve this particular issue?
To run Monero Wallet GUI/daemon
First, this error is caused by the absence of the
libhidapi library, which is required by Ledger. Two forms of this library exist, one each for use with the hidraw (USB/Bluetooth) and libusb (USB-only) backends, and the error message indicates that the latter is needed.
Fortunately, this error is quickly resolved by installing the package which includes it with your system's package manager. For the most common Linux distributions that would be as follows:
Debian-based [.deb] (Debian, Ubuntu, Mint, elementary OS, etc.):
sudo apt install libhidapi-libusb0
Fedora-based [.rpm] (Fedora, openSUSE, CentOS, PCLinuxOS, RHEL, etc.):
dnf install hidapi
Arch-based (Arch, Manjaro, Antergos, etc.):
pacman -S hidapi
Gentoo-based (Gentoo, Redcore, etc.):
emerge -atv dev-libs/hidapi
Slackware-based [.txz] (Slackware, VectorLinux, etc.):
upgradepkg --install-new hidapi-0.8.0_rc1-x86_64-1_slonly.txz
apk add hidapi
To build Monero Wallet GUI/daemon
If rather than simply trying to run the Monero wallet/daemon you were attempting to build it from source code, you would likely need an additional package which provides the header files for said library. The most common standard for those package names would be to append
-dev to the packages listed above, however there are exceptions. Both Debian-based and Fedora-based distributions use the name
libhidapi-dev in place of the packages specified above.
protected by Community♦ Oct 19 '18 at 17:11
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?