Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^6: The CPANPLUS cache had to be cleared

by HelenCr (Monk)
on May 10, 2013 at 21:26 UTC ( #1033038=note: print w/ replies, xml ) Need Help??


in reply to Re^5: cpanplus not functioning right in a multiple-Perl installation setup?
in thread cpanplus not functioning right in a multiple-Perl installation setup?

OK, I solved it. What needed to be done was, to clear the CPANPLUS cache (whatever that is), by entering "x" at the cpanp prompt. Apparently cpanp keeps a cache somewhere (and I don't think it's under the
C:\Documents and Settings\UserName\.cpanplus\
tree), and that cache contains configuration parameters, including the current (=default) Perl installation top directory.

Also, after extensive googling, quite far away in a search result list, I have found this:

How can I use CPANPLUS with multiple versions of Perl?
You only need one installation of CPANPLUS for all versions of Perl. As of version 0.04, CPANPLUS keeps different directories under its home directory for each version of Perl:
.cpanplus/ authors/ id/ # tarballs live here 5.6.0/ build/ 5.7.3/ build/

This prevents conflicts.

(URL: http://cpanplus.sourceforge.net/faq.html#b)

So, conclusions:

  1. Installing several Perl versions is ok and supported
  2. CAPNPLUS supports working in a multi-perl installation environment, but you must clear the "CPANPLUS cache" when shifting from one installation to the other (or use some other alternatives listed in that URL)
  3. CPANPLUS documentation is meager and practically non-existent. I found the URL quoted above by accident, and its parent URL is broken.

That has been an excruciating experience. I have spent days wrestling with this.

Many thanks to all PerlMonks trying to help, offering advice - Helen


Comment on Re^6: The CPANPLUS cache had to be cleared
Select or Download Code
Re^7: The CPANPLUS cache had to be cleared
by Anonymous Monk on May 11, 2013 at 00:24 UTC

    2) .... but you must clear the "CPANPLUS cache" when shifting from one installation to the other (or use some other alternatives listed in that URL)

    No you don't. Unless you go out of your way to disable automatic index refreshing, refreshing indexes isn't needed, it happens automatically when necessary.

    3) CPANPLUS documentation is meager and practically non-existent. I found the URL quoted above by accident, and its parent URL is broken.

    Not true, this conclusion isn't supported by reality.

    That page you found via googling is dated from 2002, 11 years ago. It is outdated and obsolete.

    The cpanp/CPANPLUS/File::Fetch documentation is current , complete, comprehensive.

    it shows (the same as cpanp help )  x                   # reload CPAN indices

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2014-07-28 07:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (193 votes), past polls