Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Data::Dumper version

by maidou (Initiate)
on Jan 09, 2012 at 11:25 UTC ( #946990=perlquestion: print w/ replies, xml ) Need Help??
maidou has asked for the wisdom of the Perl Monks concerning the following question:

Hi,guys. I'm a beginner. When I updated perl to v.5.14.2 today, I met with a problem 'Data::Dumper object version 2.130_02 does not match $Data::Dumper::VERSION 2.131 at /usr/lib/perl5/core_perl/DynaLoader.pm line 213.' What does it mean? I have also upgraded the Data::Dumper module, the Database was generated on Mon, 09 Jan 2012 07:12:51 GMT Data::Dumper is up to date (2.131). What may be the reason of this problem? How can I solve this problem? Thank you.

Comment on Data::Dumper version
Re: Data::Dumper version
by Anonymous Monk on Jan 09, 2012 at 11:38 UTC
    You did not upgrade correctly, see explanation below. To repair this, you need to run the extra build steps. Use a CPAN client to automate this. Force the installation if necessary.

    You are getting the error message because the compiled XS part does not match the Perl part of the modules. You upgraded one, but not the other. It is wrong to just copy .pm files around.

      You refer to a perldoc page ("extra build steps") but clarification of exactly what to do with that information would be helpful for posterity . . . if not for the OP then for the next Monk.
      The OP obviously did use the `cpan` client, as you see they mentioned "Database was generated on...." and "Data::Dumper is up to date".
Re: Data::Dumper version
by ansh batra (Friar) on Jan 09, 2012 at 12:50 UTC
    try editting /usr/lib/perl5/core_perl/DynaLoader.pm
    replace 2.131 to 2.130_02
    i am not sure but i have used this hack before and it worked for me
Re: Data::Dumper version
by Jenda (Abbot) on Jan 09, 2012 at 15:51 UTC

    Seems the updated Data::Dumper saved some of its files into a different directory than the old copied one so you ended up with loading .pm from one version and the compiled part (file extension is operating system dependent) from the old version. You'll have to hunt down and delete the old version.

    Jenda
    Enoch was right!
    Enjoy the last years of Rome.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://946990]
Approved by Corion
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2014-09-02 02:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (18 votes), past polls