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

Fellow monks,

I'm at a loss with this. I'm trying to install Font::TTF on a win32 system. Going through the install instructions from the tutorial, I've done perl Makefile.PL and that worked fine. When I go to do the nmake, I get a error that says the command line is too long.

This is the first time I've encountered this while installing a module. Anybody got any ideas how to get around this?

There is no emoticon for what I'm feeling now.

Replies are listed 'Best First'.
Re: Need help installing Font::TTF
by crazyinsomniac (Prior) on Oct 20, 2002 at 06:49 UTC
    I ran into that once as well. After googling I have found that what folk'll do to get around that is write the command line out to a file, and then read it in.

    ExtUtils::MakeMaker might be able to do that, but I know that in the perl source, in the win32 nmake makefile it's done pretty much by hand, since the makefile was written by hand (or so it appears).

    Anyway, I just downloaded Font-TTF-0.32 and did "the make dance" without encountering the problem you describe.

    I then looked a little closer, and noticed a "setup.bat", which used "pmake.bat", so I ran that, and still things went well.

    I'm guessing you were using some older version.

    I'm on Win2000 here.

    update:

    perl - C:\WINDOWS\Fonts\arial.ttf C:\WINNT\Fonts\arial.ttf use strict; use Font::TTF::Font; use Data::Dumper; for $ARGV(@ARGV) { my $f = Font::TTF::Font->open($ARGV) or warn "couldn't open $ARGV $!" and next; # print Dumper $f; print "say what now? ", $f->{'hmtx'}->read->{'advance'}[0x0020]; } __END__ couldn't open C:\WINDOWS\Fonts\arial.ttf No such file or directory at +- line 6. say what now? 1196

     
    ______crazyinsomniac_____________________________
    Of all the things I've lost, I miss my mind the most.
    perl -e "$q=$_;map({chr unpack qq;H*;,$_}split(q;;,q*H*));print;$q/$q;"

Re: Need help installing Font::TTF
by true (Pilgrim) on Oct 20, 2002 at 06:00 UTC
    I successfully install on Win2k ActivePerl.
    I used ppm to do it.

    p.s. just in case someone doesn't
    know how to run the Perl Package Manager:
    in Win32 command prompt type "ppm"

    update:
    then type "install Font-TTF"
    If the module is available
    it will install.
    Type "help" for more options.
    ppm is cpan equiv for Win32.
    There is also a ppm3 available with some
    ActiveState Perl versions.
    me, i've always used ppm.