[l2h] Re: l2h and recent netpbm

Shigeharu TAKENO shige@iee.niit.ac.jp
Wed, 10 Jul 2002 20:37:42 +0900 (JST)


shige 07/10 2002
----------------

> I've installed l2h 2002-1 with netpbm 10.2 on a redhat 7.2 system
> and am having ugly problems with graphics. In particular, pstoimg
> is calling pnmcrop in ways that cause errors (e.g. "option --left
> requires an argument"). 

config/config.pl in current l2h does not support Netpbm-10.X. 
Please try:

*** config/config.pl.ORG       Wed Jul 10 20:16:10 2002
--- config/config.pl   Wed Jul 10 20:21:22 2002
***************
*** 1274,1281 ****
  #             $pnmcrop .= ' -sides ';
                $newcfg{'PNMCROPOPT'} = ' -sides ';
            }
!       }
!       $pnmcrop .= ' -verbose ' if ($sub_vers > 10);
        print "\n$pnmcrop";
        $msg = 'there is nothing to crop'; $stat = '';
      } else {
--- 1274,1281 ----
  #             $pnmcrop .= ' -sides ';
                $newcfg{'PNMCROPOPT'} = ' -sides ';
            }
!       } else { $newcfg{'PNMCROPOPT'} = ' -sides '; }
!       $pnmcrop .= ' -verbose ' if ($sub_vers > 10 || $vers >= 10);
        print "\n$pnmcrop";
        $msg = 'there is nothing to crop'; $stat = '';
      } else {

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