Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
You are right, I tend to treat questions like some treat documentation (but it's self-evident... :) ), I shouldn't but I do. This is the third way that I've see to install cpanm, but you I trust! I'll give it a shot and see what happens. Still wish I didn't have the knack of turning speed-bumps into climbing walls...

Update: Clearly I don't understand what you've said. I tried the following:

hsmyers@ubuntu:/usr$ perlbrew switch /usr/bin/perl /usr/bin/perl is not installed hsmyers@ubuntu:/usr$ which cpanm /home/hsmyers/perl5/perlbrew/bin/cpanm hsmyers@ubuntu:/usr$ sudo cpanm Chess::PGN::Moves [sudo] password for hsmyers: Chess::PGN::Moves is up to date. (0.05) hsmyers@ubuntu:/usr$ hash -r hsmyers@ubuntu:/usr$ cpanm Can't write to cpanm home '/home/hsmyers/.cpanm': You should fix it wi +th chown/chmod first. hsmyers@ubuntu:/usr$ sudo cpanm Usage: cpanm [options] Module [...] Try `cpanm --help` or `man cpanm` for more options. hsmyers@ubuntu:/usr$ hash -r hsmyers@ubuntu:/usr$ sudo cpanm Usage: cpanm [options] Module [...] Try `cpanm --help` or `man cpanm` for more options.
With the results as shown. Maybe I wasn't clear (the not asking questions thing) what I need is a cpanm that works with perlbrew. What I have now is one that only installs in the original environment. As a for instance, the attempt to install Chess::PGN::Moves shows a reference to the one installed under 5.10, not to one installed under 5.8.1. Further, the first line is as you had shown and got the result that you see. If I now do a quick test:
hsmyers@ubuntu:/usr$ perldoc Chess::PGN::Moves No documentation found for "Chess::PGN::Moves".
This shows that no attempt to use cpanm has yet worked in the 5.8.1 context. Since I have no idea of what any of the commands you showed mean, I have no idea of what might be wrong---clearly something is. Given the lack of any directory off of /usr/ named perlbrew, I wonder about my installation of perlbrew---did I mess it up somehow? The only thing that I have that matches what you've said is that I do have a /usr/bin/perl. Being curious I did:
hsmyers@ubuntu:/$ perlbrew list perl-5.8.1 * /usr/bin/perl (5.10.1)
The documentation didn't say what the '*' stands for, but if I do:
hsmyers@ubuntu:/$ perlbrew install /usr/bin/perl Unknown installation target "/usr/bin/perl", abort. Please see `perlbrew help` for the insturction of install command.
This might explain why my attempt to perlbrew switch /usr/bin/perl didn't work.

The more I look at your first post, the more I'm wondering why I don't have a /usr/perlbrew/ directory. After all if I screwed up cpanm to to point of non-usability, doing the same to perlbrew should be dead bang easy...

IMPORTANT Update: Found the problem or at least found something that works (can't speak to its correctness beyond that) Did this:
  1. Removed cpanm as installed by perlbrew
  2. Removed cpanm as installed by cpan
  3. Reinstalled cpanm using perlbrew install-cpanm
  4. Issued magic incantation sudo chown -R hsmyers /home/hsmyers/.cpanm
  5. Tested by cpanm-ing first dependency and rerunning perl Makefile.PL---still have dependencies reported, but one less than before!
  6. Continued with installs and final testing with a clean result from the makefile
Like I said, since I don't even have a Linux merit badge, let alone a wizard's staff, this is slightly suspect. I think that removing the original cpanm was probably unnecessary but did so as a clean slate kind of thing. I am convinced that the problem came down to the simple lack of correct ownership for the .cpanm directory, probably nothing more than that. This matches well with the countless reports on the net about how easy all of this was supposed to be---it's always easy if you know what the hell you are doing!.

As per usual, a ton of thanks to all who helped and made offers of help—you and all of the other Monks make this place the incredible resource that it is!


"Never try to teach a pig to wastes your time and it annoys the pig."

In reply to Re^2: Update on setting up a PAUSE testing environment by hsmyers
in thread Update on setting up a PAUSE testing environment by hsmyers

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, 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, 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.
  • Log In?

    What's my password?
    Create A New User
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others rifling through the Monastery: (7)
    As of 2020-03-30 17:33 GMT
    Find Nodes?
      Voting Booth?
      To "Disagree to disagree" means to:

      Results (175 votes). Check out past polls.