cpan still re-creates '\cygdrive\d\photog\home.bpb\.cpan...' directory.

This is by running Strawberry's cpan.bat ??
If so, then there must still be some remnant of Cygwin in your system environment variables.
In a cmd.exe shell run
set >set.txt
Then search the generated set.txt for occurrences of "cygdrive".

Does it really matter what the name of the cpan build directory is ?

If you're going to have more than one perl on a machine I think it's a good idea to make sure that *none* of them are in the Windows system path.
If there's no perl in the system path when you install Cygwin (or msys/msys2 - which was probably more suited to your needs) then you'll know that there will be only the one perl in the path that Cygwin's (or msys') bash shell sets up, and that perl will be the perl that ships with Cygwin (or msys).
This also means that there is no perl in the cmd.exe shell's path when you open one up.
This leaves you free to prefix/suffix the path with additional perls (to either a cmd or bash shell) as you want.

Last time I tried it, the Strawberry Perl installer wanted to prepend Strawberry Perl (and gcc) to the system path.
Therefore the 6 versions of Strawberry that I have are installations of a "Portable" Strawberry Perl distro - as installing the "Portable" disatro doesn't mess with the system path.

If I want to run a particular Strawberry Perl I just have to doubleclick the portableshell.bat that shipped with that portable Strawberry Perl (in its top level directory).
If I want to use Cygwin's perl I just need to start Cygwin's bash shell.
If I want to use msys' perl (which is extremely rarely) then I just need to open up an msys' bash shell.
And if I want to start up one of the other 20 or so Windows perls that I have then I just have to open a cmd.exe shell and then add that perl to the path (for the life of that shell).

As far as I know:
It's to be expected that, for Cygwin, cpan will select its $ENV{HOME} as the location of the .cpan directory, whereas Strawberry's cpan will select a different ($ENV{HOMEPATH}) location.
(I'm not sure if msys or msys2 ship with perl - but it's $ENV{HOME} will be separate from both Cygwin's $ENV{$HOME} and Strawberry's $ENV{HOMEPATH}.)

Cheers,
Rob

In reply to Re: cygwin ATE CPAN!!! by syphilis
in thread cygwin ATE CPAN!!! by BrianP

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.