Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

minicpan mirror in windows network

by porcelet (Initiate)
on Oct 08, 2015 at 11:43 UTC ( [id://1144153]=perlquestion: print w/replies, xml ) Need Help??

porcelet has asked for the wisdom of the Perl Monks concerning the following question:

Hello everyone, I can't find the solution to a problem. I downloaded perl strawberry portable and ran minicpan to get my local copy of one miror (no problem, it works great). Now I want to make it available to people that have access to a shared folder on a VM on the network

The constraint is that we are limited to windows as OS and I can't configure cpan correctly to use that mirror. Let's assume I put the miror copy in \\a_server\Shared Internal\porcelet\my_cpan_mirror

Then I went in the cpan config file to edit 'urllist' I have the following line 'urllist' => [q\\\\a_server\\Shared Internal\\porcelet\\my_cpan_mirror] cpan tries to fetch with LWP but the address looks weird...it starts by the url I specified and it's then followed by /authors/01mailrc.txt.gz I have the same issue for packages details and modlist. It indicates that the url must be absolute....did I miss something? I'd like to use unix environnement, I know it's easier...but You can't always do what you want ;)

Regards

Replies are listed 'Best First'.
Re: minicpan mirror in windows network
by Corion (Patriarch) on Oct 08, 2015 at 12:10 UTC

    The "correct" way to configure a local file-based mirror is:

    file://a_server/Shared Internal/procelet/my_cpan_mirror

    ... but I've also had to use (note the triple slashes)

    file:///a_server/Shared Internal/procelet/my_cpan_mirror

    Maybe one of the two works for you. If all else fails, mount the directory as a drive letter :)

      Hi Corion, oups Ok, I didn't know that It worked with / Thank you very much. I was stucked with this :D KRs

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1144153]
Front-paged by Arunbear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (8)
As of 2024-04-18 12:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found