Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??

Hello Monks,

I've been struggling with an issue in Catalyst(although this seems more DBIx::Class related). When I use Catalyst's create helper script, like so...

~/MyApp/$ script/ model DB DBIC::Schema MyApp::Schema c +reate=static dbi:SQLite:data.sqlite on_connect_do="PRAGMA foreign_key +s = ON" given in the tutorial, I am presented with this helpful(not) error:

Attempt to reload DBIx/Class/Schema/Loader/ aborted. Compilation failed in require at /usr/lib/perl5/site_perl/5.12.3/DBIx/ +Class/Schema/ line 307.

An internet search yielded this, but that did not help, and isn't for my system anyways.
As you may have guessed, my Perl version is 5.12.3.
I installed DBIx::Class::Schema::Loader from first the CPAN, then the openSUSE 11.4 repos.

Is there anything I could do to fix this? I'd really like to use DBIC, but I guess I could find a way to make the DBI model work, too.


Update: As it turns out, it seems to go beyond Catalyst. When I run the script dbicdump, without any arguments, I am presented with:

Unicode::UCD: failed to find UnicodeData.txt in /home/thomas/perl5/lib + /usr/lib/perl5/site_perl/5.12.3/i586-linux-thread-multi /usr/lib/per +l5/site_perl/5.12.3 /usr/lib/perl5/vendor_perl/5.12.3/i586-linux-thre +ad-multi /usr/lib/perl5/vendor_perl/5.12.3 /usr/lib/perl5/5.12.3/i586 +-linux-thread-multi /usr/lib/perl5/5.12.3 . at /usr/lib/perl5/site_pe +rl/5.12.3/String/ToIdentifier/ line 8. Compilation failed in require at /usr/lib/perl5/site_perl/5.12.3/Strin +g/ToIdentifier/ line 8. BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.12.3/S +tring/ToIdentifier/ line 8. Compilation failed in require at /usr/lib/perl5/site_perl/5.12.3/DBIx/ +Class/Schema/Loader/ line 16. BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.12.3/D +BIx/Class/Schema/Loader/ line 16. Compilation failed in require at /usr/lib/perl5/site_perl/5.12.3/DBIx/ +Class/Schema/Loader/ line 9. BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.12.3/D +BIx/Class/Schema/Loader/ line 9. Compilation failed in require at /usr/bin/dbicdump line 71.

Unfortunately, none of that means much to me, so I did an internet search for it. And guess what? It's specific to openSUSE 11.4 running Perl 5.12.3. I tried the fix suggested in the first comment, but that seemed to have no effect -- the same error remains.

confess( "I offer no guarantees on my code." );

In reply to DBIx::Class::Schema::Loader "compilation failed" by thomas895

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?

    What's my password?
    Create A New User
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others examining the Monastery: (11)
    As of 2015-11-30 22:30 GMT
    Find Nodes?
      Voting Booth?

      What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

      Results (788 votes), past polls