Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re: installing strawberry and activeperl

by kcott (Chancellor)
on Oct 08, 2010 at 11:17 UTC ( #864183=note: print w/replies, xml ) Need Help??

in reply to installing strawberry and activeperl

I switched from ActivePerl to Strawberry Perl too; although I'm using different perl versions to you. Here's my Windows Path:

C:\strawberry\c\bin;C:\strawberry\c\i686-w64-mingw32\bin;C:\strawberry +\perl\site\bin;C:\strawberry\perl\bin;C:\Perl\site\bin;C:\Perl\bin;<o +ther non-perl stuff here>

So that's Strawberry (C:\strawberry\*) at the very beginning; ActivePerl (C:\Perl\*) next; other Windows paths at the end.

I have *.pl files associated with Strawberry perl. Perhaps you need to do that.

I also start all my scripts with the shebang line:


I have the additional complication of also running Cygwin. That shebang line lets me run one script from either environment without having to do anything special (although I'm not sure if it's actually read under Windows). In case you're interested, I'm running 5.12.0 in both.

The Strawberry Perl site has some information about relocating Perl: "Now you can tell Strawberry Perl 5.12.0 where YOU want it to go: 64-bit machines, odd directory locations, USB sticks, etcetera.". I haven't used it and don't know if it pertains to your version; however, if you're still having difficulties, it might be of some help.

Update: Re your ftype and assoc commands above, I get:

C:\_\tmp>ftype Perl Perl="C:\strawberry\perl\bin\perl.exe" "%1" %* C:\_\tmp>assoc .pl .pl=Perl C:\_\tmp>

-- Ken

Replies are listed 'Best First'.
Re^2: installing strawberry and activeperl
by kevbot (Priest) on Oct 10, 2010 at 01:21 UTC

    I have found that using a 'portable' version of Strawberry Perl is a good way to maintain separate installations on Windows. Just download one of the 'portable' zip files (e.g. and unzip it.

    Then run the 'portableshell.bat' that is in the top-level directory. This gives a command prompt that uses the 'portable' installation of strawberry...and it seems to ignore my existing (older) installation in C:\strawberry. You just have to remember to use 'portableshell.bat' to start up your command prompt. If I recall correctly, 'portableshell.bat' just adds the 'portable' version to the beginning of your existing path.

    I use this at work to share scripts with others, since I can just install this portable version on a network share.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (3)
As of 2018-09-23 23:36 GMT
Find Nodes?
    Voting Booth?
    Eventually, "covfefe" will come to mean:

    Results (191 votes). Check out past polls.

    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!