[koha-Infos] Ubuntu Hardy & koha 3b2: Problème d'installation...

Patrick Gelin patrick.gelin at free.fr
Jeu 4 Déc 11:02:55 CET 2008


> > _______________________________________________
> > Infos mailing list
> > Infos at koha-fr.org
> > http://www.koha-fr.org/mailman/listinfo/infos
> >   
> Bonjour,
> J'ai eu le même soucis sur ma debian. J'ai installé pas mal de lib perl 
> avec aptitude, et finalement ca n'avait pas marché. En utilisant CPAN 
> j'ai résolu le problème. Il te manque probablement des librairies :-).
> Essaye de reinstaller correctement tes librairies.
> Ton make test ne te remonte que ca comme infos? En général il te dit si 
> tu as des libs manquantes ou un prob de version etc...
> 
Pour l'installation des modules perl je suis passé sous root avec la
commande 'sudo su', puis en général j'ai lancé les commandes sous la
forme suivante:

perl -MCPAN -e 'install HTML::Template::Pro'

Mais je viens de voir un autre problème. Dans le 'make test' du
composant cgi, j'ai l'erreur suivante:

t/g4_mysql......................skipped: Couldn't establish connection
with the MySQL server: Can't connect to data source '' because I can't
work out what driver to use (it doesn't seem to contain a 'dbi:driver:'
prefix and the DBI_DRIVER env var is not set) at t/g4_mysql.t line 44

et dans le 'make test' de koha:

t/Labels....................DBD::mysql::db selectrow_array failed: Table
'koha.systempreferences' doesn't exist
at /home/gelinp/build/koha-3.00.00-beta2/blib/PERL_MODULE_DIR/C4/Context.pm line 455.

Je viens de chercher avec google de l'information sur cette variable
DBI_DRIVER, savoir par exemple si je dois faire un export
DBI_DRIVER='mysql' dans mon fichier .bashrc, mais je n'ai rien trouvé.
Enfin presque rien car j'ai quand même trouvé sur Google un fichier
PipeConf.pm qui contiendrai cette information. Mais ce fichier n'existe
pas sur mon système... Ci-dessous le résultat complet des commandes
'make test pour le composant cgi et pour l'application koha.

---------------------------------------
make test - composant CGI
---------------------------------------
root at gelinux:/home/gelinp/build/CGI-Session-4.30# make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/api3_db_file..................ok
t/api3_db_file_freezethaw.......skipped: FreezeThaw not available
t/api3_db_file_storable.........ok
t/api3_db_file_storable_incr....ok
t/api3_file.....................ok
t/api3_file_freezethaw..........skipped: FreezeThaw not available
t/api3_file_freezethaw_incr.....skipped: FreezeThaw not available
t/api3_file_storable............ok
t/api3_file_storable_incr.......ok
t/api3_incr.....................ok
t/api3_obj_store................#Using Storable as object serializer
t/api3_obj_store................ok
t/api3_obj_store_db_file........ok
t/bug21952......................ok
t/bug24285......................ok
t/cgi_simple....................skipped: CGI::Simple not installed, so
skipping related tests.
t/complex_ds....................ok
t/driver_dbi....................ok
t/expire........................ok
t/find..........................ok
t/flush.........................ok
t/g4............................ok
t/g4_dbfile.....................ok
t/g4_dbfile_freezethaw..........skipped: FreezeThaw is NOT available
t/g4_dbfile_storable............ok
t/g4_freezethaw.................skipped: FreezeThaw is NOT available
t/g4_mysql......................skipped: Couldn't establish connection
with the MySQL server: Can't connect to dat                 a source ''
because I can't work out what driver to use (it doesn't seem to contain
a 'dbi:driver:' prefix and the                  DBI_DRIVER env var is
not set) at t/g4_mysql.t line 44
t/g4_mysql_freezethaw...........skipped: FreezeThaw is NOT available
t/g4_mysql_storable.............skipped: Couldn't establish connection
with the MySQL server: Can't connect to dat                 a source ''
because I can't work out what driver to use (it doesn't seem to contain
a 'dbi:driver:' prefix and the                  DBI_DRIVER env var is
not set) at t/g4_mysql_storable.t line 43
t/g4_postgresql.................skipped: DataSource is not known
t/g4_postgresql_freezethaw......skipped: DataSource is not known
t/g4_postgresql_storable........skipped: DataSource is not known
t/g4_sqlite.....................skipped: DBD::SQLite is NOT available
t/g4_sqlite_freezethaw..........skipped: DBD::SQLite is NOT available
t/g4_sqlite_storable............skipped: DBD::SQLite is NOT available
t/g4_storable...................ok
t/header........................ok
t/ip_matches....................ok
t/is_new........................ok
t/load..........................ok
t/name..........................ok
t/parse_dsn.....................ok
t/remote_addr...................ok
t/str2seconds...................ok
t/symlink_db_file...............ok
t/symlink_file..................ok
All tests successful.
Files=45, Tests=648, 21 wallclock secs ( 0.28 usr  0.06 sys +  7.51 cusr
0.45 csys =  8.30 CPU)
Result: PASS

------------------------------------------
make test - application koha
------------------------------------------
root at gelinux:/home/gelinp/build/koha-3.00.00-beta2# make test
PERL_DL_NONLAZY=1
KOHA_CONF=blib/KOHA_CONF_DIR/koha-conf.xml /usr/bin/perl
"-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/PERL_MODULE_DIR',
'blib/arch')" t/*.t
t/Accounts..................ok
t/Amazon....................ok
t/AuthoritiesMarc...........ok
t/Barcodes_PrinterConfig....ok
t/Biblio....................ok
t/Bookfund..................ok
t/Bookseller................ok
t/Boolean...................ok
t/Branch....................ok
t/Breeding..................ok
t/Calendar..................ok
t/Charset...................ok
t/Circulation...............ok
t/Date......................ok
t/Dates.....................1/126 #
#  Testing Legacy Functions: format_date and format_date_in_iso
Illegal date specified (year = 1952, month = 1, day = 00) at t/Dates.t
line 35
Illegal date specified (year = 1952, month = 1, day = 00) at t/Dates.t
line 38
#
# Testing 4 formats.
# Testing no input (defaults):
#
# Testing with valid inputs:
Illegal date specified (year = 1952, month = 1, day = 00) at t/Dates.t
line 57
Illegal date specified (year = 1952, month = 1, day = 00) at t/Dates.t
line 57
Illegal date specified (year = 1952, month = 1, day = 00) at t/Dates.t
line 57
Illegal date specified (year = 1952, month = 1, day = 00) at t/Dates.t
line 57
#
# Testing object independence from class
# done.
t/Dates.....................ok
t/Debug.....................# BEFORE use:     $debug is not defined
t/Debug.....................1/3 # BEFORE use: $cgi_debug is not defined
#  AFTER use:     $debug is 0
#  AFTER use: $cgi_debug is 0
# Done.
t/Debug.....................ok
t/dummy.....................ok
t/Input.....................ok
t/Items.....................ok
t/Koha......................ok
t/Labels....................DBD::mysql::db selectrow_array failed: Table
'koha.systempreferences' doesn't exist
at /home/gelinp/build/koha-3.00.00-beta2/blib/PERL_MODULE_DIR/C4/Context.pm line 455.
t/Labels....................ok
t/Languages.................ok
t/Letters...................ok
t/Log.......................ok
t/Maintainance..............ok
t/Members...................ok
t/NewsChannels..............ok
t/Output....................ok
t/Overdues..................ok
t/Print.....................ok
t/Record....................ok
t/Reserves..................ok
t/Review....................ok
t/Search....................ok
t/Serials...................ok
t/Stats.....................ok
t/Suggestions...............ok
t/Z3950.....................ok
All tests successful.
Files=38, Tests=212, 21 wallclock secs ( 0.20 usr  0.07 sys + 14.54 cusr
1.08 csys = 15.89 CPU)
Result: PASS





Plus d'informations sur la liste de diffusion Infos