http://www.perlmonks.org?node_id=1080897


in reply to Re^2: Cannot install cpan module Device::USB
in thread Cannot install cpan module Device::USB

Ok, I just tried that. Did not work.

Sure it did :) it installed the Inline module whose test was failing

USB.xs:6:17: error: usb.h: No such file or directory

Yeah, you can't force your way past modules that can't build because you're missing (non-perl) prerequisites

http://search.cpan.org/dist/Device-USB/README says install libusb by any means , then you can install Device::USB

Device::USB::FAQ says you can get it from http://libusb.sourceforge.net/ ( http://www.libusb.org/ )

So sudo apt-get install libusb-dev or some variation of such or .... before you can cpan Device::USB

  • Comment on Re^3: Cannot install cpan module Device::USB

Replies are listed 'Best First'.
Re^4: Cannot install cpan module Device::USB
by lab007 (Novice) on Apr 03, 2014 at 15:07 UTC

    Thanks! I did not have libusb-devel installed (only libusb)!

    Thanks again for your help!!!