Installing modules using Strawberry Perl

WindowsPerlCpanPerl ModuleStrawberry Perl

Windows Problem Overview


Until now I used ActiveState's ActivePerl, and used the ppm for installing modules.

Last week I moved to Strawberry Perl, but I don't know how I should install modules using Strawberry Perl. What is some information on how module installation is done using Strawberry Perl or is there some link on how to install new modules?

Windows Solutions


Solution 1 - Windows

You can still use ppm, but it is not recommended. Run CPAN client from the Strawberry Perl or Strawberry Perl (64-bit), sub folder Tools, entry in the Start menu.

Type install Module::Name there.

Solution 2 - Windows

As Alexandr says, you can use the CPAN client via the start menu. You can also install modules just as you would on Unix from the DOS window:

perl -MCPAN -e shell
install Quantum::Entanglement

You can also download the .tar.gz from CPAN, unzip it and install as you would in Unix:

cd Module-Name-1.23
perl Makefile.PL
dmake
dmake test
dmake install

You may need to make sure your %PATH% environment variable has the right entry to get to Strawberry Perl, and does not contain other copies of dmake or gcc, which will sometimes lead to headaches.

Solution 3 - Windows

Change the directory:

cd C:\Strawberry\perl\bin

Then

C:\Strawberry\perl\bin>cpan Lingua::EN::Sentence

and the module will install automatically.

Solution 4 - Windows

CPAN is the easiest installation method.

As Alex has noted, you may have to download a .tar.gz and unzip it. Since he wrote his answer, Strawberry Perl has deprecated dmake, and you should use gmake instead.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionronssdView Question on Stackoverflow
Solution 1 - WindowsAlexandr CiorniiView Answer on Stackoverflow
Solution 2 - WindowsAlexView Answer on Stackoverflow
Solution 3 - WindowsJamesView Answer on Stackoverflow
Solution 4 - WindowsWesView Answer on Stackoverflow