in reply to Re^2: "Strawberry Perl" - can it live together with ActivePerl 5.10.0 Build 1003 (on WinXP)?
in thread "Strawberry Perl" - can it live together with ActivePerl 5.10.0 Build 1003 (on WinXP)?

But now I have to install CPAN modules.

I did not find a pre-built PPM package for ActivePerl.
And It needs a compilation.

You can use MinGW (gcc for Windows) to install XS modules for ActivePerl, with CPAN. Really! I do it all the time.

Go to the download page, and download the installer, the first link. It's a file of about 140k. Run it. It'll download and install the packages you need.

You also need a make utility, which you already need when building plain utilities with CPAN. For XP, Microsoft's nmake works fine, but alternatively you can use dmake too, allegedly.

When ActivePerl detects that you have MinGW and don't have Microsoft's Visual C, it'll monkeypatch Config into using it for building modules instead.

  • Comment on Re^3: "Strawberry Perl" - can it live together with ActivePerl 5.10.0 Build 1003 (on WinXP)?
  • Select or Download Code

Replies are listed 'Best First'.
Re^4: "Strawberry Perl" - can it live together with ActivePerl 5.10.0 Build 1003 (on WinXP)?
by meorero (Sexton) on Aug 24, 2008 at 10:32 UTC

    But I already have ActivePerl.

    Will ActivePerl detect MinGW if I install now?

    Or shall I uninstall ActivePerl, than install MinGW and than re-install ActivePerl?

    Thanks...

      I just had a look at the implementation, in the modules ActivePerl::Config and ActiveState::Path. Apparently ActivePerl looks for the executable "gcc.exe" in PATH. So there's no need to reinstall ActivePerl at all. Just installing MinGW and allowing it to add itself into PATH is enough.

      But you will have to start a new CMD shell to run ActivePerl in, to have it recognize it... :)