Hi Dennis, You should be able to get cpanm by
sudo apt-get install cpanminus Does the version of DBI.pm you get from sudo apt-get install libdbi-perl Work for your needs? You should just be able to install the system package. The build problems you're seeing from cpan are likely related to arm being a less popular platform to build the module source on. Can you share your full build log as an attached file? C.J. On Sat, Jun 29, 2024, 19:09 Dennis German <dger...@real-world-systems.com> wrote: > Thank you very much for your prompt replies. > > 1) platforms: (sorry details were in my original .original email) > 1a) My linux (mint) > > 1b) Raspberry Pi Linux dapi2 5.10.103+ #1529 Tue Mar 8 12:19:18 GMT > *2022* armv6l GNU/Linux; cpan (v2.20) > > After the gcc *warnings:* > > chmod 755 blib/arch/auto/DBI/DBI.so > chmod: cannot access '*blib/arch/auto/DBI/DBI.so': No such file* or > directory > make: *** [Makefile:655: blib/arch/auto/DBI/DBI.so] Error 1 > TIMB/DBI-1.643.tar.gz > /usr/bin/make -- *NOT OK* > > 1b) hosted at goDaddy Linux p3plzcpnl505092.prod.phx3.secureserver.net > 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64 > x86_64 x86_64 GNU/Linux > > After the gcc *warnings:* > > rm -f blib/arch/auto/DBI/DBI.so > gcc -lpthread -shared -Wl,-z,relro -Wl,-z,now > -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -L/usr/local/lib > -fstack-protector-strong DBI.o -o blib/arch/auto/DBI/DBI.so \ > -lperl \ > > > blib (ODD?) > ex > lib > t > chmod 755 blib/arch/auto/DBI/DBI.so > chmod: cannot access '*blib/arch/auto/DBI/DBI.so': No such file* or > directory > make: *** [Makefile:655: blib/arch/auto/DBI/DBI.so] Error 1 > TIMB/DBI-1.643.tar.gz > /usr/bin/make PREFIX=/home/xgmkbck7ggwp/perl/usr > PREFIX=/home/xgmkbck7ggwp/perl/usr -- *NOT OK* > > 1c) raspberry Pi > > *answer*:/home/dgerman > uname -a > Linux answer 6.6.31+rpt-rpi-v7 #1 SMP Raspbian 1:6.6.31-1+rpt1 (*2024*-05-29) > armv7l GNU/Linux > answer:/home/dgerman > cpan > Loading internal logger. Log::Log4perl recommended for better logging > > Many addtional warning "notes' > > ending with > > rm -f blib/arch/auto/DBI/DBI.so > arm-linux-gnueabihf-gcc -shared -L/usr/local/lib > -fstack-protector-strong DBI.o -o blib/arch/auto/DBI/DBI.so \ > \ > > n 29 22:00 blib > n 29 22:00 ex > n 29 22:00 lib > n 29 22:00 t > chmod 755 blib/arch/auto/DBI/DBI.so > /bin/chmod: cannot access 'blib/arch/auto/DBI/DBI.so': No such file or > directory > 'blib/arch/auto/DBI/DBI.so' could not be accessed > make: *** [Makefile:657: blib/arch/auto/DBI/DBI.so] Error 1 > TIMB/DBI-1.643.tar.gz > /usr/bin/make -- NOT OK > > These systems fail in the same manner > > 2) I don't find cpan*m.* > > 3) No tests were run > On 6/29/24 18:48, James E Keenan wrote: > > On 6/29/24 18:22, C.J. Collier wrote: > > > Can you tell us about your environment? On what system are you attempting > to install? Why aren't you using cpanm or your system packages? > > On Sat, Jun 29, 2024, 15:16 Dennis German <dger...@real-world-systems.com > <mailto:dger...@real-world-systems.com> <dger...@real-world-systems.com>> > wrote: > > > > I am attempting to * > * > > *cpan > install DBI* > > results in: > > ... > *In file included from Perl.xs:7: > Perl.xs: In function ‘dbi_get_state’: > DBIXS.h:498:32: *warning*: cast between incompatible function types > from ‘void (*)(PerlInterpreter *, CV *)’ {aka ‘void (*)(struct > interpreter *, struct cv *)’} to ‘dbistate_t ** (*)(PerlInterpreter > *)’ {aka ‘struct dbistate_st ** (*)(struct interpreter *)’} > [-Wcast-function-type] > dbi_state_lval_p = > (_dbi_state_lval_t)CvXSUB(cv); \ > ^ > DBIXS.h:506:27: note: in expansion of macro ‘_DBISTATE_DECLARE_COMMON’ > # define DBISTATE_DECLARE _DBISTATE_DECLARE_COMMON > ^~~~~~~~~~~~~~~~~~~~~~~~ > Perl.xs:13:1: note: in expansion of macro ‘DBISTATE_DECLARE’ > DBISTATE_DECLARE; > ^~~~~~~~~~~~~~~~ > "/usr/bin/perl" "/usr/share/perl5/vendor_perl/ExtUtils/xsubpp" > -typemap '/usr/share/perl5/ExtUtils/typemap' -typemap > '/home/xgmkbck7ggwp/.cpan/build/DBI-1.643-1/typemap' DBI.xs > DBI.xsc > mv DBI.xsc DBI.c* > > Is this a problem on my end? > > > What you have posted simply appears to be warnings emitted by your > C-compiler when 'cpan' is running its 'make' phase. > Behind the scene, what 'cpan' is doing (to over-simplify) is saying: > > $ perl Makefile.PL > $ make > $ make test > $ make install > > Those warnings are being emitted in the 2nd step above. > They are places where the maintainers of DBI should be touching up the > C-level code, but they do not prevent DBI from building. > Did you see any strings with 'error:' in them being emitted during > 'make'? I > f 'make' completes successfully, 'cpan' then invokes 'make test' and 'make > install'. > Did you get any test failures? > > HTH > Jim Keenan > >