You are not logged in.

#1 2009-09-01 02:52:02

sriehl
Member
Registered: 2008-12-21
Posts: 8

[ Solved ] Broken Perl

I'm not totally sure what broke my installation of perl. After some googling, I found that the first of the error messages was some times fixed by a re-install of perl, but after a re-install, an uninstall and install, I still can't get it to work right.

When I try and run most perl scripts, I get this error message:

IO object version 1.23_01 does not match bootstrap parameter 1.25 at /usr/lib/perl5/core_perl/DynaLoader.pm line 226.
Compilation failed in require at /usr/lib/perl5/core_perl/IO/Handle.pm line 263.
BEGIN failed--compilation aborted at /usr/lib/perl5/core_perl/IO/Handle.pm line 263.
Compilation failed in require at /usr/lib/perl5/core_perl/IO/Socket.pm line 11.
BEGIN failed--compilation aborted at /usr/lib/perl5/core_perl/IO/Socket.pm line 11.

There are a few more just like that but with different packages (that I have and were working).

I am not sure if this will help, but this is the output of perl -V

sriehl@cobalt ~ $ perl -V
Summary of my perl5 (revision 5 version 10 subversion 0) configuration:
  Platform:
    osname=linux, osvers=2.6.30-arch, archname=x86_64-linux-thread-multi
    uname='linux pavilion64 2.6.30-arch #1 smp preempt sat jul 4 02:24:43 cest 2009 x86_64 intel(r) core(tm)2 quad cpu q6600 @ 2.40ghz genuineintel gnulinux '
    config_args='-des -Dusethreads -Doptimize=-march=x86-64 -mtune=generic -O2 -pipe -Dprefix=/usr -Dinstallprefix=/usr -Dvendorprefix=/usr -Dprivlib=/usr/share/perl5/core_perl -Darchlib=/usr/lib/perl5/core_perl -Dsitelib=/usr/share/perl5/site_perl/5.10.0 -Dsitearch=/usr/lib/perl5/site_perl/5.10.0 -Dvendorlib=/usr/share/perl5/vendor_perl -Dvendorarch=/usr/lib/perl5/vendor_perl -Dotherlibdirs=/usr/lib/perl5/current:/usr/lib/perl5/site_perl/current -Dscriptdir=/usr/bin/perlbin/core -Dsitescript=/usr/bin/perlbin/site -Dvendorscript=/usr/bin/perlbin/vendor -Dman1ext=1perl -Dman3ext=3perl -Dcccdlflags='-fPIC''
    hint=previous, useposix=true, d_sigaction=define
    useithreads=define, usemultiplicity=define
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=define, use64bitall=define, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-march=x86-64 -mtune=generic -O2 -pipe',
    cppflags='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -I/usr/local/include -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
    ccversion='', gccversion='4.4.0 20090630 (prerelease)', gccosandvers=''
    intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc
    perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
    libc=/lib/libc-2.10.1.so, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version='2.10.1'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
    cccdlflags='-fPIC', lddlflags='-shared -march=x86-64 -mtune=generic -O2 -pipe -L/usr/local/lib'


Characteristics of this binary (from libperl): 
  Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV
                        PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP USE_64_BIT_ALL
                        USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES
                        USE_PERLIO USE_REENTRANT_API
  Built under linux
  Compiled at Jul 19 2009 22:04:53
  @INC:
    /usr/lib/perl5/site_perl/5.10.0
    /usr/share/perl5/site_perl/5.10.0
    /usr/lib/perl5/vendor_perl
    /usr/share/perl5/vendor_perl
    /usr/share/perl5/vendor_perl
    /usr/lib/perl5/core_perl
    /usr/share/perl5/core_perl
    /usr/lib/perl5/current
    /usr/lib/perl5/site_perl/current

Last edited by sriehl (2009-09-01 19:09:02)

Offline

#2 2009-09-01 16:43:11

Daenyth
Forum Fellow
From: Boston, MA
Registered: 2008-02-24
Posts: 1,244

Re: [ Solved ] Broken Perl

This looks like you installed a module using cpan, then updated your perl package or a library the module was compiled against. If that's the case, use a proper pacman package for the module in question instead of using cpan.

Edit: The reason a reinstall wouldn't fix it is because pacman has no knowledge of the files installed via cpan, so they would remain on the system.

Last edited by Daenyth (2009-09-01 16:49:30)

Offline

#3 2009-09-01 19:08:49

sriehl
Member
Registered: 2008-12-21
Posts: 8

Re: [ Solved ] Broken Perl

Thanks for your reply, I got it fixed.

Offline

#4 2009-09-23 07:29:48

peque
Member
From: Denmark - Møn
Registered: 2005-06-26
Posts: 441

Re: [ Solved ] Broken Perl

Normal good behavior is to write the solution ( I'm not thsat good either)
But now I'm running into the same prioblem with XMLTV - suddenly I'm getting this warning:

WARNING: Parser barfed while processing channel Hallmark date 2009-09-26 (empty result?) URL: http://www.dr.dk/tjenester/programoversigt/DBService.ashx/getSchedule?channel_source_url=dr%2Edk%2Fexternal%2Fritzau%2Fchannel%2Fhlk&broadcastDate=2009-09-26&random=0.771072219361905
:[]}
desc element: Wide character in print at /usr/lib/perl5/core_perl/IO/Handle.pm line 403.
credits element: Wide character in print at /usr/lib/perl5/core_perl/IO/Handle.pm line 403.
desc element: Wide character in print at /usr/lib/perl5/core_perl/IO/Handle.pm line 403.
desc element: Wide character in print at /usr/lib/perl5/core_perl/IO/Handle.pm line 403.
desc element: Wide character in print at /usr/lib/perl5/core_perl/IO/Handle.pm line 403.
desc element: Wide character in print at /usr/lib/perl5/core_perl/IO/Handle.pm line 403.
title element: Wide character in print at /usr/lib/perl5/core_perl/IO/Handle.pm line 403.
desc element: Wide character in print at /usr/lib/perl5/core_perl/IO/Handle.pm line 403.
title element: Wide character in print at /usr/lib/perl5/core_perl/IO/Handle.pm line 403.
desc element: Wide character in print at /usr/lib/perl5/core_perl/IO/Handle.pm line 403.
desc element: Wide character in print at /usr/lib/perl5/core_perl/IO/Handle.pm line 403.
desc element: Wide character in print at /usr/lib/perl5/core_perl/IO/Handle.pm line 403

The question here is also - that my Chars are wrong, I'm normally running da_DK.utf8 - but looking at the grabbed data It look like this:

Den danske dyrlge Christina Jespersen arbejder til dagligt p en helt almindelig dyreklinik i Frederikssund, men Christina har ogs en mission i Grkenland. Hun og sygeplejersken Vibeke Lyngaa bruger en stor del af deres liv p at redde herrelse hunde p den grske  Skiathos. Mange af hundene lever en kummerlig tilvrelse som gadehunde, og flere af dem har vret udsat for vold og mishandling.
Christina og Vibeke srger for, at de grske hunde kommer under behandling. Nogle m aflives, men andre fr chancen for en ny tilvrelse i Danmark. Her venter en rkke danske familier p at give hundene et nyt og bedre hjem. Vi mder Helle Hasseris og Michael Jrgensen fra Greve, der sammen med deres datter Julie spndt venter p at f en af hundene hjem.

How can I make this rigth - so it'll look fine and shows the rigth characters!
TIA

Per


Just getting better .... All the time

Offline

Board footer

Powered by FluxBB