Probleme d'installation via ppm or cpan

Résolu/Fermé
jayzman Messages postés 47 Date d'inscription mercredi 18 novembre 2015 Statut Membre Dernière intervention 5 février 2016 - 27 nov. 2015 à 09:22
jayzman Messages postés 47 Date d'inscription mercredi 18 novembre 2015 Statut Membre Dernière intervention 5 février 2016 - 2 déc. 2015 à 06:08
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,

1 réponse

[Dal] Messages postés 6174 Date d'inscription mercredi 15 septembre 2004 Statut Contributeur Dernière intervention 2 février 2024 1 083
Modifié par [Dal] le 27/11/2015 à 11:44
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
0
jayzman Messages postés 47 Date d'inscription mercredi 18 novembre 2015 Statut Membre Dernière intervention 5 février 2016
27 nov. 2015 à 12:20
bonjour 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,
0
jayzman Messages postés 47 Date d'inscription mercredi 18 novembre 2015 Statut Membre Dernière intervention 5 février 2016
27 nov. 2015 à 12:22
et quel proxy,port et mdp et login je vais mettre sur :
SET http_proxy=http://username:password@hostname:port
0
[Dal] Messages postés 6174 Date d'inscription mercredi 15 septembre 2004 Statut Contributeur Dernière intervention 2 février 2024 1 083
Modifié par [Dal] le 27/11/2015 à 18:23
Effectivement, ils demandent un identifiant et mot de passe même sur les packages non marqués d'un cadenas dans le tableau de versions ... cela semble réservé à la Business Edition ...

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 :

cpanp -i DBD-mysql

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
0
bonjour Dal,
Encore Merci,
Ok je vais l'essayer

jayzman
0
bonjour,
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.
0