Назад | Перейти на главную страницу

Ошибка установки Unicode :: Map8 на Perl 5.26

Я установил новый сервер, и я нахожусь в процессе настройки всех модулей Perl, которые мне нужны. Один из них по какой-то причине не работает:

cpanm Unicode::Map8

Я получил:

cpanm (App::cpanminus) 1.7044 on perl 5.026002 built for x86_64-linux-gnu-thread-multi
Work directory is /root/.cpanm/work/1573486397.15900
You have make /usr/bin/make
You have LWP 6.35
You have /bin/tar: tar (GNU tar) 1.30
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.
You have /usr/bin/unzip
Searching Unicode::Map8 () on cpanmetadb ...
--> Working on Unicode::Map8
Fetching http://www.cpan.org/authors/id/G/GA/GAAS/Unicode-Map8-0.13.tar.gz
-> OK
Unpacking Unicode-Map8-0.13.tar.gz
Entering Unicode-Map8-0.13
Checking configure dependencies from META.yml
Checking if you have ExtUtils::MakeMaker 6.58 ... Yes (7.24)
Configuring Unicode-Map8-0.13
Running Makefile.PL
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Unicode::Map8
Writing MYMETA.yml and MYMETA.json
-> OK
Checking dependencies from MYMETA.json ...
Checking if you have ExtUtils::MakeMaker 0 ... Yes (7.24)
Checking if you have Unicode::String 2 ... Yes (2.10)
Building and testing Unicode-Map8-0.13
cp Map8/maps/EBCDIC-AT-DE.bin blib/lib/Unicode/Map8/maps/EBCDIC-AT-DE.bin
cp Map8/maps/EBCDIC-US.bin blib/lib/Unicode/Map8/maps/EBCDIC-US.bin
cp Map8/maps/EBCDIC-FR.bin blib/lib/Unicode/Map8/maps/EBCDIC-FR.bin
cp Map8/maps/EBCDIC-AT-DE-A.bin blib/lib/Unicode/Map8/maps/EBCDIC-AT-DE-A.bin
cp Map8/maps/CSA_Z243.4-1985-1.bin blib/lib/Unicode/Map8/maps/CSA_Z243.4-1985-1.bin
cp Map8/maps/DEC-MCS.bin blib/lib/Unicode/Map8/maps/DEC-MCS.bin
cp Map8/maps/BS_4730.bin blib/lib/Unicode/Map8/maps/BS_4730.bin
... some more `cp` bits, but just debug
cp Map8/maps/macintosh.bin blib/lib/Unicode/Map8/maps/macintosh.bin
Running Mkbootstrap for Map8 ()
chmod 644 "Map8.bs"
"/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- Map8.bs blib/arch/auto/Unicode/Map8/Map8.bs 644
"/usr/bin/perl" "/usr/share/perl/5.26/ExtUtils/xsubpp"  -typemap '/usr/share/perl/5.26/ExtUtils/typemap' -typemap '/root/.cpanm/work/1573486397.15900/Unicode-Map8-0.13/typemap'  Map8.xs > Map8.xsc
mv Map8.xsc Map8.c
x86_64-linux-gnu-gcc -c   -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g   -DVERSION=\"0.13\" -DXS_VERSION=\"0.13\" -fPIC "-I/usr/lib/x86_64-$
Map8.xs: In function ‘XS_Unicode__Map8_recode8’:
Map8.xs:358:6: warning: implicit declaration of function ‘map8_recode8’; did you mean ‘map8_recode_8’? [-Wimplicit-function-declaration]
      map8_recode8(m1, m2, str, res, len, &rlen);
      ^~~~~~~~~~~~
      map8_recode_8
x86_64-linux-gnu-gcc -c   -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g   -DVERSION=\"0.13\" -DXS_VERSION=\"0.13\" -fPIC "-I/usr/lib/x86_64-$
rm -f blib/arch/auto/Unicode/Map8/Map8.so
x86_64-linux-gnu-gcc  -shared -L/usr/local/lib -fstack-protector-strong Map8.o map8x.o  -o blib/arch/auto/Unicode/Map8/Map8.so  \
      \

chmod 755 blib/arch/auto/Unicode/Map8/Map8.so
cp umap blib/script/umap
"/usr/bin/perl" -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/umap
Manifying 1 pod document
Manifying 1 pod document
"/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- Map8.bs blib/arch/auto/Unicode/Map8/Map8.bs 644
PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/callback.t .. ok
t/compat.t .... ok
t/map8.t ......
No subtests run
t/unistr.t .... ok

Test Summary Report
-------------------
t/map8.t    (Wstat: 139 Tests: 0 Failed: 0)
  Non-zero wait status: 139
  Parse errors: No plan found in TAP output
Files=4, Tests=6,  0 wallclock secs ( 0.02 usr  0.01 sys +  0.06 cusr  0.01 csys =  0.10 CPU)
Result: FAIL
Failed 1/4 test programs. 0/6 subtests failed.
make: *** [Makefile:1200: test_dynamic] Error 255
-> FAIL Installing Unicode::Map8 failed. See /root/.cpanm/work/1573486397.15900/build.log for details. Retry with --force to force install it.

Я использую Perl v5.26.2. Он установлен и отлично работает на Perl v5.22.1.

ОБНОВИТЬ: У меня получилось установить, установив https://debian.pkgs.org/9/debian-main-i386/libunicode-maputf8-perl_1.11-4_all.deb.html :

apt-get -y install libunicode-maputf8-perl 

Что-то должно быть не так с обычным установщиком, так как он определенно не установится для меня