The libusb package contains a library used by some applications for USB device access.
Download (HTTP): http://umn.dl.sourceforge.net/sourceforge/libusb/libusb-0.1.8.tar.gz
Download size: 314 KB
Estimated Disk space required: 2.1 MB
Estimated build time: 0.03 SBU
Install libusb by running the following commands:
./configure --prefix=/usr --disable-build-docs &&
make &&
make install
--disable-build-docs: This switch turns off by default enabled building of documentation since it requires OpenJade.
libusb requires the usbfs kernel filesystem to be mounted on /proc/bus/usb. Applications require the files in this directory to be accessible to the user, sometimes for both reading and writing.
To restrict access to USB devices, create the usb group:
groupadd -g 15 usb
To get usbfs mounted on boot, we will create a special init script, because just putting an extra line into /etc/fstab does not work for those who compiled "USB device filesystem" as a kernel module. Install /etc/rc.d/init.d/usb init script included in the blfs-bootscripts-5.1 package.
make install-usb
The libusb package contains libusb libraries, the /usr/include/usb.h header, and a usb-config script.