Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing modules using Strawberry Perl

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?

like image 877
ronssd Avatar asked Jul 10 '11 21:07

ronssd


People also ask

Where is Strawberry Perl installed?

During installation, we recommend installing it in C:\Strawberry . This is the default for the MSI package. Connect your computer to the Internet so you are able download any required Perl modules from CPAN.

How do I know if Strawberry Perl is installed?

Just open a command prompt (in Windows, just type cmd in the run dialog and press Enter. If you're on a Mac or on Linux, open a terminal window). and press Enter. If Perl is installed, you receive a message indicating its version.


2 Answers

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.

like image 64
Alexandr Ciornii Avatar answered Oct 01 '22 08:10

Alexandr Ciornii


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.

like image 33
Alex Avatar answered Oct 01 '22 08:10

Alex