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." );