You are here

libusb Installation

Check your current installation. Most Linux editions already have libusb installed. Use your Linux edition specific tools to check whether libusb package is installed. To install libusb from source visit the official libusb web site: Download latest libusb release (libusb-x.y.z.tar.gz file), compile it and install (see example below).

% tar -zxvf libusb-x.y.z.tar.gz
% cd libusb-x.y.z
% ./configure
% make
% make install

The last command may require user to have the root permissions.

By default libusb is installed into /usr/local directory.

In case libusb installation directory differs from /usr/local, you can specify the path to libusb installation directory using

% configure --with-usb=/path/to/libusb/dir

or using

% configure --with-usb-lib=/path/to/directory/contains/libusb/libraries
% configure --with-usb-includes=/path/to/directory/contains/libusb/includes