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

I'm using this line "use base qw/DBIx::Class/;" in pm file. While calling this file, throws error as "Base class package "DBIx::Class" is empty.\n (Perhaps you need to 'use' the module which defines that package first,\n or make that module available in @INC " Please help me get resolved.
  • Comment on How to resolve error - Base class package "DBIx::Class" is empty

Replies are listed 'Best First'.
Re: How to resolve error - Base class package "DBIx::Class" is empty
by hippo (Archbishop) on Jul 05, 2018 at 15:52 UTC

    Here is an SSCCE which works for me. Try it and see how you get on.

    use strict; use warnings; package Foo; use DBIx::Class; use base 'DBIx::Class'; 1;
Re: How to resolve error - Base class package "DBIx::Class" is empty
by Your Mother (Archbishop) on Jul 05, 2018 at 15:24 UTC

    Show the rest of your code for your package. Also note you're using an old style that will likely require something like this to be in your package–

    __PACKAGE__->load_components("Core");
Re: How to resolve error - Base class package "DBIx::Class" is empty
by AnomalousMonk (Archbishop) on Jul 05, 2018 at 17:58 UTC

    Perhaps see also the newer parent module.


    Give a man a fish:  <%-{-{-{-<

Re: How to resolve error - Base class package "DBIx::Class" is empty
by vedagiri89 (Initiate) on Jul 27, 2018 at 09:30 UTC

    I got solution about the issue was in centos support dbx module not installed..thanks