Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

When i am running one of my perl script. It is getting an error like this.

by Anonymous Monk
on May 11, 2022 at 07:28 UTC ( [id://11143771]=perlquestion: print w/replies, xml ) Need Help??

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

When I am running my perl script I am getting an error like this so anyone can help on my issue.

Can't load '/usr/local/lib64/perl5/auto/XML/CanonicalizeXML/Canonicali +zeXML.so' for module XML::CanonicalizeXML: /usr/local/lib64/perl5/aut +o/XML/CanonicalizeXML/CanonicalizeXML.so: undefined symbol: xmlReallo +c at /usr/local/lib64/perl5/XSLoader.pm line 99. at /usr/local/lib64/perl5/XML/CanonicalizeXML.pm line 55.
  • Comment on When i am running one of my perl script. It is getting an error like this.
  • Download Code

Replies are listed 'Best First'.
Re: When i am running one of my perl script. It is getting an error like this.
by Corion (Patriarch) on May 11, 2022 at 07:41 UTC

    Most likely, you are mixing Perl versions.

    The Perl version you are using to run your script is not the version that was used to install/compile the module as stored under /usr/local/lib64/perl5.

    You need to use the same Perl version for both, installing/compiling modules and for running your script.

    See local::lib and App::perlbrew, and Carmel for maintaining your local Perl installation or alternatively exclusively use the system Perl and the Perl packages provided by your OS vendor.

      But in my system it is showing only one version

      This is perl 5, version 16, subversion 3 (v5.16.3) built for x86_64-li +nux-thread-multi (with 39 registered patches, see perl -V for more detail) Copyright 1987-2012, Larry Wall Perl may be copied only under the terms of either the Artistic License + or the GNU General Public License, which may be found in the Perl 5 source ki +t. Complete documentation for Perl, including FAQ lists, should be found +on this system using "man perl" or "perldoc perl". If you have access to + the Internet, point your browser at http://www.perl.org/, the Perl Home Pa +ge.

        Then how did you install the module XML::CanonicalizeXML? As that module uses libxml2, maybe there is a mismatch between the version of libxml2 that you have installed and the version that the module requires.

        You will have to investigate how you installed the module and its C library prerequisites, and how the test suite of the module runs.

Re: When i am running one of my perl script. It is getting an error like this.
by marto (Cardinal) on May 11, 2022 at 08:02 UTC

    It looks like you didn't do this properly.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-04-23 18:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found