j’ai fais les exports en fr_FR.UTF-8 çà fonctionne. Merci encore @Verner !
Merci, regardez… pour infos :
root@mail:/home/orj/perl-5.38.0# make test
[...]
Failed 1 test out of 2518, 99.96% okay.
run/locale.t
make: *** [makefile:825: test] Error 1
L'erreur lors du test perl sur le fichier locale.t
root@mail:/home/orj/perl-5.38.0/t# perl run/locale.t
# locales available: C C.UTF-8 POSIX fr_FR.utf8
ok 1 - /il matching of [bracketed] doesn't skip POSIX class if fails individ char
ok 2 - /l matching of [bracketed] doesn't skip non-first POSIX class
# using non-C locale 'fr_FR.utf8'
ok 3 - retrieving current non-C LC_NUMERIC doesn't give 'C'
ok 4 - retrieving current non-C LC_ALL doesn't give 'C'
ok 5 - no locales where LC_NUMERIC breaks
ok 6 - LC_NUMERIC without environment nor setlocale() has no effect in any locale
ok 7 # skip no UTF-8 locale available where LC_NUMERIC radix isn't ASCII
# using the 'fr_FR.utf8' locale for LC_NUMERIC tests
ok 8 - format() does not look at LC_NUMERIC without 'use locale'
ok 9 - format() looks at LC_NUMERIC with 'use locale'
ok 10 - localeconv() looks at LC_NUMERIC with and without 'use locale'
ok 11 - format() does not look at LC_NUMERIC with 'use locale qw(:collate :characters :collate :ctype :monetary :time)'
ok 12 - format() looks at LC_NUMERIC with 'use locale'
ok 13 - format() looks at LC_NUMERIC with 'use locale ":!collate"'
ok 14 - format() looks at LC_NUMERIC with 'use locale ":not_collate"'
ok 15 - format() looks at LC_NUMERIC with 'use locale ":!characters"'
ok 16 - format() looks at LC_NUMERIC with 'use locale ":not_characters"'
ok 17 - format() looks at LC_NUMERIC with 'use locale ":!collate"'
ok 18 - format() looks at LC_NUMERIC with 'use locale ":not_collate"'
ok 19 - format() looks at LC_NUMERIC with 'use locale ":!ctype"'
ok 20 - format() looks at LC_NUMERIC with 'use locale ":not_ctype"'
ok 21 - format() looks at LC_NUMERIC with 'use locale ":!monetary"'
ok 22 - format() looks at LC_NUMERIC with 'use locale ":not_monetary"'
ok 23 - format() looks at LC_NUMERIC with 'use locale ":!time"'
ok 24 - format() looks at LC_NUMERIC with 'use locale ":not_time"'
ok 25 - format() looks at LC_NUMERIC with 'use locale ":numeric"'
ok 26 - too late to look at the locale at write() time
ok 27 - too late to ignore the locale at write() time
ok 28 - version does not clobber version
ok 29 - version does not clobber version (via eval)
ok 30 - sprintf() and printf() look at LC_NUMERIC regardless of constant folding
ok 31 - Uses the above test to verify that on Windows the system default locale has lower priority than LC_NUMERIC
ok 32 - LANG is used if LC_ALL, LC_NUMERIC are invalid
not ok 33 - C locale is used if LC_ALL, LC_NUMERIC, LANG are invalid
# To see details change this .t, do not close STDERR
ok 34 - No compile error on v-strings when setting the locale to non-dot radix at compile time when default environment has non-dot radix
ok 35 - Radix print properly in locale scope, and without
ok 36 - Can do math when radix is a comma
ok 37 # skip Perl not compiled with 'useithreads'
ok 38 - POSIX::strtod() uses underlying locale
ok 39 - In setting complicated invalid LC_ALL, final individ category doesn't need a ';'
ok 40 - In setting complicated valid LC_ALL, final individ category doesn't need a ';'
ok 41 # skip didn't find a suitable locale
ok 42 - check that setlocale overrides startup
ok 43 - check that illegal startup environment falls back
1..43
root@mail:/home/orj/perl-5.38.0/t#
Après les exports configurés :
root@mail:/home/orj/perl-5.38.0# echo $LC_ALL
root@mail:/home/orj/perl-5.38.0# echo $LANG
fr_FR.UTF-8
root@mail:/home/orj/perl-5.38.0/t# export LANGUAGE=fr_FR.UTF-8
root@mail:/home/orj/perl-5.38.0/t# export LC_ALL=fr_FR.UTF-8
root@mail:/home/orj/perl-5.38.0/t# export LANG=fr_FR.UTF-8
root@mail:/home/orj/perl-5.38.0/t# export LC_CTYPE=fr_FR.UTF-8
root@mail:/home/orj/perl-5.38.0/t#
root@mail:/home/orj/perl-5.38.0/t# perl run/locale.t
ok 1 - /il matching of [bracketed] doesn't skip POSIX class if fails individ char
ok 2 - /l matching of [bracketed] doesn't skip non-first POSIX class
# using non-C locale 'aa_DJ'
ok 3 - retrieving current non-C LC_NUMERIC doesn't give 'C'
ok 4 - retrieving current non-C LC_ALL doesn't give 'C'
ok 5 - no locales where LC_NUMERIC breaks
ok 6 - LC_NUMERIC without environment nor setlocale() has no effect in any locale
ok 7 - UTF-8 locale 'ps_AF' with non-ASCII radix is marked UTF-8
# using the 'agr_PE' locale for LC_NUMERIC tests
ok 8 - format() does not look at LC_NUMERIC without 'use locale'
ok 9 - format() looks at LC_NUMERIC with 'use locale'
ok 10 - localeconv() looks at LC_NUMERIC with and without 'use locale'
ok 11 - format() does not look at LC_NUMERIC with 'use locale qw(:collate :characters :collate :ctype :monetary :time)'
ok 12 - format() looks at LC_NUMERIC with 'use locale'
ok 13 - format() looks at LC_NUMERIC with 'use locale ":!collate"'
ok 14 - format() looks at LC_NUMERIC with 'use locale ":not_collate"'
ok 15 - format() looks at LC_NUMERIC with 'use locale ":!characters"'
ok 16 - format() looks at LC_NUMERIC with 'use locale ":not_characters"'
ok 17 - format() looks at LC_NUMERIC with 'use locale ":!collate"'
ok 18 - format() looks at LC_NUMERIC with 'use locale ":not_collate"'
ok 19 - format() looks at LC_NUMERIC with 'use locale ":!ctype"'
ok 20 - format() looks at LC_NUMERIC with 'use locale ":not_ctype"'
ok 21 - format() looks at LC_NUMERIC with 'use locale ":!monetary"'
ok 22 - format() looks at LC_NUMERIC with 'use locale ":not_monetary"'
ok 23 - format() looks at LC_NUMERIC with 'use locale ":!time"'
ok 24 - format() looks at LC_NUMERIC with 'use locale ":not_time"'
ok 25 - format() looks at LC_NUMERIC with 'use locale ":numeric"'
ok 26 - too late to look at the locale at write() time
ok 27 - too late to ignore the locale at write() time
ok 28 - version does not clobber version
ok 29 - version does not clobber version (via eval)
ok 30 - sprintf() and printf() look at LC_NUMERIC regardless of constant folding
ok 31 - Uses the above test to verify that on Windows the system default locale has lower priority than LC_NUMERIC
ok 32 - LANG is used if LC_ALL, LC_NUMERIC are invalid
ok 33 - C locale is used if LC_ALL, LC_NUMERIC, LANG are invalid
ok 34 - No compile error on v-strings when setting the locale to non-dot radix at compile time when default environment has non-dot radix
ok 35 - Radix print properly in locale scope, and without
ok 36 - Can do math when radix is a comma
ok 37 # skip Perl not compiled with 'useithreads'
ok 38 - POSIX::strtod() uses underlying locale
ok 39 - In setting complicated invalid LC_ALL, final individ category doesn't need a ';'
ok 40 - In setting complicated valid LC_ALL, final individ category doesn't need a ';'
ok 41 - check for failed assertion
ok 42 - check that setlocale overrides startup
ok 43 - check that illegal startup environment falls back
1..43
root@mail:/home/orj/perl-5.38.0/t#
J’ai réussis à remettre le système avec perl fonctionnel, parfait.
root@mail:/home/orj# perl -MCPAN -e upgrade
Reading '/root/.cpan/Metadata'
Database was generated on Wed, 09 Aug 2023 11:53:58 GMT
Package namespace installed latest in CPAN file
Archive::Tar 2.40 3.02 BINGOS/Archive-Tar-3.02.tar.gz
CPAN::Meta::Requirements 2.140 2.143 RJBS/CPAN-Meta-Requirements-2.143.tar.gz
Compress::Raw::Bzip2 2.204_001 2.206 PMQS/Compress-Raw-Bzip2-2.206.tar.gz
Compress::Raw::Zlib 2.204_001 2.206 PMQS/Compress-Raw-Zlib-2.206.tar.gz
ExtUtils::Manifest 1.73 1.75 ETHER/ExtUtils-Manifest-1.75.tar.gz
HTTP::Tiny 0.086 0.088 DAGOLDEN/HTTP-Tiny-0.088.tar.gz
IO::Socket::IP 0.41_01 0.42 PEVANS/IO-Socket-IP-0.42.tar.gz
Math::BigInt 1.999837 1.999839 PJACKLAM/Math-BigInt-1.999839.tar.gz
Math::BigInt::FastCalc 0.5013 0.5014 PJACKLAM/Math-BigInt-FastCalc-0.5014.tar.gz
Module::CoreList 5.20230520 5.20230720 BINGOS/Module-CoreList-5.20230720.tar.gz
Module::Metadata 1.000037 1.000038 ETHER/Module-Metadata-1.000038.tar.gz
Pod::Simple 3.43 3.45 KHW/Pod-Simple-3.45.tar.gz
Socket 2.036 2.037 PEVANS/Socket-2.037.tar.gz
Test::Harness 3.44 3.46 LEONT/Test-Harness-3.46.tar.gz
Test::Simple 1.302194 1.302195 EXODIST/Test-Simple-1.302195.tar.gz
Time::Local 1.30 1.35 DROLSKY/Time-Local-1.35.tar.gz
perlfaq 5.20210520 5.20230701 ETHER/perlfaq-5.20230701.tar.gz
Compress::Zlib 2.204 2.206 PMQS/IO-Compress-2.206.tar.gz
Text::Tabs 2021.0814 2023.0511 ARISTOTLE/Text-Tabs+Wrap-2023.0511.tar.gz
3 installed modules have no parsable version number
(use 'o conf show_unparsable_versions 1' to show them)
[...]
ok is up to date (1.302195).
root@mail:/home/orj#
root@mail:/home/orj# perl -MCPAN -e upgrade
Reading '/root/.cpan/Metadata'
Database was generated on Wed, 09 Aug 2023 11:53:58 GMT
All modules are up to date for /./
3 installed modules have no parsable version number
(use 'o conf show_unparsable_versions 1' to show them)
root@mail:/home/orj#
Et la version perl avec librairie partagée : libperl=libperl.so
(peut-être faire des liens symboliques)
root@mail:/home/orj# perl -V
Summary of my perl5 (revision 5 version 38 subversion 0) configuration:
Platform:
osname=linux
osvers=5.4.0-153-generic
archname=x86_64-linux
uname='linux mail 5.4.0-153-generic #170-ubuntu smp fri jun 16 13:43:31 utc 2023 x86_64 x86_64 x86_64 gnulinux '
config_args='-des -Duseshrplib -Dprefix=/usr'
hint=recommended
useposix=true
d_sigaction=define
useithreads=undef
usemultiplicity=undef
use64bitint=define
use64bitall=define
uselongdouble=undef
usemymalloc=n
default_inc_excludes_dot=define
Compiler:
cc='cc'
ccflags ='-fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
optimize='-O2'
cppflags='-fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include'
ccversion=''
gccversion='9.4.0'
gccosandvers=''
intsize=4
longsize=8
ptrsize=8
doublesize=8
byteorder=12345678
doublekind=3
d_longlong=define
longlongsize=8
d_longdbl=define
longdblsize=16
longdblkind=3
ivtype='long'
ivsize=8
nvtype='double'
nvsize=8
Off_t='off_t'
lseeksize=8
alignbytes=8
prototype=define
Linker and Libraries:
ld='cc'
ldflags =' -fstack-protector-strong -L/usr/local/lib'
libpth=/usr/local/lib /usr/lib/x86_64-linux-gnu /usr/lib /usr/lib64
libs=-lpthread -ldb -ldl -lm -lcrypt -lutil -lc
perllibs=-lpthread -ldl -lm -lcrypt -lutil -lc
libc=libc-2.31.so
so=so
useshrplib=true
libperl=libperl.so
gnulibc_version='2.31'
Dynamic Linking:
dlsrc=dl_dlopen.xs
dlext=so
d_dlsymun=undef
ccdlflags='-Wl,-E -Wl,-rpath,/usr/lib/perl5/5.38.0/x86_64-linux/CORE'
cccdlflags='-fPIC'
lddlflags='-shared -O2 -L/usr/local/lib -fstack-protector-strong'
Characteristics of this binary (from libperl):
Compile-time options:
HAS_LONG_DOUBLE
HAS_STRTOLD
HAS_TIMES
PERLIO_LAYERS
PERL_COPY_ON_WRITE
PERL_DONT_CREATE_GVSV
PERL_HASH_FUNC_SIPHASH13
PERL_HASH_USE_SBOX32
PERL_MALLOC_WRAP
PERL_OP_PARENT
PERL_PRESERVE_IVUV
PERL_USE_SAFE_PUTENV
USE_64_BIT_ALL
USE_64_BIT_INT
USE_LARGE_FILES
USE_LOCALE
USE_LOCALE_COLLATE
USE_LOCALE_CTYPE
USE_LOCALE_NUMERIC
USE_LOCALE_TIME
USE_PERLIO
USE_PERL_ATOF
Built under linux
Compiled at Aug 9 2023 21:31:46
@INC:
/usr/lib/perl5/site_perl/5.38.0/x86_64-linux
/usr/lib/perl5/site_perl/5.38.0
/usr/lib/perl5/5.38.0/x86_64-linux
/usr/lib/perl5/5.38.0
/usr/lib/perl5/site_perl/5.36.1
/usr/lib/perl5/site_perl
root@mail:/home/orj#
Sinon j’ai fais des liens symboliques - je ne sais pas si c’est obligatoire.
root@mail:/home/orj# ln -s /usr/lib/perl5/5.38.0/x86_64-linux/CORE/libperl.so /usr/lib/x86_64-linux-gnu/libperl.so.5.38.0
root@mail:/home/orj# cd /usr/lib/x86_64-linux-gnu/
root@mail:/usr/lib/x86_64-linux-gnu# ln -s libperl.so.5.38.0 libperl.so.5.38
root@mail:/usr/lib/x86_64-linux-gnu# ls -l /usr/lib/x86_64-linux-gnu/libperl*
lrwxrwxrwx 1 root root 17 mai 23 19:17 /usr/lib/x86_64-linux-gnu/libperl.so.5.30 -> libperl.so.5.30.0
-rw-r--r-- 1 root root 3468144 mai 23 19:17 /usr/lib/x86_64-linux-gnu/libperl.so.5.30.0
lrwxrwxrwx 1 root root 17 août 10 01:31 /usr/lib/x86_64-linux-gnu/libperl.so.5.38 -> libperl.so.5.38.0*
lrwxrwxrwx 1 root root 50 août 10 01:30 /usr/lib/x86_64-linux-gnu/libperl.so.5.38.0 -> /usr/lib/perl5/5.38.0/x86_64-linux/CORE/libperl.so*
RienÀVoir.. erreur corrigée
J’en ai une sympat (après make, make test, make install réussis) :
root@mail:/home/orj/perl-5.38.0# perl -V
Undefined subroutine &Config::_V called.
J’adore : perl -V Undefined subroutine - Google Suche. → Environ 0 résultats (0,25 secondes)
root@mail:/home/orj/perl-5.38.0# perl -v
This is perl 5, version 38, subversion 0 (v5.38.0) built for x86_64-linux
Copyright 1987-2023, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at https://www.perl.org/, the Perl Home Page.
root@mail:/home/orj/perl-5.38.0#