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

Re: Installing CPAN on a Windows system

by andk (Novice)
on Feb 17, 2006 at 04:29 UTC ( #530855=note: print w/replies, xml ) Need Help??


in reply to Installing CPAN on a Windows system

First up, CPAN absolutely will not run nmake from a path including a space.

Why can this not be fixed by configuration in CPAN.pm? Or with a patch to CPAN.pm? How do you run nmake when it is in a path that contains spaces?

Out of curiosity, I put my make command to "/tmp/path with spaces/bin/make" and then configured within CPAN.pm:

o conf make "'/tmp/path with spaces/bin/make'"

and could install random modules immediately. How would this work under Windows?

Replies are listed 'Best First'.
Re^2: Installing CPAN on a Windows system
by demerphq (Chancellor) on Feb 17, 2006 at 21:38 UTC

    Actually I think its a mixture of CPAN related issues and Cygwin related issues. All I know is that installing anything development into a path with spaces On Win32 is just a really good way to get yourself frustrated and annoyed at some point or another.

    Sure you can argue that it shouldnt be like this, and that things should work fine, and all of that, but ultimately its my experience that it doesn't, and that its a lot easier to avoid the problem outright than figure out the workarounds later.

    ---
    $world=~s/war/peace/g

Re^2: Installing CPAN on a Windows system
by Corion (Pope) on Mar 01, 2006 at 23:47 UTC

    This works on Windows too, but the Windows shell (cmd.exe) only knows about double quotes:

    o conf make '"C:\tmp\path with spaces\bin\nmake.exe"'

    works and allows to use a directory with whitespace in its name. The same should also be done for the gzip and tar paths, and also for Perl itself (especially $^X :-) ). See also RT 17877 - the approach proposed by you to add quoting if it becomes necessary is what I do as well.

Re^2: Installing CPAN on a Windows system
by GrandFather (Saint) on Feb 17, 2006 at 05:38 UTC

    I had a quick play with altering the configuration string and could not make it work - I may not have tried double quoting. Windows handles the command line differently than *nix for quote characters of various types in any case and that may have been where the problem was.


    DWIM is Perl's answer to Gödel

      Mostly, Windows is very braindead about commandlines and doesn’t handle quoting in any particular fashion at all, so every program involved in the execution of another adds its own conventions/complexities; sometimes irresolvable ones.

      Makeshifts last the longest.

Re^2: Installing CPAN on a Windows system
by Steve_p (Priest) on Feb 17, 2006 at 13:58 UTC
    I had thought the problem was not with nmake, but the if .cpan directory was within a path with spaces in it. I've had problems with it in the past, but I haven't tried it with a newer CPAN. With all the changes, this may have been fixed. Let me test and see.
    A reply falls below the community's threshold of quality. You may see it by logging in.
A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2021-08-02 00:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My primary motivation for participating at PerlMonks is: (Choices in context)








    Results (16 votes). Check out past polls.

    Notices?