[Solved] Perl issue on Raspberry Pi - Master branch


#1

I have an issue with freash installation of Perl:

root@RpiTestowe:/tmp# perl -MCPAN -e shell
Can't load '/usr/lib/perl5/5.28/auto/Cwd/Cwd.so' for module Cwd: Error relocating /usr/lib/perl5/5.28/auto/Cwd/Cwd.so: Perl_my_cxt_init: symbol not found at /usr/lib/perl5/5.28/XSLoader.pm line 87.
 at /usr/lib/perl5/5.28/Cwd.pm line 71.
Compilation failed in require at /usr/lib/perl5/5.28/File/Spec/Unix.pm line 4.
BEGIN failed--compilation aborted at /usr/lib/perl5/5.28/File/Spec/Unix.pm line 4.
Compilation failed in require at /usr/lib/perl5/5.28/File/Spec.pm line 21.
Compilation failed in require at /usr/lib/perl5/5.28/CPAN.pm line 6.
BEGIN failed--compilation aborted at /usr/lib/perl5/5.28/CPAN.pm line 6.
Compilation failed in require.
BEGIN failed--compilation aborted.

Any idea what could be wrong?

root@RpiTestowe:/tmp# ls -al /usr/lib/perl5/5.28/auto/Cwd/Cwd.so
-rwxr-xr-x    1 root     root         12296 Feb  6 06:39 /usr/lib/perl5/5.28/auto/Cwd/Cwd.so

#2

It’s not a missing file error, there is a symbol missing within xsloader.pm starting from line 87. As to why, I wouldn’t have a clue..

Just checking - you’ve previously installed modules using cpan previously?

Irrelevant to your question but I’m curious - how long does it take for modules that need compiling?


#3

Thanks for answer. It looks like I have issue when some package are included in image (self-compile) and I would like to add some more modules e.g:

................
Configuring perlbase-feature.
Configuring perlbase-dirhandle.
Configuring perlbase-selfloader.
Configuring perlbase-b.
Configuring perlbase-autosplit.
Configuring perlbase-text.
Configuring perlbase-ipc.
Configuring perlbase-ostype.
Configuring perlbase-extutils.
Configuring perlbase-http-tiny.
Configuring perlbase-opcode.
Configuring perlbase-safe.
Configuring perlbase-cpan.
root@RpiTestowe:~# perl -MCPAN -e shell
Can't locate ExtUtils/MakeMaker/version/vpp.pm in @INC (you may need to install the ExtUtils::MakeMaker::version::vpp module) (@INC contains: /usr/lib/perl5/5.28) at (eval 14) line 1.
BEGIN failed--compilation aborted at (eval 14) line 1.
Compilation failed in require at /usr/lib/perl5/5.28/ExtUtils/MakeMaker.pm line 9.
BEGIN failed--compilation aborted at /usr/lib/perl5/5.28/ExtUtils/MakeMaker.pm line 9.
Compilation failed in require at /usr/lib/perl5/5.28/CPAN.pm line 44.
BEGIN failed--compilation aborted at /usr/lib/perl5/5.28/CPAN.pm line 44.
Compilation failed in require.
BEGIN failed--compilation aborted.

#4

You mean you compiled the modules using the sdk/ tool chain from your build machine? If so, that might mean that some of the automake maker modules have resolved to stuff running on your host machine perhaps?


#5

Maybe - I don't know but I will mark the issue as resolved. Thanks again


closed #6

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.