Errors installing DBIx::Class

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Errors installing DBIx::Class

Dave Howorth
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@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
     .


_______________________________________________
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
Searchable Archive: http://www.grokbase.com/group/dbix-class@...
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Errors installing DBIx::Class

Dave Howorth


On 2016-01-22 12:11, Dave Howorth wrote:
> 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@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.

I should add that I have installed cpanm into my perlbrew so I don't
think it's seeing the wrong environment.

_______________________________________________
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
Searchable Archive: http://www.grokbase.com/group/dbix-class@...
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Errors installing DBIx::Class

Dave Howorth
In reply to this post by Dave Howorth


On 2016-01-22 12:24, Peter Rabbitson wrote:
> On 01/22/2016 01:11 PM, Dave Howorth wrote:
>>
>> because its perl is too old (5.10.1) for some of my code
>
> 5.10.1 is hardly "too old" :)

My usual fault is using perls and other software that are excruciatingly
old, but in this case I'm porting a program that has use feature
'unicode_strings' and I'd rather not reopen the festering sore that led
to its use. :)

> This is a harmless error, just ignore it. The test itself has been
> relegated to xt/ as it gives user-inactionable false negatives sometimes.

OK good.

>> #   Failed test 'Cascading delete on Ordered has_many works'
>> #   at t/60core.t line 362.
> I am not sure - never seen this one. Perhaps try an older DBD::SQLite
> first (e.g. 1.37). It seems to be related to the ordering changes...

Thanks, that works. It seems to be
https://rt.cpan.org/Public/Bug/Display.html?id=96499

Thanks again for all your help, my program is now running on the new
machine.

Cheers, Dave

_______________________________________________
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
Searchable Archive: http://www.grokbase.com/group/dbix-class@...
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Errors installing DBIx::Class

Dave Howorth


On 2016-01-22 14:18, Peter Rabbitson wrote:
> On 01/22/2016 03:15 PM, Dave Howorth wrote:
>
>> Thanks, that works. It seems to be
>> https://rt.cpan.org/Public/Bug/Display.html?id=96499
>
> Hah... indeed. I *completely* blanked out on this one, weird. Must be
> getting younger or something ;)

Yes, I've noticed that policemen have been getting younger for a few
years, but now I've noticed that even dead people are getting younger ...

_______________________________________________
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
Searchable Archive: http://www.grokbase.com/group/dbix-class@...
Loading...