Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plenv migrate-modules may break List::Util(and cpanm) #184

Open
worthmine opened this issue May 13, 2024 · 0 comments
Open

plenv migrate-modules may break List::Util(and cpanm) #184

worthmine opened this issue May 13, 2024 · 0 comments

Comments

@worthmine
Copy link

worthmine commented May 13, 2024

I found a bug and how to fix itself.

The reproducible environment is bellow:

plenv install 5.24.4
plenv install 5.34.3
plenv local 5.24.4
plenv install-cpanm
#install some modules with cpanm

plenv migrate-modules 5.24.4 5.34.3
plenv local 5.34.3
cpanm Another::Module

it provides the error like bellow:

Can't load '/home/*/perl5/lib/perl5/amd64-freebsd/auto/List/Util/Util.so' for module List::Util: /home/*/perl5/lib/perl5/amd64-freebsd/auto/List/Util/Util.so: Undefined symbol "PL_sv_immortals" at /home/*/.plenv/versions/5.24.4/lib/perl5/5.24.4/XSLoader.pm line 96.

even after I tried

cpanm --reinstall List::Util

it errors

ListUtil.c: loadable library and perl binaries are mismatched (got handshake key 0xf680000, needed 0xf480000)

I don't know how to fix it fundamentally, but the most simple way is bellow:

plenv local --unset
plenv uninstall 5.34.3
plenv install 5.34.3
plenv local 5.34.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant