Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: RFC: A guide to installing modules for Win32 (2022 Edition)

by Discipulus (Canon)
on Jul 26, 2022 at 07:37 UTC ( [id://11145736] : note . print w/replies, xml ) Need Help??

in reply to RFC: A guide to installing modules for Win32 (2022 Edition)

Hello pryrt and ++ my friend for this updated tutorial!

just some minor things from my part.. In the Strawberry Perl section I'd invert the paragraph position: first the plain simple way using cpan client, then the make method that I consider less frequently used and more hackish. Users used to windows rarely understand making things and also installing something in the command line is considered a dangerous journey.

Also some cpan frequently used interactive commands, in a pseudo session, as example can be a benefit for win32 users. For example:

cpan> # to install Some::Module just type: cpan> install Some::Module # to see if there are updates for a module use 'r' cpan> r DBI ... Package namespace installed latest in CPAN file DBI 1.637 1.643 TIMB/DBI-1.643.tar.gz # to upgrade some module to the latest version use 'upgrade' cpan> upgrade DBI

I dont know if it is worth to mention that Strawberry puts its own mirror as first one in the cpan configuration:

cpan> o conf urllist urllist 0 [] 1 []

..and for it I hit: LWP failed with code[500] message[Can't connect to]

Minor editing nitpick: it seems you are using the wikisyntax for the monastery: if so after the single quote you cannot have any char: 'cpan -i Some::Module'. does not work, you need good old tags if you want the dot: <c>cpan -i Some::Module.</c>


There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.

Replies are listed 'Best First'.
Re^2: RFC: A guide to installing modules for Win32 (2022 Edition)
by pryrt (Abbot) on Jul 26, 2022 at 14:27 UTC
    Part of me wanted to keep the order with the "traditional recipe" first, because that's the order presented in the original A Guide to Installing Modules. But since I agree that using cpan or alternative clients is preferred, I followed your advice and changed the order.

    For the cpan configuration and usage suggestions: are those really Win32-useful enough that they belong here? Or are they just generically useful? Do others think that this tutorial should include that suggested extra detail about the CPAN shell? or even more than that? What about extra hints for the other clients?

    Wiki syntax: I often forget to put that space after the end-single-quote. I had actually noticed that on another instance, and thought I had converted all of my wiki syntax to plain Perl Monks Approved HTML tags, but I missed those. Thanks