How to install libusb in Ubuntu

Posted on Apr 25, 2022

Question

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

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

Try

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