Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Cannot install cpan module Device::USB

by lab007 (Initiate)
on Apr 03, 2014 at 01:13 UTC ( #1080871=perlquestion: print w/ replies, xml ) Need Help??
lab007 has asked for the wisdom of the Perl Monks concerning the following question:

Hello,

I am trying to install Device::USB on CentOS 6. I have installed Perl 5.16.0 using Perlbrew (also tried with Perl 5.18.2). Gcc & make are installed and in the path as well, of course.

Here is the error from trying to install Device::USB
cpan -i Device::USB <snip...> make[1]: Entering directory `/root/.cpan/build/Inline-0.54-lWJF7c/C' PERL_DL_NONLAZY=1 /root/perl5/perlbrew/perls/perl-5.16.0/bin/perl "-ME +xtUtils::Command::MM" "-e" "test_harness(0, '../blib/lib', '../blib/a +rch')" t/*.t t/00init.t .............. ok t/01syntax.t ............ ok t/02config.t ............ ok t/03typemap.t ........... ok t/04perlapi.t ........... ok t/05xsmode.t ............ ok t/06parseregexp.t ....... ok t/07typemap_multi.t ..... ok t/08taint.t ............. 1/10 sh: make: No such file or directory A problem was encountered while attempting to compile and install your + Inline C code. The command that failed was: make > out.make 2>&1 The build directory was: /root/.cpan/build/Inline-0.54-lWJF7c/C/_Inline_test/build/_08taint_1_p +_0965 To debug the problem, cd to the build directory, and inspect the outpu +t files. at ./t/08taint_1.p line 7. ...propagated at /root/.cpan/build/Inline-0.54-lWJF7c/C/../blib/li +b/Inline/C.pm line 797. BEGIN failed--compilation aborted at ./t/08taint_1.p line 13. Compilation failed in require at t/08taint.t line 45. # Looks like you planned 10 tests but ran 1. # Looks like your test exited with 127 just after 1. t/08taint.t ............. Dubious, test returned 127 (wstat 32512, 0x7 +f00) Failed 9/10 subtests t/09parser.t ............ This test could take a couple of minutes to +run t/09parser.t ............ ok <snip...>
Here are the o conf entries for make:
make [/usr/bin/make] make_arg [] make_install_arg [] make_install_make_command [/usr/bin/make]

I have tried installing this module on three different CentOS 6 machines, same issue on all of them! I am at a loss - but I really need to get Device::USB working somehow.

Any help on this would be greatly appreciated!!

Comment on Cannot install cpan module Device::USB
Select or Download Code
Replies are listed 'Best First'.
Re: Cannot install cpan module Device::USB
by Anonymous Monk on Apr 03, 2014 at 01:49 UTC
    its simple, force install ... its only one test failing
      Ok, I just tried that. Did not work. USB.pm did not get installed, and when I run "cpan Device::USB", I get a ton of error messages - here are the first few lines:
      USB.xs:6:17: error: usb.h: No such file or directory USB.xs: In function 'libusb_get_busses': USB.xs:32: warning: return makes pointer from integer without a cast USB.xs: In function 'libusb_open': USB.xs:37: warning: return makes pointer from integer without a cast USB.xs: In function 'libusb_close': USB.xs:42: error: 'usb_dev_handle' undeclared (first use in this funct +ion)

      It seems the reason for the error needs to be addressed instead of suppressed.

      What could be causing the failure to install? How to make it install w/o using force?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1080871]
Approved by boftx
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (19)
As of 2015-07-31 17:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (279 votes), past polls