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

Modules Perl Discussion :

[Débutant] Installation de Mechanize via CPAN


Sujet :

Modules Perl

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre éclairé
    Homme Profil pro
    Consultant en Business Intelligence
    Inscrit en
    Mai 2003
    Messages
    921
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 43
    Localisation : France, Loire Atlantique (Pays de la Loire)

    Informations professionnelles :
    Activité : Consultant en Business Intelligence

    Informations forums :
    Inscription : Mai 2003
    Messages : 921
    Par défaut [Débutant] Installation de Mechanize via CPAN
    Bonjour à tous,

    j'ai essayé d'installer le module WWW:Mechanize via le shell de CPAN, mais apparemment ça n'a pas complètement fonctionné !

    Extrait du log retourné sous l'invite MS-DOS :

    [...]

    Checking if your kit is complete...
    Looks good
    Writing Makefile for WWW::Mechanize
    'nmake' n'est pas reconnu en tant que commande interne
    ou externe, un programme exécutable ou un fichier de commandes.
    nmake -- NOT OK
    Running make test
    Can't test without successful make
    Running make install
    make had returned bad status, install seems impossible


    cpan> exit
    Lockfile removed.

    Le log au complet :

    C:\>perl -MCPAN -eshell

    cpan shell -- CPAN exploration and modules installation (v1.7602)
    ReadLine support enabled


    cpan> install WWW::Mechanize
    CPAN: Storable loaded ok
    CPAN: LWP::UserAgent loaded ok
    Fetching with LWP:
    http://ppm.activestate.com/CPAN/authors/01mailrc.txt.gz
    Going to read C:\Perl\cpan\sources\authors\01mailrc.txt.gz
    Fetching with LWP:
    http://ppm.activestate.com/CPAN/modu...details.txt.gz
    Going to read C:\Perl\cpan\sources\modules\02packages.details.txt.gz
    Database was generated on Wed, 13 Jun 2007 11:08:17 GMT

    There's a new CPAN.pm version (v1.9102) available!
    [Current version is v1.7602]
    You might want to try
    install Bundle::CPAN
    reload cpan
    without quitting the current session. It should be a seamless upgrade
    while we are running...

    Fetching with LWP:
    http://ppm.activestate.com/CPAN/modu...odlist.data.gz
    Going to read C:\Perl\cpan\sources\modules\03modlist.data.gz
    Going to write C:\Perl\cpan\Metadata
    Running install for module WWW::Mechanize
    Running make for P/PE/PETDANCE/WWW-Mechanize-1.30.tar.gz
    Fetching with LWP:
    http://ppm.activestate.com/CPAN/auth...ze-1.30.tar.gz
    CPAN: Digest::MD5 loaded ok
    Fetching with LWP:
    http://ppm.activestate.com/CPAN/auth...ANCE/CHECKSUMS
    Checksum for C:\Perl\cpan\sources\authors\id\P\PE\PETDANCE\WWW-Mechanize-1.30.tar.gz ok
    Scanning cache C:\Perl/cpan/build for sizes
    CPAN: Archive::Tar loaded ok
    WWW-Mechanize-1.30/
    WWW-Mechanize-1.30/bin/
    WWW-Mechanize-1.30/bin/mech-dump
    WWW-Mechanize-1.30/Changes
    WWW-Mechanize-1.30/etc/
    WWW-Mechanize-1.30/etc/www-mechanize-logo.png
    WWW-Mechanize-1.30/lib/
    WWW-Mechanize-1.30/lib/WWW/
    WWW-Mechanize-1.30/lib/WWW/Mechanize/
    WWW-Mechanize-1.30/lib/WWW/Mechanize/Cookbook.pod
    WWW-Mechanize-1.30/lib/WWW/Mechanize/Examples.pod
    WWW-Mechanize-1.30/lib/WWW/Mechanize/FAQ.pod
    WWW-Mechanize-1.30/lib/WWW/Mechanize/Image.pm
    WWW-Mechanize-1.30/lib/WWW/Mechanize/Link.pm
    WWW-Mechanize-1.30/lib/WWW/Mechanize.pm
    WWW-Mechanize-1.30/Makefile.PL
    WWW-Mechanize-1.30/MANIFEST
    WWW-Mechanize-1.30/META.yml
    WWW-Mechanize-1.30/perlcriticrc
    WWW-Mechanize-1.30/t/
    WWW-Mechanize-1.30/t/00-load.t
    WWW-Mechanize-1.30/t/add_header.t
    WWW-Mechanize-1.30/t/aliases.t
    WWW-Mechanize-1.30/t/area_link.html
    WWW-Mechanize-1.30/t/area_link.t
    WWW-Mechanize-1.30/t/autocheck.t
    WWW-Mechanize-1.30/t/clone.t
    WWW-Mechanize-1.30/t/die.t
    WWW-Mechanize-1.30/t/field.html
    WWW-Mechanize-1.30/t/field.t
    WWW-Mechanize-1.30/t/find_image.t
    WWW-Mechanize-1.30/t/find_inputs.html
    WWW-Mechanize-1.30/t/find_inputs.t
    WWW-Mechanize-1.30/t/find_link-warnings.t
    WWW-Mechanize-1.30/t/find_link.html
    WWW-Mechanize-1.30/t/find_link.t
    WWW-Mechanize-1.30/t/form-parsing.t
    WWW-Mechanize-1.30/t/frames.html
    WWW-Mechanize-1.30/t/frames.t
    WWW-Mechanize-1.30/t/google.html
    WWW-Mechanize-1.30/t/image-new.t
    WWW-Mechanize-1.30/t/image-parse.html
    WWW-Mechanize-1.30/t/image-parse.t
    WWW-Mechanize-1.30/t/link-base.t
    WWW-Mechanize-1.30/t/link-relative.t
    WWW-Mechanize-1.30/t/link.t
    WWW-Mechanize-1.30/t/live/
    WWW-Mechanize-1.30/t/live/computers4sure.t
    WWW-Mechanize-1.30/t/live/wikipedia.t
    WWW-Mechanize-1.30/t/local/
    WWW-Mechanize-1.30/t/local/back.t
    WWW-Mechanize-1.30/t/local/click.t
    WWW-Mechanize-1.30/t/local/click_button.t
    WWW-Mechanize-1.30/t/local/failure.t
    WWW-Mechanize-1.30/t/local/follow.t
    WWW-Mechanize-1.30/t/local/form.t
    WWW-Mechanize-1.30/t/local/get.t
    WWW-Mechanize-1.30/t/local/LocalServer.pm
    WWW-Mechanize-1.30/t/local/log-server
    WWW-Mechanize-1.30/t/local/overload.t
    WWW-Mechanize-1.30/t/local/page_stack.t
    WWW-Mechanize-1.30/t/local/referer-server
    WWW-Mechanize-1.30/t/local/referer.t
    WWW-Mechanize-1.30/t/local/reload.t
    WWW-Mechanize-1.30/t/local/submit.t
    WWW-Mechanize-1.30/t/mech-dump/
    WWW-Mechanize-1.30/t/mech-dump/mech-dump.t
    WWW-Mechanize-1.30/t/new.t
    WWW-Mechanize-1.30/t/pod-coverage.t
    WWW-Mechanize-1.30/t/pod.t
    WWW-Mechanize-1.30/t/regex-error.t
    WWW-Mechanize-1.30/t/save_content.t
    WWW-Mechanize-1.30/t/select.html
    WWW-Mechanize-1.30/t/select.t
    WWW-Mechanize-1.30/t/taint.t
    WWW-Mechanize-1.30/t/tick.html
    WWW-Mechanize-1.30/t/tick.t
    WWW-Mechanize-1.30/t/upload.html
    WWW-Mechanize-1.30/t/upload.t
    WWW-Mechanize-1.30/t/warn.t
    WWW-Mechanize-1.30/t/warnings.t

    CPAN.pm: Going to build P/PE/PETDANCE/WWW-Mechanize-1.30.tar.gz


    WWW::Mechanize likes to have a lot of test modules for some of its tests.
    The following are modules that would be nice to have, but not required.

    Test:: Pod
    Test::Memory::Cycle
    Test::Warn
    Test::Taint


    Checking if your kit is complete...
    Looks good
    Writing Makefile for WWW::Mechanize
    'nmake' n'est pas reconnu en tant que commande interne
    ou externe, un programme exécutable ou un fichier de commandes.
    nmake -- NOT OK
    Running make test
    Can't test without successful make
    Running make install
    make had returned bad status, install seems impossible


    cpan> exit
    Lockfile removed.
    Lorsque je lance mon script qui utilise WWW:Mechanize : j'ai la même erreur que lorsque le module n'était pas installé !

    bot.pl

    U:\Robot_Web>bot.pl
    Can't locate WWW/Mechanize.pm in @INC (@INC contains: C:/Perl/site/lib C:/Perl/lib .) at U:\Robot_Web\bot.pl line 3.
    BEGIN failed--compilation aborted at U:\Robot_Web\bot.pl line 3.

    Une idée ?

  2. #2
    Rédactrice

    Avatar de stoyak
    Profil pro
    Inscrit en
    Juin 2005
    Messages
    408
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2005
    Messages : 408
    Par défaut
    tu n'a pas make et nmake donc ça ne marche pas.
    Pourquoi ne pas essayer via ppm comme expliqué dans la FAQ?

  3. #3
    Membre éclairé
    Homme Profil pro
    Consultant en Business Intelligence
    Inscrit en
    Mai 2003
    Messages
    921
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 43
    Localisation : France, Loire Atlantique (Pays de la Loire)

    Informations professionnelles :
    Activité : Consultant en Business Intelligence

    Informations forums :
    Inscription : Mai 2003
    Messages : 921
    Par défaut
    Citation Envoyé par stoyak
    tu n'a pas make et nmake donc ça ne marche pas.
    Pourquoi ne pas essayer via ppm comme expliqué dans la FAQ?
    Parce que c'est ce que j'ai commencé par faire et ça n'a pas fonctionné !

  4. #4
    Rédactrice

    Avatar de stoyak
    Profil pro
    Inscrit en
    Juin 2005
    Messages
    408
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2005
    Messages : 408
    Par défaut
    bah essaye et tu vois

  5. #5
    Membre éclairé
    Homme Profil pro
    Consultant en Business Intelligence
    Inscrit en
    Mai 2003
    Messages
    921
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 43
    Localisation : France, Loire Atlantique (Pays de la Loire)

    Informations professionnelles :
    Activité : Consultant en Business Intelligence

    Informations forums :
    Inscription : Mai 2003
    Messages : 921
    Par défaut
    Citation Envoyé par stoyak
    bah essaye et tu vois
    J'ai (tout) essayé :
    C:\>ppm install mechanize
    Downloading ActiveState Package Repository packlist...not modified
    ppm install failed: Can't find any package that provide mechanize

    C:\>ppm install Mechanize
    Downloading ActiveState Package Repository packlist...not modified
    ppm install failed: Can't find any package that provide Mechanize

    C:\>ppm install WWW::Mechanize
    Downloading ActiveState Package Repository packlist...not modified
    ppm install failed: Can't find any package that provide WWW::Mechanize

    C:\>ppm install WWW-Mechanize
    Downloading ActiveState Package Repository packlist...not modified
    ppm install failed: Can't find any package that provide WWW-Mechanize

  6. #6
    Membre éclairé
    Homme Profil pro
    Consultant en Business Intelligence
    Inscrit en
    Mai 2003
    Messages
    921
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 43
    Localisation : France, Loire Atlantique (Pays de la Loire)

    Informations professionnelles :
    Activité : Consultant en Business Intelligence

    Informations forums :
    Inscription : Mai 2003
    Messages : 921
    Par défaut
    Bon ... si j'ai bien tout compris, sic !

    CPAN : fonctionne, mais lance les commandes nmake et make qui ne sont pas disponibles sous Windows ... à moins qu'elles puissent être "ajoutables" ?


    ppm : ne fonctionne pas, car WWW:Mechanize n'est simplement pas disponible ???


    Ai-je raison ? Si oui ... ... comment parer à l'un ou à l'autre ?

  7. #7
    Expert confirmé
    Avatar de Jedai
    Homme Profil pro
    Enseignant
    Inscrit en
    Avril 2003
    Messages
    6 245
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Côte d'Or (Bourgogne)

    Informations professionnelles :
    Activité : Enseignant

    Informations forums :
    Inscription : Avril 2003
    Messages : 6 245
    Par défaut
    Non, tu n'as pas essayé d'ajouter des repositiories comme indiqué dans la FAQ.

    Par ailleurs, il doit y avoir un autre problème car personnellement mon PPM me rapporte ceci :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    2: WWW-Mechanize
       Handy web browsing in a Perl object
       Version: 0.72
       Author: Andy Lester (andy@petdance.com)
       Provide: WWW::Mechanize version 0.72
       Provide: WWW::Mechanize::Link
       Repo: ActiveState Package Repository
       CPAN: http://search.cpan.org/dist/WWW-Mechanize-0.72/
       Installed: 1.20 (site)
    --
    Jedaï

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. installation de BioPerl via le CPAN
    Par Jasmine80 dans le forum Modules
    Réponses: 19
    Dernier message: 28/07/2014, 16h33
  2. Réponses: 2
    Dernier message: 08/07/2014, 14h14
  3. [Débutant][Installation]Java sous Win
    Par MALAGASY dans le forum EDI et Outils pour Java
    Réponses: 17
    Dernier message: 26/08/2004, 09h22
  4. [débutant] installation package Francais
    Par zozolh2 dans le forum Eclipse Java
    Réponses: 9
    Dernier message: 28/04/2004, 10h29
  5. [débutant] installation du logiciel Hping
    Par glurps dans le forum Développement
    Réponses: 3
    Dernier message: 12/06/2003, 17h08

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