in reply to Problem installing PDF::Template

*sighs* It's been a long time since I heard of someone running into this problem. In the Makefile.PL, you'll see a line setting $pm_filter. It looks something like:
my $pm_filter = $use_unicode ? q{perl -pi -e "s!UNI_YES ! !g;s!UNI_NO !\\#!g"} : q{perl -pi -e "s!UNI_NO ! !g;s!UNI_YES !\\#!g"};
Change it to:
my $pm_filter = $use_unicode ? q{perl -pi -e 's!UNI_YES ! !g;s!UNI_NO !\\#!g'} : q{perl -pi -e 's!UNI_NO ! !g;s!UNI_YES !\\#!g'};
and everything should work fine. The change was the double-quotes to single-quotes.

My criteria for good software:
  1. Does it work?
  2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?

Replies are listed 'Best First'.
Re^2: Problem installing PDF::Template
by mhearse (Chaplain) on Jan 07, 2008 at 23:27 UTC
    I'm getting:
    String found where operator expected at -e line 1, near "s!UNI_YES !#! +g''" syntax error at -e line 1, near "'perl -pi -e 's!UNI_NO ! !g" syntax error at -e line 1, near "s!UNI_YES !#!g''" Execution of -e aborted due to compilation errors. make: *** [pm_to_blib] Error 255
      Sorry. You'll need to fix the quotes a bit more. There are some single-quotes that need to be converted to double-quotes around the regex.

      My criteria for good software:
      1. Does it work?
      2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?