LINUX.ORG.RU

/usr/bin/ld: невозможно найти -lgdbm - Почему? Где его взять? Убунту

 , ,


0

1

В Убунте, пытаюсь установить модуль для Перл. Команда:

sudo cpan -i install B::C

В начале, бодренько выкладывает мне кучу инфы что всё ничтяк. А потом начинается:

/usr/bin/ld: невозможно найти -lgdbm
/usr/bin/ld: невозможно найти -lgdbm_compat
/usr/bin/ld: невозможно найти -ldb

Как это победить? Спасибо.



Последнее исправление: kompospec (всего исправлений: 2)

Ответ на: комментарий от annulen

А можно я сюда простыню повешу? Сил моих уже нет. Неделю ставлю или больше.

Итак. Простыня:

sudo cpan -i install B::C
Reading '/root/.cpan/Metadata'
  Database was generated on Wed, 08 Dec 2021 00:17:03 GMT
CPAN: Module::CoreList loaded ok (v5.20190522)
install is up to date (0.01).
Running install for module 'B::C'
CPAN: Digest::SHA loaded ok (v6.02)
CPAN: Compress::Zlib loaded ok (v2.084)
Checksum for /root/.cpan/sources/authors/id/R/RU/RURBAN/B-C-1.57.tar.gz ok
CPAN: YAML loaded ok (v1.30)
CPAN: CPAN::Meta::Requirements loaded ok (v2.140)
CPAN: Parse::CPAN::Meta loaded ok (v2.150010)
CPAN: CPAN::Meta loaded ok (v2.150010)
Configuring R/RU/RURBAN/B-C-1.57.tar.gz with Makefile.PL
Warning:
  Perl handling of new unicode identifiers - package and symbol names - 
  without proper TR39 handling is considered a security risc and is not fully supported.
  See http://websec.github.io/unicode-security-guide/

  Check your code for syntax spoofs, confusables, strip \0 from package names.
  Enable use warnings 'syscalls'.
Warning: Unsupported perl version 5.030000
  Perl5 broke Carp for the compiler with 5.26 with a dynamic _fetch_sub()
  Either use an earlier Carp (<1.42) or check the cperl patches, replacing it
  with a simple version check.
Checking if your kit is complete...
Looks good
Writing MYMETA.yml and MYMETA.json
Writing MYMETA.yml and MYMETA.json
Empty %B::C::Config::Config at lib/B/C.pm line 22.
Generating a Unix-style Makefile
Writing Makefile for B::C
Writing MYMETA.yml and MYMETA.json
  RURBAN/B-C-1.57.tar.gz
  /usr/bin/perl Makefile.PL INSTALLDIRS=site -- OK
Running make for R/RU/RURBAN/B-C-1.57.tar.gz
"/usr/bin/perl" bytecode.pl
cp lib/B/C.pm blib/lib/B/C.pm
cp lib/B/Bytecode.pm blib/lib/B/Bytecode.pm
cp lib/B/CC.pm blib/lib/B/CC.pm
cp lib/B/Assembler.pm blib/lib/B/Assembler.pm
cp lib/B/Bblock.pm blib/lib/B/Bblock.pm
cp lib/B/Disassembler.pm blib/lib/B/Disassembler.pm
cp lib/B/Bytecode56.pm blib/lib/B/Bytecode56.pm
cp lib/B/Asmdata.pm blib/lib/B/Asmdata.pm
cp perloptree.pod blib/lib/B/perloptree.pod
cp lib/B/C/Config.pm blib/lib/B/C/Config.pm
cp lib/B/Stackobj.pm blib/lib/B/Stackobj.pm
cp perlcompile.pod blib/lib/B/perlcompile.pod
make[1]: вход в каталог «/root/.cpan/build/B-C-1.57-9/ByteLoader»
cp ByteLoader.pm ../blib/lib/ByteLoader.pm
cp BcVersions.pod ../blib/lib/BcVersions.pod
Running Mkbootstrap for ByteLoader ()
chmod 644 "ByteLoader.bs"
"/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- ByteLoader.bs ../blib/arch/auto/ByteLoader/ByteLoader.bs 644
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.12\" -DXS_VERSION=\"0.12\" -fPIC "-I/usr/lib/x86_64-linux-gnu/perl/5.30/CORE"   byterun.c
"/usr/bin/perl" "/usr/share/perl/5.30.0/ExtUtils/xsubpp" -noprototypes -typemap '/usr/share/perl/5.30/ExtUtils/typemap'  ByteLoader.xs > ByteLoader.xsc
mv ByteLoader.xsc ByteLoader.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.12\" -DXS_VERSION=\"0.12\" -fPIC "-I/usr/lib/x86_64-linux-gnu/perl/5.30/CORE"   ByteLoader.c
rm -f ../blib/arch/auto/ByteLoader/ByteLoader.so
x86_64-linux-gnu-gcc  -shared -L/usr/local/lib -fstack-protector-strong  byterun.o ByteLoader.o  -o ../blib/arch/auto/ByteLoader/ByteLoader.so  \
      \
  


kompospec
() автор топика
Ответ на: комментарий от kompospec

А простыня вся не вешается. В конце это:

t/issue96.t ....... ok   
t/issue97.t ....... ok   
t/issue98.t ....... skipped: perl5.22 broke ByteLoader
t/manifest.t ...... skipped: requires a git checkout and a unix for git and diff
t/modules.t ....... # -O3 --staticxs ok
# scanning installed modules
# Unsupported Carp version 1.50 >= 1.42
t/modules.t ....... 37/40 # c
# pass   7 /   7 (100.0%)
# fail   0 /   7 (0.0%)
# todo   0 /   0 ()
# skip   3 /  10 (30.0% not installed)
t/modules.t ....... ok     
t/o.t ............. ok   
t/perldoc.t ....... ok   
t/sigs.t .......... 2/4 Warning: Label not found at compile time for "last GETFILE"
Warning: Label not found at compile time for "last GETFILE"
t/sigs.t .......... ok   
t/stash.t ......... # got = main,PerlIO,warnings,Exporter,DB,constant,mro,Carp,re,Regexp
# (after sorting)
# got = Carp constant DB Exporter main mro PerlIO re Regexp warnings
t/stash.t ......... 1/4 # (after perlio censorings)
# got = Carp constant DB Exporter main mro re Regexp warnings
# (after platform censorings)
# got = Carp constant DB Exporter main mro re Regexp warnings
t/stash.t ......... ok   
t/stashes.t ....... ok   
t/z_pod.t ......... skipped: Test::Pod 1.00 required for testing POD

Test Summary Report
-------------------
t/issue169.t    (Wstat: 0 Tests: 3 Failed: 0)
  TODO passed:   2-3
t/issue24.t     (Wstat: 0 Tests: 3 Failed: 0)
  TODO passed:   2-3
t/issue301.t    (Wstat: 0 Tests: 2 Failed: 0)
  TODO passed:   2
t/issue306.t    (Wstat: 0 Tests: 4 Failed: 0)
  TODO passed:   1-4
t/issue39.t     (Wstat: 0 Tests: 1 Failed: 0)
  TODO passed:   1
t/issue42.t     (Wstat: 0 Tests: 1 Failed: 0)
  TODO passed:   1
t/issue48.t     (Wstat: 0 Tests: 1 Failed: 0)
  TODO passed:   1
t/issue50.t     (Wstat: 0 Tests: 1 Failed: 0)
  TODO passed:   1
t/issue81.t     (Wstat: 0 Tests: 3 Failed: 0)
  TODO passed:   3
t/issue90.t     (Wstat: 0 Tests: 15 Failed: 0)
  TODO passed:   2
t/issue93.t     (Wstat: 0 Tests: 9 Failed: 0)
  TODO passed:   1, 7
t/issue95.t     (Wstat: 512 Tests: 5 Failed: 2)
  Failed tests:  2, 4
  TODO passed:   5
  Non-zero exit status: 2
Files=117, Tests=786, 4792 wallclock secs ( 0.65 usr  0.31 sys + 4498.84 cusr 121.52 csys = 4621.32 CPU)
Result: FAIL
Failed 1/117 test programs. 2/786 subtests failed.
make: *** [Makefile:1189: test_dynamic] Ошибка 255
  RURBAN/B-C-1.57.tar.gz
  make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
  reports RURBAN/B-C-1.57.tar.gz

kompospec
() автор топика
Ответ на: комментарий от kompospec

Места. Где мне кажется что есть ошибки:

t/cc_o1.t ......... skipped: Only if -d .git
t/cc_o2.t ......... skipped: Only if -d .git
t/e_perlcc.t ...... 67/87 ERROR Invalid bytecode: bad magic (want 0x43424c50 PLBC or 0x434a4c50 PLJC, got 0x2f202123) at pcc.plc line 1.
t/e_perlcc.t ...... ok     
t/issue105.t ...... ok   

...
...
...

t/issue201.t ...... skipped: Only if -d .git
t/issue203.t ...... skipped: Only if -d .git
t/issue206.t ...... ok   
t/issue208.t ...... ok   
t/issue211.t ...... skipped: under harness
t/issue212.t ...... ok   
t/issue219.t ...... ok   
t/issue220.t ...... ok   
t/issue229.t ...... skipped: Only for author

...
...
...

t/issue29.t ....... 1/2 Can't locate object method "ix" via package "0" (perhaps you forgot to load "0"?) at blib/lib/B/Bytecode.pm line 1017.
CHECK failed--call queue aborted.
t/issue29.t ....... ok   
t/issue293.t ...... skipped: Coro required for testing issue #293
t/issue301.t ...... ok   
t/issue305.t ...... skipped: No Encode support yet with v5.26
t/issue306.t ...... ok   
t/issue308.t ...... ok   
t/issue31.t ....... ok   
t/issue312.t ...... ok   
t/issue318.t ...... 1/3 Warning: Label not found at compile time for "last LOOP"
t/issue318.t ...... ok   


kompospec
() автор топика
Последнее исправление: kompospec (всего исправлений: 1)
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.