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?
1 Answer
To run Monero Wallet GUI/daemon
First, this error is caused by the absence of thelibhidapi
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
Alpine Linux:
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.
Sources:
libhidapi-dev
is only required to build from source. To run the binary, you only needlibhidapi-libusb0
.