Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

DBIx::Class::Schema is empty

by opensourcer (Monk)
on Jun 20, 2012 at 10:17 UTC ( [id://977284]=perlquestion: print w/replies, xml ) Need Help??

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

Base class package "DBIx::Class::Schema" is empty. (Perhaps you need to 'use' the module which defines that package first.) I'm unable to resolve this error, on development server I don't get any error but on production I get the error.
-Arun

Replies are listed 'Best First'.
Re: DBIx::Class::Schema is empty
by opensourcer (Monk) on Jun 20, 2012 at 10:29 UTC
    Sorry for the confussion, The scripts were unable to find DBIx::Class, corrected the issue by adding path to lib.
Re: DBIx::Class::Schema is empty
by Anonymous Monk on Jun 20, 2012 at 10:29 UTC

    I'm unable to resolve this error,

    What did you try?

      Make sure you set the DBIx::Class path (trying absolute path) in libs
        Hello, I know this is an old post and I am new to the forum, but I was getting a very similar error installing some software packages.
        The solution appears to be to add the absolute directory path into "lib". Is that a particular file or directory?
        Also, I found a directory path that references a schema.pm file. Is that the path that needs to be referenced?

        Could you explain exactly what you did to solve this please sir? I'm new to Linux and I'm not guru by any means so I'm unsure as to how to implement your solution.

        Enitially, a user reported a problem running Perl scripts, shown below:

        Can't locate XML/Simple.pm in @INC (@INC contains: /usr/local/lib/per +l5 /usr/local/share/perl5 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl5 /usr/share/perl5 /usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thre +ad-multi /usr/local/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl /usr/lib/perl5/site_perl .) at clingdb.pl l +ine 3.

        After some Google and other forum searches, I found a solution by installing XML::Simple

         cpan install XML::Simple

        After which, he said he's now receiving the error above:

        Base class package "DBIx::Class::Schema" is empty. (Perhaps you need to 'use' the module which defines that package f +irst, or make that module available in @INC (@INC contains: /usr/local/l +ib/perl5 /usr/local/share/perl5 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl5 /usr/share/perl5 /usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thre +ad-multi /usr/local/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl /usr/lib/perl5/site_perl .). at Clingdb/Schema.pm line 9 BEGIN failed--compilation aborted at Clingdb/Schema.pm line 9. Compilation failed in require at clingdb.pl line 5. BEGIN failed--compilation aborted at clingdb.pl line 5.

        Thank you again for your time. I really appreciate it :)

Log In?
Username:
Password:

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

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

    No recent polls found