Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Installing Template::Toolkit on Windows

by BrowserUk (Pope)
on Feb 27, 2013 at 17:00 UTC ( #1020925=note: print w/replies, xml ) Need Help??


in reply to Installing Template::Toolkit on Windows

Hm. I issued the following sequence of commands into a command window:

cd \perl64\packages wget "http://search.cpan.org/CPAN/authors/id/A/AB/ABW/Template-Toolkit +-2.24.tar.gz" gunzip Template-Toolkit-2.24.tar.gz tar -xvf Template-Toolkit-2.24.tar cd Template-Toolkit-2.24 makefile to build the XS Stash module? [y] y to use the XS Stash by default? [y] y nmake nmake test ... All tests successful. Files=89, Tests=2762, 26 wallclock secs ( 0.70 usr + 0.23 sys = 0.94 + CPU) Result: PASS C:\PROGRA~2\MICROS~1.0\VC\Bin\amd64\nmake.exe test -nologo 'No tests defined for Template::Stash::XS extension.' cd ..

The results after less than 2 minutes was T::T downloaded, unpacked, compiled, tested and ready to install.

ASPerl 5.10.1 & MSVC.

Full console log of the above:


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Replies are listed 'Best First'.
Re^2: Installing Template::Toolkit on Windows
by davies (Parson) on Feb 27, 2013 at 17:59 UTC

    Oh, I wasted LOTS of time doing this. :-) I think, had I known how to do it, it wouldn't have taken much longer than your 2 minutes. The two 20 minute waits (and I didn't time them accurately - that's an estimate) were for the installation of the C compiler and ?make utility. Without that the computer time would have been much shorter. But even the 40 minutes for that was only a small part of the time I wasted not knowing what to do and googling frenetically. That's why I thought it might be worth putting up the OP in case someone found themselves in the same boat.

    I'm interested to see you using wget instead of the two tools I'd heard of previously. Is this documented anywhere? Especially, is there any documentation on which to use and when? As I stated in the OP, the only ones I've ever tried are PPM and the CPAN shell (I've also used Debian's apt-get on the Pi).

    Regards,

    John Davies

      I'm interested to see you using wget instead of the two tools I'd heard of previously. Is this documented anywhere?

      wget is just a GNU download tool -- you can get a binary version for Windows from here -- but you can download the tar.gz using any other tool or method including just clicking the link on the CPAN website for whatever package you want.

      I long ago gave up on CPAN(P/plus/whatever) because they:

      • insist downloading stuff that I neither need nor want;

        Like some ancient version of nmake that hasn't worked for building perl modules since pre-5.6.1 days. If then. It is well-known that it is a pointless exercise to install that; but still the CPAN shell will insist on downloading it even when there is a working, up-to-date version already installed and available via the path! Shear bloody-mindedness.

      • Insist on installing alternative compiler & tool chain that don't work, rather than using the already installed compiler that does, simply because the broken algorithm they use to look for the compiler -- that does everything but the sensible thing of searching the path -- cannot find it.
      • Insist on trying to provide a broken emulation of *nix command line history functionality; when my shell has its own history facility -- that works -- built-in.
      • Insist on fucking with my carefully chosen shell color settings in order to try and highlight random bits of output in random colors according to no discernible pattern; and rendering the output entire unreadable in the process.

      With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1020925]
help
Chatterbox?
[atcroft]: (And Feb. is the odd case, because it is 28, unless it is a year divisible by 4, or if it is divisible by both 100 and 400 (at which point it is 29).)
[james28909]: i know but scroll through your calendar on your computer.
[james28909]: i thiught you were going to say make both hands into a fist and puch yourself in the face
[atcroft]: .oO(Sorry, I probably should have said take two normal hands....)
[atcroft]: james28909: No, unless you are a politician, I wouldn't say that (and even if you are, I still probably wouldn't say that).
[james28909]: i mean how hard can it be? its just subtracting days lol
[atcroft]: james28909: What about October 5, 1582?
[stevieb]: atcroft: "Make both hands into fists..."... is something my Ma taught me in our native lang, but I was to ignorant and young to pay attention. Thanks for that :)
[atcroft]: stevieb: Sad to say that I only recently learned that particular trick, but I have since found it very useful.... :)
[james28909]: ill be back with a solution eventually

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2017-04-29 04:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (531 votes). Check out past polls.