Monday, January 9, 2012

Easy way to install TK on Strawberry PERL ON WINDOWS!!

Thanks to the reply to the post by Felipe (, here are the steps:
  1. Download Tk module from cpan ( 
  2. Extract it to a folder. 
  3. Move it to C:\strawberry\perl\lib\ 
  4. Open Command Prompt 
  5. Go to cd C:\strawberry\perl\lib\foldername and pressed enter. 
  6. Then type: perl and pressed enter.. Wait for a few minutes till you see the command prompt. 
  7. Then type dmake test and press Enter. 
  8. Then type dmake install and press Enter.


  1. Thank you! It's really helpful!

  2. Wow, thank you so much. Regular CPAN> intall Tk was not working for me. For those n00bs like me, when you download the package from CPAN, it's a tar.gz. You can extract the tar from the gunzip with 7zip ( and then extract the files from the tar with the same program.

  3. Thank you...just what I was looking for. I am using Padre, but your instructions worked fine for it as well.

  4. Thank you so much....
    Instructions mentioned here is got worked..

  5. Hi i'm new to perl... Dont no how to download tk modules from CPAN.. PLease help me out with this..

    1. You click the download link up top of the page. (use the link provided above) or here, what I'm trying to figure out is how to "extract" a gz file in windows.

    2. Use 7zip to extract tar and gz files on Windows:

  6. i'm getting this error

    Can't locate in @INC (@INC contains: /opt

    pls, hlp on ts

  7. after I gave dmake test command it is giving this error
    fatal error: ../pTk/tkIntXlibDecls.h: No such file or directory
    compilation terminated.
    dmake: Error code 129, while making 'Xlib.o'
    dmake: Error code 255, while making 'subdirs'

    Can anyone help me out with this.