How to install libusb in Ubuntu

John picture John · Jan 31, 2011 · Viewed 192.7k times · Source

I have a C program that have #include part in the header.

I have download libusb-1.0.0 to my computer. If I simply copy libusb-1.0.0 folder to the folder where my C program is, it will not work. Therefore, I think I have to somehow install libuse-1.-.- to the folder where my C program is. However, I do not how to install it.

Could anybody please help me. Thanks!

Answer

Gazler picture Gazler · Jan 31, 2011

Usually to use the library you need to install the dev version.

Try

sudo apt-get install libusb-1.0-0-dev