Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Template::Provider from CPAN

Reply
Thread Tools

Template::Provider from CPAN

 
 
Cyde Weys
Guest
Posts: n/a
 
      09-17-2003
I'm trying to install slashcode, and I'm hitting this annoying error.
I get to the point where I run the bin/install-slashsite part (long
after installing Perl, MySQL, Apache, etc.), and get the following error:

Base class package "Template:rovider" is empty.
(Perhaps you need to 'use' the module which defines that
package first.) at
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Slash/Display/Provider.pm
line 34
BEGIN failed--compilation aborted at
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Slash/Display/Provider.pm
line 34.
Compilation failed in require at
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Slash/Display.pm
line 44.
BEGIN failed--compilation aborted at
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Slash/Display.pm
line 44.
Compilation failed in require at
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Slash/Utility/Access.pm
line 30.
BEGIN failed--compilation aborted at
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Slash/Utility/Access.pm
line 30.
Compilation failed in require at
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Slash/Utility.pm
line 31.
BEGIN failed--compilation aborted at
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Slash/Utility.pm
line 31.
Compilation failed in require at
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Slash/DB/Utility.pm
line 9.
BEGIN failed--compilation aborted at
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Slash/DB/Utility.pm
line 9.
Compilation failed in require at
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Slash/DB.pm line 10.
BEGIN failed--compilation aborted at
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Slash/DB.pm line 10.
Compilation failed in require at bin/install-slashsite line 18.
BEGIN failed--compilation aborted at bin/install-slashsite line 18.


Line 34 of Provider.pm reads:

use base qw(Template:rovider);

However, from CPAN, it says that Template:rovider is installed ... but
when I try to do "test Template:rovider" (after it compiles everything
and blah blah blah) I end up with the following error:

all skipped: XML::XPath v1.0 or later not installed
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/dbi.t 1 1 100.00% 1
9 tests skipped.
Failed 1/90 test scripts, 98.89% okay. 1/2514 subtests failed, 99.96% okay.
make: *** [test_dynamic] Error 29
/usr/bin/make test -- NOT OK

Finding the 1 test script that failed, I see:

------
t/dbi............Use of uninitialized value in concatenation (.) or
string at t/dbi.t line 64.
DBI connect() failed:


Please ensure that your database server is running and that you specified
the correct connection parameters. If necessary, re-run the Makefile.PL
and specify new parameters, or answer 'n' when prompted:

- Do you want to run the DBI tests?

FAILED 1:
t/dbi............FAILED test 1
Failed 1/1 tests, 0.00% okay
------

So the dbi test cannot access my MySQL server ... that's strange. I can
easily get in from the commandline by simply typing mysql.

Also, here's another error I got during the install of the Bundle::Slash
package (specifically DBIx:assword)

##################Note!#########################
If you are not on the machine that will be using
these passwords this will most likely fail.
Now, lets test getDriver() by itself
Finding driver:mysql
Now, lets see if we can make create objects
Trying: <*my virtual name*>
install_driver(mysql) failed: Can't load
'/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi/auto/DBD/mysql/mysql.so'
for module DBD::mysql:
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi/auto/DBD/mysql/mysql.so:
undefined symbol: mysql_ssl_set at
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/DynaLoader.pm line 229.
at (eval 1) line 3
Compilation failed in require at (eval 1) line 3.
Perhaps a required shared library or dll isn't installed where expected
at blib/lib/DBIx/Password.pm line 31
make: *** [test_dynamic] Error 255
/usr/bin/make test -- NOT OK


Could this be the cause? I'm not exactly familiar with all of this CPAN
stuff ...

Anyway, if someone is familiar with the installation of Slashcode, and
could help me out here, that would be great. Frankly I'm in way over my
head and I have no clue what to do from here.


(And FWIW, I'm running RedHat9).

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
FAQ 2.6 What modules and extensions are available for Perl? What is CPAN? What does CPAN/src/... mean? PerlFAQ Server Perl Misc 0 01-24-2011 11:00 PM
on windows 7 / cygwin / perl / cpan - cannot make cpan work SVCitian Perl Misc 1 10-22-2010 03:59 PM
rt.cpan.org, search.cpan.org: why so unuseable? Ben Bullock Perl Misc 12 07-08-2008 12:51 PM
Is there a better way to search CPAN than search.cpan.org? usenet@DavidFilmer.com Perl Misc 5 10-12-2005 04:50 AM
Upgrading to CPAN.pm v1.76 install Bundle::CPAN fails carl d. Perl Misc 1 05-10-2005 09:35 PM



Advertisments