IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Programmation et administration système Perl Discussion :

Installation module DBI pour PERL sous windows 7 / PERL V5.16.3


Sujet :

Programmation et administration système Perl

  1. #1
    Membre à l'essai
    Homme Profil pro
    Étudiant
    Inscrit en
    Juin 2012
    Messages
    51
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Haute Loire (Auvergne)

    Informations professionnelles :
    Activité : Étudiant
    Secteur : Industrie

    Informations forums :
    Inscription : Juin 2012
    Messages : 51
    Points : 17
    Points
    17
    Par défaut Installation module DBI pour PERL sous windows 7 / PERL V5.16.3
    Bonjour,
    Pour les besoins d'un projet, je dois utiliser
    le module DBI pour gérer une base de données dans un script PERL.

    J'ai suivi le tuto de Djibril mais jke ne peux pas installer le module, ia fenetre de commande me renvoie pas mal de ligne dont celles-ci :
    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
     
    Microsoft Windows [version 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation. Tous droits réservés.
     
    C:\Users>cpan install DBI
    Set up gcc environment - gcc.exe (release with patches / build 20130526 by straw
    berryperl.com) 4.7.3
    CPAN: Term::ANSIColor loaded ok (v4.02)
    CPAN: Storable loaded ok (v2.34)
    CPAN: LWP::UserAgent loaded ok (v6.04)
    CPAN: Time::HiRes loaded ok (v1.9725)
    Fetching with LWP:
    http://ppm.activestate.com/CPAN/authors/01mailrc.txt.gz
    LWP failed with code[500] message[Can't connect to ppm.activestate.com:80 (10060
    )]
    Warning: no success downloading 'C:\Perl64\cpan\sources\authors\01mailrc.txt.gz.
    tmp1756'. Giving up on it.
    Fetching with LWP:
    http://cpan.perl.org/authors/01mailrc.txt.gz
    LWP failed with code[500] message[Can't connect to cpan.perl.org:80 (10060)]
    Warning: no success downloading 'C:\Perl64\cpan\sources\authors\01mailrc.txt.gz.
    tmp1756'. Giving up on it.
    Warning: no success downloading 'C:\Perl64\cpan\sources\authors\01mailrc.txt.gz.
    tmp1756'. Giving up on it.
    No external ftp command available
     
    Fetching with LWP:
    http://ppm.activestate.com/CPAN/authors/01mailrc.txt.gz
    LWP failed with code[500] message[Can't connect to ppm.activestate.com:80 (10060
    )]
    Warning: no success downloading 'C:\Perl64\cpan\sources\authors\01mailrc.txt.gz.
    tmp1756'. Giving up on it.
    Fetching with LWP:
    http://cpan.perl.org/authors/01mailrc.txt.gz
    Je pense que mon parefeu doit bloquer certaines fonctionnalités, mais je ne vois pas comment faire.

    Si en telechargeant le fichier .tar.gz sur CPAn, je peux l'installer sabns internet ?

    Merci.

    @+

  2. #2
    Membre à l'essai
    Homme Profil pro
    Étudiant
    Inscrit en
    Juin 2012
    Messages
    51
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Haute Loire (Auvergne)

    Informations professionnelles :
    Activité : Étudiant
    Secteur : Industrie

    Informations forums :
    Inscription : Juin 2012
    Messages : 51
    Points : 17
    Points
    17
    Par défaut
    merci

  3. #3
    Responsable Perl et Outils

    Avatar de djibril
    Homme Profil pro
    Inscrit en
    Avril 2004
    Messages
    19 820
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations forums :
    Inscription : Avril 2004
    Messages : 19 820
    Points : 499 184
    Points
    499 184
    Par défaut
    Bonjour,

    Je doute que le pare-feu soit en cause, mais au pire, tu le désactive temporairement.
    Si c'est une histoire de proxy, configure ton cpan.

  4. #4
    Membre à l'essai
    Homme Profil pro
    Étudiant
    Inscrit en
    Juin 2012
    Messages
    51
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Haute Loire (Auvergne)

    Informations professionnelles :
    Activité : Étudiant
    Secteur : Industrie

    Informations forums :
    Inscription : Juin 2012
    Messages : 51
    Points : 17
    Points
    17
    Par défaut
    Je peux reconfigurer le cpan avec ces commande ?

    cpan> o conf init
    => http://proxy.monexample.com:8080/

    et relancer l'installation ?

    Merci

    @+

  5. #5
    Responsable Perl et Outils

    Avatar de djibril
    Homme Profil pro
    Inscrit en
    Avril 2004
    Messages
    19 820
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations forums :
    Inscription : Avril 2004
    Messages : 19 820
    Points : 499 184
    Points
    499 184
    Par défaut
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    cpan
    cpan> o conf init /proxy/
    Tu configures et ensuite,
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    cpan> o conf commit
    cpan> install DBI

  6. #6
    Membre à l'essai
    Homme Profil pro
    Étudiant
    Inscrit en
    Juin 2012
    Messages
    51
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Haute Loire (Auvergne)

    Informations professionnelles :
    Activité : Étudiant
    Secteur : Industrie

    Informations forums :
    Inscription : Juin 2012
    Messages : 51
    Points : 17
    Points
    17
    Par défaut
    Ok, je teste de suite.

    Merci

  7. #7
    Membre à l'essai
    Homme Profil pro
    Étudiant
    Inscrit en
    Juin 2012
    Messages
    51
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Haute Loire (Auvergne)

    Informations professionnelles :
    Activité : Étudiant
    Secteur : Industrie

    Informations forums :
    Inscription : Juin 2012
    Messages : 51
    Points : 17
    Points
    17
    Par défaut
    Après quelques essais, j'ai la même ereu qui revient et imposible de telecharger le fichier :

    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
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
     
     
    cpan> o conf init /proxy/
     
     
    If you're accessing the net via proxies, you can specify them in the
    CPAN configuration or via environment variables. The variable in
    the $CPAN::Config takes precedence.
     
     <ftp_proxy>
    Your ftp_proxy? [] 192.168.4.4
     
     <http_proxy>
    Your http_proxy? [] 192.168.4.4
     
     <no_proxy>
    Your no_proxy? []
     
     
     
    If your proxy is an authenticating proxy, you can store your username
    permanently. If you do not want that, just press ENTER. You will then
    be asked for your username in every future session.
     
    Your proxy user id? [] cetim3\jmoulin
     
     
     
    Your password for the authenticating proxy can also be stored
    permanently on disk. If this violates your security policy, just press
    ENTER. You will then be asked for the password in every future
    session.
     
    Your proxy password?
     
     
    Please remember to call 'o conf commit' to make the config permanent!
     
     
    cpan[2]> o conf commit
    Your C:\Perl64\lib/CPAN/Config.pm file
    is not writable. I will attempt to write your configuration to
    C:\Users\jmoulin\AppData\Local\.cpan\CPAN\MyConfig.pm instead.
     
    commit: wrote 'C:\Users\jmoulin\AppData\Local\.cpan\CPAN\MyConfig.pm'
     
     
    cpan[3]> install DBI
    Catching error: "Proxy must be specified as absolute URI; '192.168.4.4' is not a
    t C:\\Perl64\\lib/CPAN/FTP.pm line 347.\cJ" at C:/Perl64/lib/CPAN.pm line 392, <
    IN> line 3.
            CPAN::shell() called at C:/Perl64/lib/App/Cpan.pm line 295
            App::Cpan::_process_options('App::Cpan') called at C:/Perl64/lib/App/Cpa
    n.pm line 364
            App::Cpan::run('App::Cpan') called at C:\Perl64\bin/cpan.bat line 24
    Fetching with LWP:
    http://ppm.activestate.com/CPAN/authors/01mailrc.txt.gz
    LWP failed with code[500] message[Can't connect to ppm.activestate.com:80 (10060
    )]
    Warning: no success downloading 'C:\Perl64\cpan\sources\authors\01mailrc.txt.gz.
    tmp4500'. Giving up on it.
    Fetching with LWP:
    http://cpan.perl.org/authors/01mailrc.txt.gz
    LWP failed with code[500] message[Can't connect to cpan.perl.org:80 (10060)]
    Warning: no success downloading 'C:\Perl64\cpan\sources\authors\01mailrc.txt.gz.
    tmp4500'. Giving up on it.
    Warning: no success downloading 'C:\Perl64\cpan\sources\authors\01mailrc.txt.gz.
    tmp4500'. Giving up on it.
    No external ftp command available
     
    Fetching with LWP:
    http://ppm.activestate.com/CPAN/authors/01mailrc.txt.gz
    LWP failed with code[500] message[Can't connect to ppm.activestate.com:80 (10060
    )]
    Warning: no success downloading 'C:\Perl64\cpan\sources\authors\01mailrc.txt.gz.
    tmp4500'. Giving up on it.
    Fetching with LWP:
    http://cpan.perl.org/authors/01mailrc.txt.gz
    LWP failed with code[500] message[Can't connect to cpan.perl.org:80 (10060)]
    Warning: no success downloading 'C:\Perl64\cpan\sources\authors\01mailrc.txt.gz.
    tmp4500'. Giving up on it.
    Warning: no success downloading 'C:\Perl64\cpan\sources\authors\01mailrc.txt.gz.
    tmp4500'. Giving up on it.
    No external ftp command available
     
    Please check, if the URLs I found in your configuration file
    (http://ppm.activestate.com/CPAN, http://cpan.perl.org) 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.
    désolé pour la tartine, mais je ne savais pas s'il fallait tout mettre ou pas ^^

Discussions similaires

  1. installation de jboss pour eclipse sous windows
    Par polios dans le forum Wildfly/JBoss
    Réponses: 3
    Dernier message: 31/03/2009, 10h51
  2. Installer Perl sous windows
    Par photorelief dans le forum Langage
    Réponses: 20
    Dernier message: 09/04/2008, 19h05
  3. comment installer un module perl sous windows
    Par Melvine dans le forum Modules
    Réponses: 4
    Dernier message: 05/10/2007, 17h36
  4. probleme d'install de perl sous windows
    Par Melvine dans le forum Modules
    Réponses: 13
    Dernier message: 06/09/2006, 11h28
  5. Installation du module DBI pour perl sous W2K
    Par tomcat dans le forum Modules
    Réponses: 6
    Dernier message: 22/01/2004, 11h54

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo