Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

DBIx::Class::Schema is empty

by opensourcer (Monk)
on Jun 20, 2012 at 10:17 UTC ( #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

Comment on DBIx::Class::Schema is empty
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

        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
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? | Other CB clients
Other Users?
Others chanting in the Monastery: (16)
As of 2014-09-16 12:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (18 votes), past polls