PDA

View Full Version : Probleme Perl Postgres


HeadQuaker
08-10-2007, 12:07 PM
Voila mon probleme

./check_pgconn.pl 36.0.0.5
install_driver(Pg) failed: Can't locate DBD/Pg.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at (eval 1) line 3.
Perhaps the DBD::Pg perl module hasn't been fully installed,
or perhaps the capitalisation of 'Pg' isn't right.
Available drivers: DBM, ExampleP, File, Proxy, Sponge, mysql.
at ./check_pgconn.pl line 23


di vous savez comment regler ca :)

DonKiShoot
08-10-2007, 12:10 PM
install le module postgres perl

DBD-Pg

HeadQuaker
08-10-2007, 12:21 PM
il y a une commande pour faire ca ou il faut telecharger puis faire un MakeFile....
?.

julio
08-10-2007, 12:31 PM
je que ca ca devrait marcher


cpan install DBD::pg

HeadQuaker
08-10-2007, 12:46 PM
cpan install DBD::Pg
CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
Database was generated on Fri, 10 Aug 2007 04:48:24 GMT
Warning: Cannot install install, don't know what it is.
Try the command

i /install/

to find objects with matching identifiers.
Running install for module DBD::Pg

The module DBD::Pg isn't available on CPAN.

Either the module has not yet been uploaded to CPAN, or it is
temporary unavailable. Please contact the author to find out
more about the status. Try 'i DBD::Pg'.
srv-xmonitor:/usr/local/nagios/libexec# cpan install DBD::pg
CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
Database was generated on Fri, 10 Aug 2007 04:48:24 GMT
Warning: Cannot install install, don't know what it is.
Try the command

i /install/

to find objects with matching identifiers.
Warning: Cannot install DBD::pg, don't know what it is.
Try the command

i /DBD::pg/

to find objects with matching identifiers.

:(

rom
08-10-2007, 12:53 PM
http://search.cpan.org/search?query=dbd%3A%3Apg&mode=all

# cpan install 'DBD::Pg'
sur ftp://cpan.cict.fr ne pose aucun probleme

DonKiShoot
08-10-2007, 12:54 PM
perl -e -MCPAN

install DBD::Pg

peut-être

HeadQuaker
08-10-2007, 02:16 PM
nno ca fait rien...hum c'est louche sinon je le fais manuellement mais il me demande le :

perl Makefile.PL
Configuring DBD::Pg 1.49
Remember to actually read the README file!
Path to pg_config?

DonKiShoot
08-10-2007, 02:55 PM
Il te manque peut-être des librairies de développement postgres.
Je sèche !