English 中文(简体)
Cwd.c:可装藏的图书馆和永久图书馆不匹配(硬盘钥匙 0xdb00080,需要0xde00080)
原标题:Cwd.c: loadable library and perl binaries are mismatched (got handshake key 0xdb00080, needed 0xde00080)

在乌班图16.04 LTS升级到18.04 LTS之后,所有Perl模块和pan都停止了工作。 每当我用手稿,就会导致错误。

threads.c: loadable library and Perl binaries are mismatched (got handshake key 0xdb00080, needed 0xde00080)

当我试图开篇大事时,它就显示:

Cwd.c: loadable library and Perl binaries are mismatched (got handshake key 0xdb00080, needed 0xde00080)

我在乌图16.04中安装了“Cwd”、“校对”模块,其中Perl版本为5.22.1,而在乌图18.04中,Perl版本为5.26.1。

我试图删除旧单元,但失败。 我删除了“~/cpan”夹的内容。

PS: Everything works fine in root user. if I run

sudo su
cpan

行之有效。 但是,作为普通用户,我无法操作任何每个单元/文字/文字。

How do I correct the issue? How can I re-install cpan or cpan modules?

我试图重温Perl,这无助于帮助。

sudo apt-get --reinstall install perl
sudo apt-get --reinstall install libcwd-guard-perl

我安装了 c子, c子加,造成同样的错误。

问题回答

为解决问题,可使用以下链接:

https://dev.to/foursixnine/about-perl-and-mismatched-binaries-346l https://metacpan.org/pod/release/DBOOK/App-MigrateModules-0.002/script/perl-migrate-modules

或指挥中:(代替您的每5倍,就我而言是每5倍)。

 mv <perl5> perl5_old
 cpan
 cpan App::MigrateModules
 perl-migrate-modules --from perl5_old /usr/bin/perl

如果每秒5分,通常在ENV变量 PERL5LIB中存在。

我通过以下网站解决了这一问题:https://github.com/Perl/perl5/issues/15861“rel=“nofollow noreferer”https://github.com/Perl/perl5/issues/15861

I ran the command perl -MCPAN -e recompile()

该模块最后运转。

我在使用生物信息工具“BRAKER3”时也遇到了这一问题。

Most of the answers pointing to the clash between the Perl installed by Root and Perl Library installed by user.

在没有根基的情况下,我通过将每一图书馆安装的所有环境变数删除给我的文字,如<代码>PERL5IB,并添加<编码>出口PERL5IB=”/usr/lib/perl5:/usr/ local/lib/perl5”,以及字面使用按地块建造的柏油。

Yanyang, Best.





相关问题
Why does my chdir to a filehandle not work in Perl?

When I try a "chdir" with a filehandle as argument, "chdir" returns 0 and a pwd returns still the same directory. Should that be so? I tried this, because in the documentation to chdir I found: "...

How do I use GetOptions to get the default argument?

I ve read the doc for GetOptions but I can t seem to find what I need... (maybe I am blind) What I want to do is to parse command line like this myperlscript.pl -mode [sth] [inputfile] I can use ...

Object-Oriented Perl constructor syntax and named parameters

I m a little confused about what is going on in Perl constructors. I found these two examples perldoc perlbot. package Foo; #In Perl, the constructor is just a subroutine called new. sub new { #I ...

Where can I find object-oriented Perl tutorials? [closed]

A Google search yields a number of results - but which ones are the best? The Perl site appears to contain two - perlboot and perltoot. I m reading these now, but what else is out there? Note: I ve ...

热门标签