Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

UTF8 module

by bigup401 (Pilgrim)
on Mar 03, 2020 at 17:27 UTC ( #11113718=perlquestion: print w/replies, xml ) Need Help??

bigup401 has asked for the wisdom of the Perl Monks concerning the following question:

i dont know why all old script nolonger work which has module UTF8

is it a bug in new update or what

am getting this error

Can't locate loadable object for module Unicode::UTF8 in @INC (@INC co +ntains: . /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/pe +rl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/sh +are/perl5) at Unicode/UTF8.pm line 18 BEGIN failed--compilation aborted at Unicode/UTF8.pm line 18. Compilation failed in require at JSON/Create/PP.pm line 57. BEGIN failed--compilation aborted at JSON/Create/PP.pm line 57. Compilation failed in require at JSON/Create.pm line 37. Compilation failed in require at snd.pl line 7. BEGIN failed--compilation aborted at index.pl line 7.

Replies are listed 'Best First'.
Re: UTF8 module
by bliako (Parson) on Mar 03, 2020 at 18:22 UTC

    Simples: Re-install the module.

    It has XS dependencies which need to be recompiled because most likely your perl was upgraded / perl libraries have changed.

    Give this a try: cpan -f -i Unicode::UTF8 or cpanm --reinstall Unicode::UTF8 . But that does not re-install any dependencies, so keep reinstalling if you encounter more problems till the cows come home. The best way is to re-install all modules every time your perl version changes. Typical setting : you are using linux, you installed Perl using the OS package manager. Then you installed this module using cpanm? . You or your system upgraded Perl but the module installed by you was not. Best practice: use your package manager to install Perls and modules (and it goes without saying that if you are in Linux/OSX let the system Perl alone and use perlbrew to install your own Perl and its modules.

    bliako

Re: UTF8 module
by 1nickt (Abbot) on Mar 03, 2020 at 18:24 UTC

    Yes, "Can't locate loadable object for module" usually indicates that some system upgrade b0rked your XS-dependent module. Have you tried reinstalling the module?


    The way forward always starts with a minimal test.
Re: UTF8 module
by marto (Archbishop) on Mar 04, 2020 at 09:56 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://11113718]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (7)
As of 2020-07-08 08:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?