Compiling Perl on Unix is really straight forward, but on Windows you need to pay some extra effort.
Read the procedure below if you want to build a default (a.k.a. Vanilla) Perl distribution with no pain.
All the informations you need can be found on the Internet but if you just don't want to waste your time around, this is the right place.
Here we go !
- Create a folder C:\MinGW
- download mingw-get from www.mingw.org and uncompress it under C:\MinGW
- Create a folder C:\Perl
- download latest Perl source and uncompress it under C:\Perl, for instance I got the folder C:\Perl\perl-5.12.3
- Download dmake from here, uncompress it and put the dmake.exe and the "startup" directory under C:\MinGW\bin
- Open a cmd prompt and type
The dmake and dmake test commands will take some time, depending on your pc perfomances.set PATH=C:\MinGW\bin;%PATH%cd C:\MinGW\binmingw-get install gcc g++cd C:\Perl\perl-5.12.3\win32dmakedmake testdmake install
Now you can remove the folder containing Perl sources, i.e. C:\Perl\perl-5.12.3 and ...
That's all !For those who want to customize start with the
file where you can choose, for example, the destination directories for your installation which can be different from C:\MinGW and C:\Perl, but, should not contain spaces.C:\Perl\perl-5.12.3\win32\makefile.mk
Don't forget to add
to your PATH environment variable in order to use your Perl distribution without problems.C:\MinGW\bin;C:\Perl\bin