Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Problem installing PDF::Template

by mhearse (Chaplain)
on Jan 07, 2008 at 22:52 UTC ( #660964=perlquestion: print w/replies, xml ) Need Help??

mhearse has asked for the wisdom of the Perl Monks concerning the following question:

I'm getting the following error when attempting to install PDF::Template. It's probably simple, but I have mimimal understanding of make files. Can someone offer help?
CPAN.pm: Going to build R/RK/RKINYON/PDF-Template-0.22.tar.gz Checking if your kit is complete... Looks good Writing Makefile for PDF::Template Can't find string terminator "'" anywhere before EOF at -e line 1. /bin/sh: line 1: s!UNI_YES: command not found make: *** [pm_to_blib] Error 127 /usr/bin/make -- NOT OK Running make test Can't test without successful make Running make install make had returned bad status, install seems impossible

Replies are listed 'Best First'.
Re: Problem installing PDF::Template
by dragonchild (Archbishop) on Jan 07, 2008 at 23:03 UTC
    *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?
      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?
Re: Problem installing PDF::Template
by Khen1950fx (Canon) on Jan 08, 2008 at 06:27 UTC
    I think that you have a Unicode problem. Read Rob Kinyon's response to this problem

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2021-01-19 14:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?