Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Installing the Tk module

by perl_seeker (Scribe)
on Aug 08, 2009 at 08:08 UTC ( #787002=perlquestion: print w/ replies, xml ) Need Help??
perl_seeker has asked for the wisdom of the Perl Monks concerning the following question:

Hi

I have Activeperl 5.10.0.1005 installed on WinXP. I have
the Perl/Tk module from CPAN(Tk-804.028).

Tried to install the Tk module using ppm from the command prompt(ppm install Tk), but it does not work, since there
is no internet connection. This worked on another machine which had a net connection

Then tried using the following:
perl Makefile.PL nmake nmake test nmake install
doesn't work either

how do i install perl Tk manually?

Instructions for a dummy would be appreciated(which dir to runt the commands in, where to get nmake, etc).
Thanx in advance.

Comment on Installing the Tk module
Download Code
Re: Installing the Tk module
by vinoth.ree (Parson) on Aug 08, 2009 at 08:17 UTC
      Really ree? A reference to some tiny blog now?

        I could not understand.

      This is what i get:
      c:\perl\Tk-804.028>perl Makefile.pl can't open perl script "Makefile.pl" No such file or directory
        Perhaps try: perl Makefile.PL with an uppercase PL

        Just a stab in the dark, I have no idea if Windows is case-sensitive or not but that would explain the error you're getting.
        Maybe the directory is empty, or maybe its just Makefile.pl that is missing ... why did you delete it? :D
        It's not a good idea to be trying to build perl modules within the C:\perl tree. Normally you would unpack Tk-804.028.tar.gz to some location that is not within your C:\perl tree - for example, C:\perl_builds (the actual name is not important), then 'cd' to C:\perl_builds\Tk-804.028 and then run 'perl Makefile.PL'. Hopefully, this time, the Makefile.PL would be found.

        If you could then successfully run 'ppm install MinGW', you would then be able to complete the Tk build by running:
        dmake test dmake install
        But you don't have an internet connection ... so you won't be able to successfully run 'ppm install MinGW'. Here's a quote from a post (by jand, on another list), that should tell you what's needed:

        <start quote>
        > The problem is that my main computer is not direct connected to the
        > internet, so I cant issue a 'ppm install MinGW' command.
        > Does anyone know of a step by step manual installation/configuration
        > sequence that one may follow to manually install MinGW to an ActivePerl
        > computer? In a way where it will be able to install modules that require
        > 'xs' code compilation? Where I can download all required files from my
        > internet-connected PC, then copy them to my non-internet-connected PC, and
        > manually do this installation and configuration.

        You need to download the following 4 files:

        http://ppm4.activestate.com/MSWin32-x86/5.10/1006/-/--/MINGW/dmake-4.11.20080107.ppd
        http://ppm4.activestate.com/MSWin32-x86/5.10/1006/-/--/MINGW/dmake-4.11.20080107.tar.gz
        http://ppm4.activestate.com/MSWin32-x86/5.10/1006/-/--/MINGW/MinGW-5.1.4.1.ppd
        http://ppm4.activestate.com/MSWin32-x86/5.10/1006/-/--/MINGW/MinGW-5.1.4.1.tar.gz

        Put all of them into a single directory on the target computer and install them (dmake fist, followed by MinGW):

        ppm install dmake-4.11.20080107.ppd
        ppm install MinGW-5.1.4.1.ppd
        Don't worry about the download URL above; these PPM packages will install correctly into any ActivePerl 5.8.8 build 818 and later and all 5.10 versions. As usual, latest released ActivePerl versions recommended.

        Make sure you have C:\Perl\site\bin in your PATH in addition to the regular C:\Perl\bin (the installer should have done this for you automatically). You need to use "dmake", not "make" or "nmake" with MinGW
        <end quote>

        Cheers,
        Rob
        UPDATE: In general terms, it's not strictly true that you need to use dmake with MinGW - I think you *could* use nmake if you have nmake - but for the particular case that jand was referring to, nmake is not available, so dmake *had* to be used.
Re: Installing the Tk module
by Anonymous Monk on Aug 08, 2009 at 08:37 UTC
Re: Installing the Tk module
by marto (Chancellor) on Aug 08, 2009 at 09:20 UTC

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (11)
As of 2014-09-22 16:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (198 votes), past polls