Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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/myapp_create.pl model DB DBIC::Schema MyApp::Schema c +reate=static dbi:SQLite:data.sqlite on_connect_do="PRAGMA foreign_key +s = ON"

...as given in the tutorial, I am presented with this helpful(not) error:

Attempt to reload DBIx/Class/Schema/Loader/Base.pm aborted. Compilation failed in require at /usr/lib/perl5/site_perl/5.12.3/DBIx/ +Class/Schema/Loader.pm 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.

Thanks,
Thomas

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/EN.pm line 8. Compilation failed in require at /usr/lib/perl5/site_perl/5.12.3/Strin +g/ToIdentifier/EN.pm line 8. BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.12.3/S +tring/ToIdentifier/EN.pm line 8. Compilation failed in require at /usr/lib/perl5/site_perl/5.12.3/DBIx/ +Class/Schema/Loader/RelBuilder.pm line 16. BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.12.3/D +BIx/Class/Schema/Loader/RelBuilder.pm line 16. Compilation failed in require at /usr/lib/perl5/site_perl/5.12.3/DBIx/ +Class/Schema/Loader/Base.pm line 9. BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.12.3/D +BIx/Class/Schema/Loader/Base.pm 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.

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

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

Title:
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!
  • 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
  • Outside of code tags, you may need to use entities for some characters:
            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?
    Username:
    Password:

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

    How do I use this? | Other CB clients
    Other Users?
    Others avoiding work at the Monastery: (9)
    As of 2014-12-21 12:44 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      Is guessing a good strategy for surviving in the IT business?





      Results (104 votes), past polls