Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

How to resolve error - Base class package "DBIx::Class" is empty

by vedagiri89 (Initiate)
on Jul 05, 2018 at 15:18 UTC ( [id://1217955]=perlquestion: print w/replies, xml ) Need Help??

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 (Bishop) 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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1217955]
Approved by marto
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-04-25 11:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found