Probleme d'installation via ppm or cpan
Résolu
jayzman
Messages postés
46
Date d'inscription
Statut
Membre
Dernière intervention
-
jayzman Messages postés 46 Date d'inscription Statut Membre Dernière intervention -
jayzman Messages postés 46 Date d'inscription Statut Membre Dernière intervention -
bonjour,
j'ai des problèmes pour l'installation de DBI et DBD-mysql,je veut connecter a mon base MySQL et il donne l'erreur suivant:
Peraphs the DBD::mysql perl module hans't been fully installed,or peraphs the capitilisation of 'mysql' isn't rigth.aivalable drivers :CSV ,DBM,ExampleP,File,Gofer, ODBC,Pg,Proxy,SQLite,Sponge,
et quand j'installe le DBD::mysql et DBI via ppm il s'affiche :
Dowloading ActiveState Package Respory Packlist...failed 500 can't connect to ppm4.activestate.com:80
comment je dois faire,je suis coincé .please help me
jayzman,
j'ai des problèmes pour l'installation de DBI et DBD-mysql,je veut connecter a mon base MySQL et il donne l'erreur suivant:
Peraphs the DBD::mysql perl module hans't been fully installed,or peraphs the capitilisation of 'mysql' isn't rigth.aivalable drivers :CSV ,DBM,ExampleP,File,Gofer, ODBC,Pg,Proxy,SQLite,Sponge,
et quand j'installe le DBD::mysql et DBI via ppm il s'affiche :
Dowloading ActiveState Package Respory Packlist...failed 500 can't connect to ppm4.activestate.com:80
comment je dois faire,je suis coincé .please help me
jayzman,
A voir également:
- Probleme d'installation via ppm or cpan
- Or - Guide
- Installation windows 10 sans compte microsoft - Guide
- Installation chromecast - Guide
- Installation clavier arabe - Télécharger - Divers Web & Internet
- Installation calculatrice - Télécharger - Calcul & Conversion
1 réponse
Salut jayzman,
Sous Windows, j'utilise Perl en environnement Cygwin (ni ActiveState, ni Strawberry Perl).
Cela dit, je vois que l'on peut récupérer des paquets sur le site ActiveState https://code.activestate.com/ppm/DBD-mysql/ que l'on peut ensuite installer comme indiqué là : https://docs.activestate.com/activeperl/5.32/#ppmx_files
S'il n'y a pas trop de dépendances, cela peut te dépanner si pour une raison ou une autre ton accès aux dépôts ActiveState ne fonctionne pas.
Tu peux aussi lire ceci sur les notes d'installation de ce module avec ActiveState : https://fastapi.metacpan.org/source/CAPTTOFU/DBD-mysql-2.9007/INSTALL.html#windows qui fait état de problèmes avec PPM 3 et recommande PPM 2. Je ne sais pas si c'est l'origine de ton problème d'accès, c'est une possibilité.
Dal
Sous Windows, j'utilise Perl en environnement Cygwin (ni ActiveState, ni Strawberry Perl).
Cela dit, je vois que l'on peut récupérer des paquets sur le site ActiveState https://code.activestate.com/ppm/DBD-mysql/ que l'on peut ensuite installer comme indiqué là : https://docs.activestate.com/activeperl/5.32/#ppmx_files
S'il n'y a pas trop de dépendances, cela peut te dépanner si pour une raison ou une autre ton accès aux dépôts ActiveState ne fonctionne pas.
Tu peux aussi lire ceci sur les notes d'installation de ce module avec ActiveState : https://fastapi.metacpan.org/source/CAPTTOFU/DBD-mysql-2.9007/INSTALL.html#windows qui fait état de problèmes avec PPM 3 et recommande PPM 2. Je ne sais pas si c'est l'origine de ton problème d'accès, c'est une possibilité.
Dal
Oui mais j'arrive pas a télécharger sur https://code.activestate.com/ppm/DBD-mysql/ il demande d'un login et mot de passe du server,et je ne sais pas,
SET http_proxy=http://username:password@hostname:port
Comme je n'utilise pas ActiveState, j'ai bien peur de ne pas pouvoir te renseigner plus. Je n'ai jamais eu aucun de ces problèmes avec le Perl de Cygwin sous Windows, ni sous Linux,
En ce qui concerne le proxy, ben tu mets ton proxy, si tu en as un. Si tu n'en a pas et que tu as une connexion directe à l'Internet, tu n'as pas besoin de renseigner cela.
Plutôt que de tenter d'accéder à des paquets (auxquels tu sembles ne pas avoir le droit d'accéder), tu pourrais simplement utiliser CPAN pour installer tes modules, ou cpanplus, ou cpanminus, qui sont très faciles à utiliser.
Personnellement, j'aime bien cpanplus, qui est distribué avec Perl depuis 2007 (5.009), qui a plus d'options que cpanminus, tout en restant très simple d'utilisation par rapport au client CPAN brut qui peut être une galère à configurer :
Pour récupérer le module de CPAN et ses dépendances, construire, tester et installer.
Si tu préfères cpanminus, vois : https://metacpan.org/pod/release/MIYAGAWA/App-cpanminus-1.7039/lib/App/cpanminus.pm
Dal
Encore Merci,
Ok je vais l'essayer
jayzman
Et maintenant j'utilise cygwin mais ça ne marche pas pour l'installation du DBI et DBD-mysql,
comment faire,?
il fait des msg d'erreur comme ca:
Fetching with LWP:
http://ftp.nara.wide.ad.jp/pub/CPAN/...details.txt.gz/authors/01mailrc.txt.gz
LWP failed with code[500] message[Can't connect to ftp.nara.wide.ad.jp:80 (Operation now in progress)]
Trying with
/usr/bin/lynx -source
to get
http://ftp.nara.wide.ad.jp/pub/CPAN/...details.txt.gz/authors/01mailrc.txt.gz
Recherche ftp.nara.wide.ad.jp
Connexion HTTP à ftp.nara.wide.ad.jp
Alerte! : Impossible d'établir une connexion à l'hôte distant.
lynx : accès impossible au fichier de départ http://ftp.nara.wide.ad.jp/pub/CPAN/...details.txt.gz/authors/01mailrc.txt.gz
No success, the file that lynx has downloaded is an empty file.
Warning: no success downloading '/home/colombna/.cpan/sources/authors/01mailrc.txt.gz.tmp1808'. Giving up on it.
Trying with
/usr/bin/lynx -source
to get
http://ftp.nara.wide.ad.jp/pub/CPAN/...details.txt.gz/authors/01mailrc.txt.gz
Recherche ftp.nara.wide.ad.jp
Connexion HTTP à ftp.nara.wide.ad.jp
Alerte! : Impossible d'établir une connexion à l'hôte distant.
lynx : accès impossible au fichier de départ http://ftp.nara.wide.ad.jp/pub/CPAN/...details.txt.gz/authors/01mailrc.txt.gz
No success, the file that lynx has downloaded is an empty file.
Warning: no success downloading '/home/colombna/.cpan/sources/authors/01mailrc.txt.gz.tmp1808'. Giving up on it.
No external ftp command available
Fetching with LWP:
http://ftp.nara.wide.ad.jp/pub/CPAN/...details.txt.gz/authors/01mailrc.txt.gz
LWP failed with code[500] message[Can't connect to ftp.nara.wide.ad.jp:80 (Operation now in progress)]
Trying with
/usr/bin/lynx -source
to get
http://ftp.nara.wide.ad.jp/pub/CPAN/...details.txt.gz/authors/01mailrc.txt.gz
Recherche ftp.nara.wide.ad.jp
Connexion HTTP à ftp.nara.wide.ad.jp
Alerte! : Impossible d'établir une connexion à l'hôte distant.
lynx : accès impossible au fichier de départ http://ftp.nara.wide.ad.jp/pub/CPAN/...details.txt.gz/authors/01mailrc.txt.gz
No success, the file that lynx has downloaded is an empty file.
Warning: no success downloading '/home/colombna/.cpan/sources/authors/01mailrc.txt.gz.tmp1808'. Giving up on it.
Trying with
/usr/bin/lynx -source
to get
http://ftp.nara.wide.ad.jp/pub/CPAN/...details.txt.gz/authors/01mailrc.txt.gz
Recherche ftp.nara.wide.ad.jp
Connexion HTTP à ftp.nara.wide.ad.jp
Alerte! : Impossible d'établir une connexion à l'hôte distant.
lynx : accès impossible au fichier de départ http://ftp.nara.wide.ad.jp/pub/CPAN/...details.txt.gz/authors/01mailrc.txt.gz
No success, the file that lynx has downloaded is an empty file.
Warning: no success downloading '/home/colombna/.cpan/sources/authors/01mailrc.txt.gz.tmp1808'. Giving up on it.
No external ftp command available
Please check, if the URLs I found in your configuration file
(http://ftp.nara.wide.ad.jp/pub/CPAN/...details.txt.gz/) 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:
http://ftp.nara.wide.ad.jp/pub/CPAN/...details.txt.gz/authors/01mailrc.txt.gz
LWP failed with code[500] message[Can't connect to ftp.nara.wide.ad.jp:80 (Operation now in progress)]
Trying with
/usr/bin/lynx -source
to get
http://ftp.nara.wide.ad.jp/pub/CPAN/...details.txt.gz/authors/01mailrc.txt.gz
Recherche ftp.nara.wide.ad.jp
Connexion HTTP à ftp.nara.wide.ad.jp
Alerte! : Impossible d'établir une connexion à l'hôte distant.
lynx : accès impossible au fichier de départ http://ftp.nara.wide.ad.jp/pub/CPAN/...details.txt.gz/authors/01mailrc.txt.gz
No success, the file that lynx has downloaded is an empty file.
Warning: no success downloading '/home/colombna/.cpan/sources/authors/01mailrc.txt.gz.tmp1808'. Giving up on it.
Trying with
/usr/bin/lynx -source
to get
http://ftp.nara.wide.ad.jp/pub/CPAN/...details.txt.gz/authors/01mailrc.txt.gz
Recherche ftp.nara.wide.ad.jp
Connexion HTTP à ftp.nara.wide.ad.jp
Alerte! : Impossible d'établir une connexion à l'hôte distant.
lynx : accès impossible au fichier de départ http://ftp.nara.wide.ad.jp/pub/CPAN/...details.txt.gz/authors/01mailrc.txt.gz
No success, the file that lynx has downloaded is an empty file.
Warning: no success downloading '/home/colombna/.cpan/sources/authors/01mailrc.txt.gz.tmp1808'. Giving up on it.
No external ftp command available
Fetching with LWP:
http://ftp.nara.wide.ad.jp/pub/CPAN/...details.txt.gz/authors/01mailrc.txt.gz
LWP failed with code[500] message[Can't connect to ftp.nara.wide.ad.jp:80 (Operation now in progress)]
Trying with
/usr/bin/lynx -source
to get
http://ftp.nara.wide.ad.jp/pub/CPAN/...details.txt.gz/authors/01mailrc.txt.gz
Recherche ftp.nara.wide.ad.jp
Connexion HTTP à ftp.nara.wide.ad.jp
Alerte! : Impossible d'établir une connexion à l'hôte distant.
lynx : accès impossible au fichier de départ http://ftp.nara.wide.ad.jp/pub/CPAN/...details.txt.gz/authors/01mailrc.txt.gz
No success, the file that lynx has downloaded is an empty file.
Warning: no success downloading '/home/colombna/.cpan/sources/authors/01mailrc.txt.gz.tmp1808'. Giving up on it.
Trying with
/usr/bin/lynx -source
to get
http://ftp.nara.wide.ad.jp/pub/CPAN/...details.txt.gz/authors/01mailrc.txt.gz
Recherche ftp.nara.wide.ad.jp
Connexion HTTP à ftp.nara.wide.ad.jp
Alerte! : Impossible d'établir une connexion à l'hôte distant.
lynx : accès impossible au fichier de départ http://ftp.nara.wide.ad.jp/pub/CPAN/...details.txt.gz/authors/01mailrc.txt.gz
No success, the file that lynx has downloaded is an empty file.
Warning: no success downloading '/home/colombna/.cpan/sources/authors/01mailrc.txt.gz.tmp1808'. Giving up on it.
No external ftp command available
Please check, if the URLs I found in your configuration file
(http://ftp.nara.wide.ad.jp/pub/CPAN/...details.txt.gz/) are valid. The
urllist can be edited. E.g. with 'o conf urllist push ftp://myurl/'
Could not fetch authors/01mailrc.txt.gz
Lockfile removed.