Mar 8, 2013

HowTo: Install Gtk2 in ActivePerl in Windows 7

This was tested in the ActivePerl 5.14.2 and 5.16.2
Step1: open Perl Package Manager
Step2: click on preferences (the gear thingy) on the upper right corner

Step3: select the sisyphusion :: Math, PDL, Gtk2 and other ad hoc and press Add button then press OK

Name: sosyphusion
Location: http://www.sisyphusion.tk/ppm



Step4: follow the arrows from 1 to 5 in the diagram below


Step5: Gtk2 is now installed!!

Thanks to one of our Commentor, (AnonymousJuly 3, 2013 at 5:53 AM) suggested you do the following if your installation fails with this message "The package Gtk2 has already installed a file that package Pango wants to install."

Anyway, in order to successfully install it under (at least) ActiveState Perl 5.16.3 you need to :
Step 1 .. Step 3 : same as shown above
Step 4 : exit PPM GUI
Step 5 : on command line (cmd.exe) enter :

ppm install Gtk2 --force

Step 6 : enjoy !
** I tried this and it works like a charm ** thanks anonymous

4 comments:

  1. can you give me link to download perl package ?

    ReplyDelete
  2. Great work on that how-to ! I was looking for such an information for several days already. One point though : when installing as is it shows "The package Gtk2 has already installed a file that package Pango wants to install." (or any name involved in the dependencies as far as I understood the cause).

    It is shown here (http://www.sisyphusion.tk/faq.html) that :

    " 3. Why do I need to use --force to install via ppm ?

    This is generally necessary because most of the sisyphusion ppm packages contain one of the 3 dll's mentioned in question 2."

    Anyway, in order to successfully install it under (at least) ActiveState Perl 5.16.3 you need to :
    Step 1 .. Step 3 : same as shown above
    Step 4 : exit PPM GUI
    Step 5 : on command line (cmd.exe) enter :

    ppm install Gtk2 --force

    Step 6 : enjoy !

    ReplyDelete
  3. Saved me. Also the post about force, thanks

    ReplyDelete
  4. If you have no idea what you're doing and get "ppm command not found" then change directory first to C:\Perl64\bin

    ReplyDelete