Template::Provider from CPAN

C

Cyde Weys

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::provider" 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::provider);

However, from CPAN, it says that Template::provider is installed ... but
when I try to do "test Template::provider" (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::password)

##################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).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,011
Latest member
AjaUqq1950

Latest Threads

Top