[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

perl woody



Bon, mon problème avec grenouille est un problème d'Install de Perl
sous Woody (sous Patate, ça marche, j'ai testé sur une autre machine)

Je n'arrive pas à faire marcher ça :

#!/usr/bin/perl

use Getopt::Long qw();
my($verbose);
GetOptions("verbose", \$verbose);

Il me balance
Undefined subroutine &main::GetOptions called at ./bonalors.pl line 5.

J'ai

locate GetOptions
/usr/share/perl/5.6.1/auto/Getopt/Long/GetOptions.al

locate Getopt   
/usr/share/man/man3/Getopt::Long.3perl.gz
/usr/share/man/man3/Getopt::Std.3perl.gz
/usr/share/perl/5.6.1/auto/Getopt
/usr/share/perl/5.6.1/auto/Getopt/Long
/usr/share/perl/5.6.1/auto/Getopt/Long/autosplit.ix
/usr/share/perl/5.6.1/auto/Getopt/Long/config.al
/usr/share/perl/5.6.1/auto/Getopt/Long/Configure.al
/usr/share/perl/5.6.1/auto/Getopt/Long/Croak.al
/usr/share/perl/5.6.1/auto/Getopt/Long/FindOption.al
/usr/share/perl/5.6.1/auto/Getopt/Long/GetOptions.al
/usr/share/perl/5.6.1/Getopt
/usr/share/perl/5.6.1/Getopt/Long.pm
/usr/share/perl/5.6.1/Getopt/Long.pod
/usr/share/perl/5.6.1/Getopt/Std.pm
/usr/share/perl5/Debian/Debhelper/Dh_Getopt.pm

Il y a au minimum un problème de chemins, mais j'ai tenté des "ln -s"
pour essayer de comprendre mais ça ne va pas mieux

Apparemment le @INC est 
@INC contains: /usr/local/lib/perl/5.6.1 /usr/local/share/perl/5.6.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.6.1 /usr/share/perl/5.6.1 /usr/local/lib/site_perl /usr/lib/perl5/5.6 /usr/lib/perl5/5.005 .

Que faire ?

Merci d'avance.

Olivier



Reply to: