Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Unable to install Tk module on Win7

by slugger415 (Beadle)
on Feb 05, 2013 at 15:00 UTC ( #1017200=perlquestion: print w/ replies, xml ) Need Help??
slugger415 has asked for the wisdom of the Perl Monks concerning the following question:

Hello monks, I apologize for continuing to harp on this question; I've posted a similar question here as Where is Perl/Tk? bribes.org is offline?, got many suggestions but none have panned out.

The situation:

  • I wrote a perl script several years ago with the Tk module.
  • My users use ActiveState Perl on Win7, and that repository no longer carries the module.
  • For a while I was able to refer users to the bribes.org repository, but that seems to be down. The command used to install:
    ppm install http://www.bribes.org/perl/ppm/Tk.ppd
  • I can see the module on cpan, but don't know how to install it on win7. Yes I've read the instructions http://www.cpan.org/modules/INSTALL.html, but always get things like:
    c:\> cpan App::cpanminus ... lots of messages... c:\> cpan Tk ... lots of messages... Writing Makefile for Tk 'nmake' is not recognized as an internal or external command, operable program or batch file. SREZIC/Tk-804.030.tar.gz nmake -- NOT OK CPAN: YAML::XS loaded ok (v0.35) Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible
  • When I run ppm repo I see the following (I've disabled bribes as it hangs):
    id pkgs name
    1 16730 ActiveState Package Repository
    2 0 cpan
    3 n/a bribes
    4 13 wxperl
    So it looks like cpan is showing zero packages.
  • Tk does not appear in the user's list if they run the ppm gui.
  • There have been suggestions to migrate to Tkx but that seems like it would be many days of recoding and retesting with an unfamiliar module. (It's a pretty complicated script.)

I can download the module from cpan Tk-804.030.tar.gz but don't know how to install it on windows. Is there a 'ppm' command I can use on that gz file, locally?

I can't ask my users to install something like cygwin; I'd prefer to have tum run it from the basic win7 command line.

Sorry if this all sounds lame, but can anyone help me through this?

thanks, Scott

Comment on Unable to install Tk module on Win7
Select or Download Code
Re: Unable to install Tk module on Win7
by Anonymous Monk on Feb 05, 2013 at 15:06 UTC

    I can't ask my users to install something like cygwin; I'd prefer to have tum run it from the basic win7 command line.

    Use http://www.cavapackager.com/ and give them some slugger.exe and slug.exe to run

    Use http://www.citrusperl.com/ and give them CitrusSlugger Perl with pre-packaged Tk

      Hey citrus perl looks really great, but unfortunately there's no download on SourceForge (though there is a page saying there is one called citrusperl-standard-51601-linux-x86-017.tar.gz). http://sourceforge.net/projects/citrusperl/files/

      The binary that is there seems to contain something else, and none of the batch files in its ./bin work.

Re: Unable to install Tk module on Win7
by marto (Chancellor) on Feb 05, 2013 at 15:10 UTC

    As discussed in your previous thread you need to setup the appropriate tools to install via cpan Tk. You could switch to Strawberry Perl from ActiveState (since you can't find either the module nor build tools packaged), again we've discussed that previously. Have you considered packaging your app so that end users don't have to install modules? See PAR/pp

      Thanks, I think Strawberry works better. I will also look into packaging, that's a good suggestion. Cheers, Scott

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1017200]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2014-11-28 03:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (192 votes), past polls