n67_hp has asked for the wisdom of the Perl Monks concerning the following question:

Hi to all, I'm new in perl and I do not know how to install the latest Tk version (Tk-804.030 which I found on http://search.cpan.org/~srezic/Tk-804.030/) on Windows 7 with Perl 5.12.3
  • Comment on Install Tk-804.030 with Perl 5.12.3 on Windows 7

Replies are listed 'Best First'.
Re: Install Tk-804.030 with Perl 5.12.3 on Windows 7
by marto (Cardinal) on Apr 26, 2012 at 12:52 UTC

    Are you running ActiveState Perl or Strawberry Perl? If ActiveState then you need to install a C compiler and build tools. To install these from the command line:

    ppm install MinGW

    Once that's installed (again, from the command prompt):

    cpan Tk

    Note that as others have stated previous versions of Tk are installable via PPM.

    Update: For clarification I just installed this using Strawberry Perl v5.12.3 on Windows XP.

    Update 2: ppm error fixed. I forgot the install part.

      How to install a C compiler and build tools? Could you give me a link how to do it and where to get from?

        I've noticed a mistake in my previous post. Open a command prompt, type:

        ppm install MinGW

        PPM will then download and install a C compiler and build tools.

Re: Install Tk-804.030 with Perl 5.12.3 on Windows 7
by ww (Archbishop) on Apr 26, 2012 at 12:07 UTC
    If you're using ActiveState's perl, use ppm search Tk but a quick check today showed that the current version for Perl 5.014 is 804.029... which may or may not be the case for 5.012.

    If you don't have ppm available, or it finds only an older version than you want, you'll have to read up on installing a module from CPAN. You can find the relevant nodes by using Super Search and appropriate search terms.

      a quick check today showed that the current version for Perl 5.014 is 804.029...

      The bribes repo, too, currently has only 804.029:
      ppm install http://www.bribes.org/perl/ppm/Tk.ppd

      Cheers,
      Rob
        Thx,I resolve my problem now using your solution.Love you guy.By the way, can you tell me how you find that URL?
      I have tried ppm search Tk and I've got the following answer: *** no packages matching 'Tk' found *** I have written "ppm search Tk" in cmd prompt in the current directory where I have installed perl 5.12.3 (D:\5123\bin\)
        Perhaps you need to add bribes to your repo list.

        You can check by running (from the command prompt -- forgive my mentioning the obvious if it's unnecessary): ppm repo list and if the response doesn't include bribes, add it with:

        ppm repo add *url* [ *name* ] [ --username *user* [ --password *pass +word* ] Set up a new repository for PPM to fetch packages from.

        You may also want to read ppm's help file ... and comprehensive (but long) explanation of the many options available when running ppm from the CLI.