slu

Søren's Blog

Random Ramblings

Previous Entry Share Next Entry
Installing Cygwin Perl on Windows 7
slu
(This is part three of my Perl for Java programmers guide)

Below is a simple step-by-step guide on how to install Cygwin Perl on Microsoft Windows 7. The instructions should work on most versions of Windows from XP and up.

The instructions are supported by a series of screenshots. I've made all the (uncropped) screenshots available for easy reference/download.

Start Internet Explorer and open the Cygwin project website:

win7-cygwin-install-01

You might need to scroll down a bit to find the download link for the installation program, simply called setup.exe. Click the link:

win7-cygwin-install-02

A dialog will ask you if you want to run or save the file. Just click Run:

win7-cygwin-install-03_crop

You'll get a warning about running a program from an untrusted source, click Yes:

win7-cygwin-install-04_crop

The installation program will start, click Next:

win7-cygwin-install-05_crop

The default location to install is C:\cygwin\, you should not need to change that, unless you have another disk and want to use that. Do not use directory names with spaces like c:\Program Files\. Click Next:

win7-cygwin-install-07_crop

The installation program will download a lot of packages during the installation. The default directory is C:\Users\name\Desktop (where name is your username). I don't like clutter on my desktop, so I change that to C:\Users\name\Downloads. Click Next:

win7-cygwin-install-08_crop

Unless you know you're behind a proxy, just click Next:

win7-cygwin-install-09_crop

Select a download site and click Next:

win7-cygwin-install-10_crop

You'll be presented with following window, where you can select which packages to install:

win7-cygwin-install-12

Just write perl in the search field and the list becomes a little shorter:

win7-cygwin-install-13

Click on the line that says "Perl () Default" to change it to "Perl () Install" and click Next:

win7-cygwin-install-14

The installer will resolve some dependencies that you'll need, just click Next to continue:

win7-cygwin-install-15_crop

The installation will start:

win7-cygwin-install-16_crop

You might get an error downloading packages:

win7-cygwin-install-17_crop

Go back and select another download site:

win7-cygwin-install-18_crop

I got some postinstall errors, but they were safe to ignore, i.e. just click Next:

win7-cygwin-install-19_crop

By default you'll get some icons in both the start menu and on your desktop, untick any you don't want and click Finish:

win7-cygwin-install-20_crop

The installation is complete, and you'll see new programs installed:

win7-cygwin-install-21_crop

Select the Cygwin Terminal and a Terminal Window will open:

win7-cygwin-install-22_crop

Do a perl --version to check the version of perl:

win7-cygwin-install-23_crop

That's it. You've installed Cygwin Perl.

  • 1
Thank you for creating a proper tutorial. Nothing is so obvious or trivial that it should not be included. Even failed download and script errors help the initiate.

  • 1
?

Log in

No account? Create an account