Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Perl 5.16 on windows 7 failed to install Template Toolkit

I tried to install Perl 5.16 module 'Template-Toolkit' on windows 7 by using this command in cmd:

C:>ppm install Template-Toolkit

ppm install failed: Can't find any package that provides Template-Toolkit

All other modules I installed (AppConfig, DBI, DBD-mysql, MailTools, GD, Chart, GDGraph, ..) succeeded.

Following this webpage as a guide, they mention (under ActivateState Perl section) that you may not install Perl into a directory that contains a space (eg "C:\Program Files"), because it will break the Template-Toolkit installer. Since I installed Perl directly in 'C:\' -> 'C:\Perl64\', this could not be the case.

Is there a solution for this problem? Or should I use an older version of Perl, mentioned here?

like image 469
user1178560 Avatar asked Nov 27 '12 15:11

user1178560


2 Answers

The only errors in the error log are errors in the documentation (minor encoding issues). The module could be installed safely. Just use cpan to do it. You'll just have to force the installation.

C:\>cpan

cpan> install Template

For me, that runs without issue. (The failing tests are skipped since they're dev-only tests.) If if fails for you and the only failures are the two errors from t/zz-pod-kwalitee.t, you can safely follow up with

cpan> force install Template
like image 92
ikegami Avatar answered Oct 26 '22 23:10

ikegami


According to the ppm template-toolkit page, the build for ActiveState's Perl 5.16 failed (which is why it isn't available).

Your options seem to be:

  • Fix whatever bug is stopping it being built (it looks like it is just a couple of tests on the POD, so it could be an easy fix)
  • Use an older version of ActiveState Perl
  • Use a different distribution of Perl for Windows (such as Strawberry Perl)
  • Use a different operating system (e.g. Ubuntu in a virtual machine)
like image 41
Quentin Avatar answered Oct 26 '22 22:10

Quentin