[Dbix-class] Errors installing DBIx::Class

Dave Howorth dhoworth at mrc-lmb.cam.ac.uk
Fri Jan 22 12:11:27 GMT 2016


In the previous thread, Peter suggested I freeze the version of 
DBIx::Class until the code was updated to fix my problem. It's actually 
a new machine so it's not a question of reverting to the previous 
version but of finding a version that will install. I just tried

   cpanm DBIx::Class at 0.08270

Unfortunately it failed the tests as did 0.08200 with similar errors. 
I'd appreciate any thoughts on how to get a working system.

The machine is running Scientific Linux 6, which is new to me, and 
because its perl is too old (5.10.1) for some of my code I'm using 
perlbrew, which is also new to me, to give me 5.22.1, which is also new 
to me. perl -V output at the end of this message. So perhaps I need some 
other patch or to downgrade something else, but what?

Thanks for any help.

The test errors were:

#   Failed test 'DBIx::Class::SQLAHacks::import appears to have entered 
inheritance chain by import into SQL::Abstract'
#   at t/55namespaces_cleaned.t line 146.
# Looks like you failed 1 test of 13975.
t/55namespaces_cleaned.t ............................
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/13975 subtests
         (less 48 skipped subtests: 13926 okay)

#   Failed test 'Cascading delete on Ordered has_many works'
#   at t/60core.t line 362.
# died: DBIx::Class::Exception 
(DBIx::Class::Storage::DBI::_dbh_execute(): DBI Exception: 
DBD::SQLite::st execute failed: UNIQUE constraint failed: track.cd, 
track.position [for Statement "UPDATE track SET position = ? WHERE ( 
trackid = ? )"] at t/60core.t line 362
# )
#   Failed test 'Cascading through has_many top level.'
#   at t/60core.t line 363.
#          got: '3'
#     expected: '0'

#   Failed test 'Cascading through has_many children.'
#   at t/60core.t line 364.
#          got: '3'
#     expected: '0'
# Looks like you failed 3 tests of 123.
t/60core.t ..........................................
Dubious, test returned 3 (wstat 768, 0x300)
Failed 3/123 subtests
         (less 18 skipped subtests: 102 okay)



$ perl -V
Summary of my perl5 (revision 5 version 22 subversion 1) configuration:

   Platform:
     osname=linux, osvers=2.6.32-431.20.3.el6.x86_64, archname=x86_64-linux
     uname='linux scop5.lmb.internal 2.6.32-431.20.3.el6.x86_64 #1 smp 
thu jun 19 14:01:59 cdt 2014 x86_64 x86_64 x86_64 gnulinux '
     config_args='-de 
-Dprefix=/home/dhoworth/perl5/perlbrew/perls/perl-5.22.1 
-Aeval:scriptdir=/home/dhoworth/perl5/perlbrew/perls/perl-5.22.1/bin'
     hint=recommended, useposix=true, d_sigaction=define
     useithreads=undef, usemultiplicity=undef
     use64bitint=define, use64bitall=define, uselongdouble=undef
     usemymalloc=n, bincompat5005=undef
   Compiler:
     cc='cc', ccflags ='-fwrapv -fno-strict-aliasing -pipe 
-fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2',
     optimize='-O2',
     cppflags='-fwrapv -fno-strict-aliasing -pipe -fstack-protector 
-I/usr/local/include'
     ccversion='', gccversion='4.4.7 20120313 (Red Hat 4.4.7-16)', 
gccosandvers=''
     intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678, 
doublekind=3
     d_longlong=define, longlongsize=8, d_longdbl=define, 
longdblsize=16, longdblkind=3
     ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', 
lseeksize=8
     alignbytes=8, prototype=define
   Linker and Libraries:
     ld='cc', ldflags =' -fstack-protector -L/usr/local/lib'
     libpth=/usr/local/lib /usr/lib /lib/../lib64 /usr/lib/../lib64 /lib 
/lib64 /usr/lib64 /usr/local/lib64
     libs=-lpthread -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc
     perllibs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
     libc=libc-2.12.so, so=so, useshrplib=false, libperl=libperl.a
     gnulibc_version='2.12'
   Dynamic Linking:
     dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
     cccdlflags='-fPIC', lddlflags='-shared -O2 -L/usr/local/lib 
-fstack-protector'


Characteristics of this binary (from libperl):
   Compile-time options: HAS_TIMES PERLIO_LAYERS PERL_DONT_CREATE_GVSV
                         PERL_HASH_FUNC_ONE_AT_A_TIME_HARD PERL_MALLOC_WRAP
                         PERL_NEW_COPY_ON_WRITE PERL_PRESERVE_IVUV
                         USE_64_BIT_ALL USE_64_BIT_INT USE_LARGE_FILES
                         USE_LOCALE USE_LOCALE_COLLATE USE_LOCALE_CTYPE
                         USE_LOCALE_NUMERIC USE_LOCALE_TIME USE_PERLIO
                         USE_PERL_ATOF
   Locally applied patches:
         Devel::PatchPerl 1.40
   Built under linux
   Compiled at Jan 18 2016 11:11:04
   %ENV:
     PERL5LIB="/home/dhoworth/progs/modules"
     PERLBREW_BASHRC_VERSION="0.74"
     PERLBREW_HOME="/home/dhoworth/.perlbrew"
PERLBREW_MANPATH="/home/dhoworth/perl5/perlbrew/perls/perl-5.22.1/man"
PERLBREW_PATH="/home/dhoworth/perl5/perlbrew/bin:/home/dhoworth/perl5/perlbrew/perls/perl-5.22.1/bin"
     PERLBREW_PERL="perl-5.22.1"
     PERLBREW_ROOT="/home/dhoworth/perl5/perlbrew"
     PERLBREW_VERSION="0.74"
     PERLDOC_PAGER="vi"
   @INC:
     /home/dhoworth/progs/modules
/home/dhoworth/perl5/perlbrew/perls/perl-5.22.1/lib/site_perl/5.22.1/x86_64-linux
/home/dhoworth/perl5/perlbrew/perls/perl-5.22.1/lib/site_perl/5.22.1
/home/dhoworth/perl5/perlbrew/perls/perl-5.22.1/lib/5.22.1/x86_64-linux
     /home/dhoworth/perl5/perlbrew/perls/perl-5.22.1/lib/5.22.1
     .




More information about the DBIx-Class mailing list