Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Package libusb was not found in the pkg-config search path

I have installed pkg-config and libusb through brew

Now if I do

pkg-config --cflags --libs libusb

I get below message

Package libusb was not found in the pkg-config search path. Perhaps you should add the directory containing `libusb.pc' to the PKG_CONFIG_PATH environment variable No package 'libusb' found

So I followed this post and did

export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/Cellar/libusb/1.0.20/lib/pkgconfig"

But I still have the problem. What am I missing?

I am using MAC OSX El Capitan

like image 663
nad Avatar asked Feb 07 '23 06:02

nad


2 Answers

Just run:

pkg-config --cflags --libs /usr/local/Cellar/libusb/1.0.20/lib/pkgconfig/libusb-1.0.pc
like image 102
Mark Setchell Avatar answered Apr 29 '23 13:04

Mark Setchell


I have the the same problem. This work for me (Ubuntu):

sudo apt-get install libmagickwand-dev
like image 23
Goko Gorgiovski Avatar answered Apr 29 '23 13:04

Goko Gorgiovski