[l2h] Problem with 'pnmcrop'

Shigeharu TAKENO shige at iee.niit.ac.jp
Wed Nov 8 12:57:21 CET 2006


shige 11/08 2006
----------------

Alan Fry <ajf at afco.demon.co.uk> wrote:

> 'configure' results in one error as follows:
> 
>         checking for pnmcrop... /usr/local/netpbm/bin/pnmcrop
>         This  for /usr/local/netpbm/bin/pnmcrop is not recognisable.no
>         Warning: Will not be able to generate images due to above failure
>         Hint: Get netpbm version 1mar1994p1 (the p1 is important!) to fix this
>         error, or later versions (v9.15+) from  sourceforge.net .
=====
> The version of 'netpbm' is 10.26.33 which is certainly later than  
> v9.15, and so far as I can see that early version is no longer  
> available at sourceforge.

config/config.pl of the current version of l2h may fail to 
recognize netpbm-10.XX.YY. Please try to use the following patch:

----- From here -----
--- config/config.pl.ORG	Fri Nov  3 20:55:08 2006
+++ config/config.pl	Fri Nov  3 20:49:01 2006
@@ -1288,6 +1288,8 @@
     my $vers = '';
     $msg = $msg || $err;
     if ($msg =~ /(^|\s*)Version.*\s([\d\.]+)\s*([\n\r]|$)/is) { $vers = $2; }
+    # shige 11/03 2006
+    if ($vers =~ /(\d+\.){2}/) { $vers =~ s/(\d+\.\d+)\.\S+/$1/; }
     if ($vers =~ /^199/) {
 	# try left crop
 	&checking('if pnmcrop can crop from one direction');
@@ -1435,6 +1437,8 @@
     $msg = $msg || $err;
     my $vers = '';
     if ($msg =~ /(^|\s*)Version.*\s([\d\.]+)\s*([\n\r]|$)/is) { $vers = $2; }
+    # shige 11/03 2006
+    if ($vers =~ /(\d+\.){2}/) { $vers =~ s/(\d+\.\d+)\.\S+/$1/; }
     if ($vers =~ /^199/) {
 	&checking('if ppmtogif can make transparent GIFs');
 	# '-h' is an invalid option. Nevertheless it forces ppmtogif to output a
----- To here -----

+========================================================+
 Shigeharu TAKENO     NIigata Institute of Technology
                       kashiwazaki,Niigata 945-1195 JAPAN
 shige at iee.niit.ac.jp   TEL(&FAX): +81-257-22-8161
+========================================================+


More information about the latex2html mailing list