<?xml version="1.0" encoding="windows-1252"?>
<node id="997658" title="DBIx::Class::Schema::Loader &quot;compilation failed&quot;" created="2012-10-07 00:35:47" updated="2012-10-07 00:35:47">
<type id="115">
perlquestion</type>
<author id="925806">
thomas895</author>
<data>
<field name="doctext">
&lt;p&gt;
Hello Monks,&lt;br /&gt;&lt;br /&gt;
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...
&lt;/p&gt;
&lt;code&gt;
~/MyApp/$ script/myapp_create.pl model DB DBIC::Schema MyApp::Schema create=static dbi:SQLite:data.sqlite on_connect_do="PRAGMA foreign_keys = ON"
&lt;/code&gt;
&lt;p&gt;...as given in the &lt;a href="http://search.cpan.org/~zarquon/Catalyst-Manual-5.9004/lib/Catalyst/Manual/Tutorial/03_MoreCatalystBasics.pod#Create_a_Catalyst_View"&gt;tutorial&lt;/a&gt;, I am presented with this helpful(not) error:&lt;/p&gt;
&lt;code&gt;
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.
&lt;/code&gt;
&lt;p&gt;
An internet search yielded [http://freebsd.so14k.com/problems_with_perl_catalyst.shtml|this], but that did not help, and isn't for my system anyways.&lt;br /&gt;
As you may have guessed, my Perl version is 5.12.3.&lt;br /&gt;
I installed [cpan://DBIx::Class::Schema::Loader] from first the CPAN, then the openSUSE 11.4 repos.
&lt;/p&gt;
&lt;p&gt;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.&lt;br /&gt;&lt;br /&gt;
Thanks,&lt;br /&gt;
Thomas
&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Update:&lt;/b&gt; As it turns out, it seems to go beyond Catalyst. When I run the script &lt;code&gt;dbicdump&lt;/code&gt;, without any arguments, I am presented with:&lt;/p&gt;
&lt;code&gt;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/perl5/site_perl/5.12.3 /usr/lib/perl5/vendor_perl/5.12.3/i586-linux-thread-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_perl/5.12.3/String/ToIdentifier/EN.pm line 8.
Compilation failed in require at /usr/lib/perl5/site_perl/5.12.3/String/ToIdentifier/EN.pm line 8.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.12.3/String/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/DBIx/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/DBIx/Class/Schema/Loader/Base.pm line 9.
Compilation failed in require at /usr/bin/dbicdump line 71.
&lt;/code&gt;
&lt;p&gt;Unfortunately, none of that means much to me, so I did an internet search for it. And guess what? &lt;a href="https://bugzilla.novell.com/show_bug.cgi?id=678877"&gt;It's specific to openSUSE 11.4 running Perl 5.12.3.&lt;/a&gt; I tried the fix suggested in the &lt;a href="https://bugzilla.novell.com/show_bug.cgi?id=678877#c0"&gt;first comment&lt;/a&gt;, but that seemed to have no effect -- the same error remains.
&lt;/p&gt;
&lt;div class="pmsig"&gt;&lt;div class="pmsig-925806"&gt;
~[node://thomas895|Thomas]~ &lt;br /&gt;
&lt;code&gt;confess( "I offer no guarantees on my code." );&lt;/code&gt;
&lt;/div&gt;&lt;/div&gt;</field>
</data>
</node>
