in reply to trouble installing Device::USB

First, reinstall ExtUtils::MakeMaker, Inline::MakeMaker, and Bundle::CPAN.

Second, get the tarball for libusb here

Third, run cpan -fi Device::USB

Fourth, on my system, I have to run ldconfig after I finish make, make check, and make install of libusb:

/sbin/ldconfig /usr/local/lib. I'm not quite sure how Ubuntu does it.

Replies are listed 'Best First'.
Re^2: trouble installing Device::USB
by Bruce32903 (Scribe) on Aug 02, 2009 at 17:01 UTC
    Thanks for the reply. I tried the suggestions and still get the same error.

    I am digging into the files to try to get a clue, but I sure would appreciated more suggestions if anyone has any.

    So far one thing bothers me (besides not being able to do the install); all the MakeMaker.pm files on my machine seem to contain "package ExtUtils::MakeMaker". From what I have seen and the comments I received so far I was expecting at least one of them to contain "package Inline::MakeMaker". Is this a good assumption?

    Thanks,
    Bruce

      Inline::MakeMaker should be installed by the Inline package as I recall.

      The Device::USB dependencies include Inline::C which should have installed Inline::MakeMaker. I would try the following:

      1. Check to see if Inline is installed.
      2. Check to see if Inline::MakeMaker is installed.

      I suspect that Inline failed to install somehow. But that is just a guess.

      G. Wade
        Thanks. I think we are on to something here. But, I'm still not getting there.

        In response to:
        #perl -MCPAN -e shell
        cpan> install Inline::MakeMaker
        
        I get:
        Inline::MakeMaker is up to date (6.17)
        

        In response to:
        #perl -MCPAN -e shell > x.txt 2>&1
        cpan> install Inline
        
        I get:
        This seems to say that a url list that I didn't know about before must be set up for CPAN to operate. My next two actions follow the instructions given in the error report above.

        In response to:
        cpan> o conf init urllist
        
        I get two blank line feeds and a cpan> prompt. Thus, I think that the computer is saying that it is happy with this.

        In response to:
        cpan o conf init connect_to_internet_ok urllist
        
        I get two blank line feeds and a cpan> prompt. Thus, I again think that the computer is saying that it is happy with this.

        When I once again try:
        #perl -MCPAN -e shell > x.txt 2>&1
        cpan> install Device::USB
        
        I get: I ran through all of this several times as I was making notes and composing this posting. It took several passes before both of the "o conf" commands for urllist came back as successful. That makes me a little uneasy.

        In the above error posting the following:
        Warning: No success on command/usr/bin/perl Makefile.PL INSTALLDIRS=site
          GWADEJ/Device-USB-0.29.tar.gz
          /usr/bin/perl Makefile.PL INSTALLDIRS=site -- NOT OK
        
        seems to be upset with a INSTALLDIRS variable or setting of some kind. I don't know what this is.

        Still confused. Thanks for the help so far. Any additional suggestions would be appreciated.

        Thanks,
        Bruce

      Is this a good assumption?

      No - as has already been mentioned in this thread, Inline::MakeMaker is part of Inline. When installing Inline, you'll be prompted to install Inline::C (during the 'perl Makefile.PL' stage). Accept that prompt, and all should be fine.

      Cheers,
      Rob
        In response to:
        #perl -MCPAN -e shell > x.txt 2>&1
        cpan> install Inline::C
        
        I get:
        My system does not seem to be very happy with "install Inline::C". I have already done the "conf init urllist" commands several times so I don't know what else to try.

        Thanks,
        Bruce

      Yes, if you had installed the Inline::MakeMaker package, otherwise no, you will not find it.

      The best advice I can give you is try to revert the changes you made manually and install the package using cpan script. It is its work resolving the dependencies of the module and install all that is needed.

      Rule One: "Do not act incautiously when confronting a little bald wrinkly smiling man."

        I think that I have fully undone the couple of things that I did manually. I can't, obviously, undo the "cpan> install" changes.

        Thanks,
        Bruce
Re^2: trouble installing Device::USB
by Bruce32903 (Scribe) on Aug 03, 2009 at 00:33 UTC
    The reinstalls seemed to go OK.
    .
    In response to:
    -fi Device::USB
    
    I get:
    Unknown shell command '-fi'. Type ? for help.
    
    Trying '-fix', 'cpan -fi' and 'cpan -fix' all get the "Unknown shell command" response.

    In response to:
    cpan> ?
    
    I get: I'm currently at a loss as to where to go next with this one.

    Thanks,

    Bruce

      cpan -fi Device::USB is done from the command-line. "-fi" is short for "force install". On the other hand, if you go into the CPAN shell, then you would use force install Device::USB.