Greetings Monks,

I can't figure out how to get Device::USB installed on my computer. I have tried two machines, a 64-bit with Ubuntu 6.06 and a 32-bit with Ubuntu 7.10. Both seem to fail in the same way.

I initially downloaded Device-USB-0.29.tar.gz and extracted the files. Then, from "README" I tried:
perl Makefile.PL
make
make test
make install

I got the error message:
Can't locate Inline/MakeMaker.pm in @INC
Compilation aborted at Makefile.PL line 3

Using "find" I was able to find:
/usr/share/perl/5.8.7/ExtUtils/MakeMaker.pm

I then tried adding "push @INC, "/usr/share/perl/5.8.7/ExtUtils" high in the Makefile.PL code.
This didn't do any good.

Next (possibly unwise) I copied MakeMaker.pm to one of the directories in @INC. This changed my error message to:
Undefined sukbroutine &main::WriteMakefile called at MakeFile.PL line 50

After some Googling I came across:
# perl -MCPAN -e shell
cpan> install Device::USB
Inside the cpan> prompt I also tried "install MakeMaker.pm" and "i /MakeMaker.pm/". None of these worked.

A message high in the CPAN response was to "try install Bundle::CPAN". I did this. It must have run for 20 or more minutes. After all of that (I don't know what all it did) there was no improvement in my problem.

The response when I tried the install at the cpan> prompt was:
Terminal does not support AddHistory. cpan shell -- CPAN exploration and modules installation (v1.7601) ReadLine support available (try 'install Bundle::CPAN') CPAN: Storable loaded ok Going to read /home/bxxxx/.cpan/Metadata Database was generated on Sat, 01 Aug 2009 21:26:58 GMT Running install for module Device::USB Running make for G/GW/GWADEJ/Device-USB-0.29.tar.gz CPAN: Digest::MD5 loaded ok Checksum for /home/bxxxx/.cpan/sources/authors/id/G/GW/GWADEJ/Device-U +SB-0.29.tar.gz ok Scanning cache /home/bxxxx/.cpan/build for sizes Device-USB-0.29/ Device-USB-0.29/Changes Device-USB-0.29/dump_usb.pl Device-USB-0.29/Makefile.PL Device-USB-0.29/MANIFEST.SKIP Device-USB-0.29/MANIFEST Device-USB-0.29/README Device-USB-0.29/USB.pm Device-USB-0.29/t/ Device-USB-0.29/t/17-usb_dev_endpoint.t Device-USB-0.29/t/00-load.t Device-USB-0.29/t/07-list_devices_if.t Device-USB-0.29/t/05-find_device_if.t Device-USB-0.29/t/02-find_busses_devices.t Device-USB-0.29/t/15-usb_dev_configuration.t Device-USB-0.29/t/06-list_devices.t Device-USB-0.29/t/09-usb-bus.t Device-USB-0.29/t/16-usb_dev_interface.t Device-USB-0.29/t/14-bus_list_devices_if.t Device-USB-0.29/t/11-usb-device-methods.t Device-USB-0.29/t/boilerplate.t Device-USB-0.29/t/04-find_device.t Device-USB-0.29/t/pod-coverage.t Device-USB-0.29/t/03-list_busses.t Device-USB-0.29/t/08-get_busses.t Device-USB-0.29/t/10-usb-device-accessors.t Device-USB-0.29/t/13-bus_find_device_if.t Device-USB-0.29/t/pod.t Device-USB-0.29/t/TestTools.pm Device-USB-0.29/t/12-constants.t Device-USB-0.29/t/18-usb_device-configurations.t Device-USB-0.29/t/01-create-usb.t Device-USB-0.29/META.yml Device-USB-0.29/lib/ Device-USB-0.29/lib/Device/ Device-USB-0.29/lib/Device/USB/ Device-USB-0.29/lib/Device/USB/DevConfig.pm Device-USB-0.29/lib/Device/USB/FAQ.pod Device-USB-0.29/lib/Device/USB/Device.pm Device-USB-0.29/lib/Device/USB/DevInterface.pm Device-USB-0.29/lib/Device/USB/DevEndpoint.pm Device-USB-0.29/lib/Device/USB/Bus.pm Device-USB-0.29/lib/Device/USB.pm Removing previously used /home/bxxxx/.cpan/build/Device-USB-0.29 CPAN.pm: Going to build G/GW/GWADEJ/Device-USB-0.29.tar.gz Running make test Make had some problems, maybe interrupted? Won't test Running make install Make had some problems, maybe interrupted? Won't install Terminal does not support GetHistory. Lockfile removed.

Any ideas would be appreciated,

Thank you,
Bruce

In reply to trouble installing Device::USB by Bruce32903

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.