in reply to Re: trouble installing Device::USB
in thread trouble installing Device::USB

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

Replies are listed 'Best First'.
Re^3: trouble installing Device::USB
by gwadej (Chaplain) on Aug 02, 2009 at 17:21 UTC

    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

        Inline::MakeMaker is up to date (6.17)

        I don't do automated CPAN.pm installs and I don't know what that's supposed to tell you. It suggests to me that you already have version 6.17 of Inline::MakeMaker, which is just brilliant, given that the current version is still at 0.44 !!

        You could try (from the CPAN shell) install Inline instead of install Inline::MakeMaker and see if that makes a difference. Or you could install Inline using the same manual procedure that you used with Device::USB.

        Cheers,
        Rob
        Inline::MakeMaker is up to date (6.17)

        Unsuprising, because you manually copied MakeMaker.pm into Inline directory. Inline::MakeMaker is only at version 0.44

        force install Inline
Re^3: trouble installing Device::USB
by syphilis (Archbishop) on Aug 02, 2009 at 18:48 UTC
    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

        What value do you get for

        o conf connect_to_internet_ok

        Mine has a value of undef which means it asks me every time.

        I believe that the init command sets it to 0 which appears to be not to connect. I think setting it to 1 would connect. (You can also go to the CPAN/Config.pm file and delete the hash entry for connect_to_internet_ok, but that could be a problem if you accidentally mess up something else.

        G. Wade
Re^3: trouble installing Device::USB
by psini (Deacon) on Aug 02, 2009 at 17:15 UTC

    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