Hello Monks. Tried searching for this error, but could not find any solution.

Working on cygwin/windows, I have a local cpan mirror at C:\\Softwares\\cpanmirror which is /cygdrive/c/Softwares/cpanmirror.

Everything working fine. I am able to install/upgrade any module through cpan by configuring MyConfig.pm or cpanm by following commands.

cpanm --mirror /cygdrive/c/Softwares/cpanmirror/ --install Tie::Hash:: +LRU

OR

cpan install Getopt::Complete

Now I try to use the same mirror on some remote machine by sharing the folder "Softwares". I am able to install modules through cpan by adding "file://<originalMachine>/Softwares/cpanmirror in MyConfig.pm urllist and using simple command -

cpan install Module::Find

And it gets installed easily. However,when using cpanm, I get the following error.

Command:

cpanm --mirror /<machineName>/Softwares/cpanmirror --install Tie::Hash +::LRU

OR

cpanm --mirror /<machineName>/Softwares/cpanmirror --mirror-only --ins +tall Tie::Hash::LRU
//<machineName>/Softwares/cpanmirror: No such file or directory at /lo +ader/0x20088118/App/cpanminus/script.pm line 81. ! Finding Tie::Hash::LRU on cpanmetadb failed. ! cannot open file '/home/<homeDirectory>/.cpanm/sources/file%<machine +Name>%Softwares%cpanmirror/02packages.details.txt.gz': No such file o +r directory opening compressed index ! Couldn't find module or a distribution Tie::Hash::LRU

I even tried using a symlink pointing to the local mirror and using command:

cpanm --mirror /cygdrive/c/Softwares/linkToCpanMirror --install Tie::H +ash::LRU

But no success.

I want to just ignore running test. That is why I am interested in running cpanm, but it is failing. May be some mistake of mine, or some issue in the script. Please help in same.


In reply to cpanminus with local mirror on remote machine by gurpreetsingh13

Title:
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, details, 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, summary, 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.