On 2021/05/03 21:51, Jon Fineman wrote:
> For cpan/cpanm I had gotten the same base64 error.
> 
> After moving those two directories and rebooting I was able to run pkg_add 
> and now cpanm. However cpan now gets the below error:
> desktop(~)$: cpan
> Encode.c: loadable library and perl binaries are mismatched (got handshake 
> key 0xb600000, needed 0xec00000)
> desktop(~)$: 

You maybe able to get past this by running cpan like this

  perl -I /usr/libdata/perl5/amd64-openbsd -I /usr/libdata/perl5 `which cpan`

We might be able to tweak things a bit to get some improvements but
fundamentally, if you're installing modules outside of the OS
infrastructure (base OS or packages), there's only so much we can do
to work around such problems.

If you do need to do this it's probably a good idea to use a separate
directory tree (/usr/local should be considered as being under the
control of packages) and set @INC or use "use lib" to pull it in.

Reply via email to