Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re^2: DBIx::Class::Schema is empty

by opensourcer (Monk)
on Jun 20, 2012 at 13:37 UTC ( #977344=note: print w/replies, xml ) Need Help??

in reply to Re: DBIx::Class::Schema is empty
in thread DBIx::Class::Schema is empty

Make sure you set the DBIx::Class path (trying absolute path) in libs

Replies are listed 'Best First'.
Re^3: DBIx::Class::Schema is empty
by aisheikh (Initiate) on Apr 19, 2018 at 18:14 UTC
    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 file. Is that the path that needs to be referenced?
Re^3: DBIx::Class::Schema is empty
by goldenjosh (Initiate) on Jun 28, 2012 at 13:10 UTC

    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/ 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 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/ line 9 BEGIN failed--compilation aborted at Clingdb/ line 9. Compilation failed in require at line 5. BEGIN failed--compilation aborted at line 5.

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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://977344]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2018-05-26 06:56 GMT
Find Nodes?
    Voting Booth?