Hong Zheng

Little Problems of Perl

Hong Zheng / 2019-02-01


undefined symbol: Perl_Gthr_key_ptr

How to solve the problem of “symbol lookup error: /home/zhengh42/perl5/lib/perl5/x86_64-linux-thread-multi/auto/Clone/Clone.so: undefined symbol: Perl_Gthr_key_ptr”?

My specific solution:

Look at PERL5LIB environment variable: perl -V Or in ~/.bash_rc

Then reset the PERL5LIB variable: unset PERL5LIB

Install perl packages locally

% cpan
cpan> o conf makepl_arg INSTALL_BASE=/mydir/perl
cpan> o conf commit
cpan> install themodule