Bonjour à tous,
Tout d'abord, je tiens à préciser que je n'ai aucune connaissance en Perl, ni en PostGreSQL. Mais j'en ai besoin afin d'installer DaviCal. J'ai suivi le tutoriel d'nstallation de DaviCal sous Centos mais j'ai un problème avec DBD-Pg.
Pour l'installer, j'ai utilisé la commande suivante :
perl -MCPAN -e 'install DBD:g'
j'obtiens :
J'ai essayé d'installer DBD:g avec DBD-Pg-2.18.1.tar.gz et aussi avec yum. Mais j'obtiens toujours l'erreur suivante lorsque je veux créer ma base :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45 CPAN: Storable loaded ok CPAN: LWP::UserAgent loaded ok Fetching with LWP: ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz LWP failed with code[500] message[LWP::Protocol::MyFTP: connect: timeout] Fetching with Net::FTP: ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz Trying with "/usr/bin/links -source" to get ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz ELinks: Receive timeout System call "/usr/bin/links -source "ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz" > /root/.cpan/sources/authors/01mailrc.txt" returned status 1 (wstat 256) Warning: expected file [/root/.cpan/sources/authors/01mailrc.txt.gz] doesn't exist Trying with "/usr/bin/wget -O -" to get ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz --2011-11-15 09:12:15-- ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz => `-' Resolving ftp.perl.org... 195.220.53.232 Connecting to ftp.perl.org|195.220.53.232|:21... System call "/usr/bin/wget -O - "ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz" > /root/.cpan/sources/authors/01mailrc.txt" returned status 0 (wstat 2) Warning: expected file [/root/.cpan/sources/authors/01mailrc.txt.gz] doesn't exist Issuing "/usr/kerberos/bin/ftp -n" Not connected. Local directory now /root/.cpan/sources/authors Not connected. Not connected. Not connected. Not connected. Not connected. Not connected. Bad luck... Still failed! Can't access URL ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz. Please check, if the URLs I found in your configuration file () are valid. The urllist can be edited. E.g. with 'o conf urllist push ftp://myurl/' Could not fetch authors/01mailrc.txt.gz Fetching with LWP: ftp://ftp.perl.org/pub/CPAN/modules/02packages.details.txt.gz
su postgres -c /usr/share/davical/dba/create-database.s
j'obtiens :
Si vous voyez ce qui peut clocher ? Merci.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 install_driver(Pg) failed: Can't locate version.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .) at /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/DBD/Pg.pm line 20. BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/DBD/Pg.pm line 20. Compilation failed in require at (eval 7) line 3. Perhaps a module that DBD::Pg requires hasn't been fully installed at /usr/share/davical/dba/update-davical-database line 244 * * * * ERROR * * * * The database administration utility failed. This may be due to database permissions for the davical_dba user, or because the Perl DBD::Pg or YAML libraries are not available. Check that your pg_hba.conf allows the davical_dba user to connect to the database (and make sure you've reloaded PostgreSQL since changing that). Also see: http://wiki.davical.org/w/Install_Errors/No_Perl_YAML
Partager