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

EDI, CMS, Outils, Scripts et API PHP Discussion :

Installation de Pear


Sujet :

EDI, CMS, Outils, Scripts et API PHP

  1. #1
    Membre régulier
    Profil pro
    Inscrit en
    Août 2004
    Messages
    189
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Août 2004
    Messages : 189
    Points : 80
    Points
    80
    Par défaut Installation de Pear
    Bonjour à tous,

    j'utilise Wamp depuis un petit moment, aujourd'hui je dois tester un package qui nécessite d'installer PEAR.
    Je l'ai donc installé, mais un problème persiste avec le message ci-dessous :
    Fatal error: Class 'PEAR_Exception' not found in

    Il semblerait que cela puisse être du à une mauvaise installation de PEAR, lorsque je saisie en console : pear -list, j'obtient ceci :
    INSTALLED PACKAGES, CHANNEL PEAR.PHP.NET:
    =========================================
    PACKAGE VERSION STATE
    Archive_Tar 1.3.11 stable
    Console_Getopt 1.3.1 stable
    File_MARC 0.7.1 beta
    PEAR 1.9.4 stable
    Structures_Graph 1.0.4 stable
    Structures_LinkedList 0.2.2 beta
    XML_Util 1.2.1 stable

    Voici quelques vérifications que j'ai faite :
    Dans le path, j'ai bien C:\wamp\bin\php\php5.3.13

    un pear version me renvoi
    pear version
    PEAR Version: 1.9.4
    PHP Version: 5.3.13
    Zend Engine Version: 2.3.0
    Running on: Windows NT SLAYES-SRV 6.2 build 9200 (Unknow Windows version Business Edition) i586

    Le script ci-dessous me renvoie bien 'true'
    <?php
    require_once 'System.php';
    var_dump(class_exists('System'));
    ?>

    Si une bonne âme peut m'aiguiller ça serait sympa smiling smiley
    Pour précision, je suis sous Windows 8.

  2. #2
    Membre régulier
    Profil pro
    Inscrit en
    Août 2004
    Messages
    189
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Août 2004
    Messages : 189
    Points : 80
    Points
    80
    Par défaut
    Si ca peut aider voila ce que donne le pear config-show
    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
     
    CONFIGURATION (CHANNEL PEAR.PHP.NET):
    =====================================
    Auto-discover new Channels     auto_discover    <not set>
    Default Channel                default_channel  pear.php.net
    HTTP Proxy Server Address      http_proxy       <not set>
    PEAR server [DEPRECATED]       master_server    pear.php.net
    Default Channel Mirror         preferred_mirror pear.php.net
    Remote Configuration File      remote_config    <not set>
    PEAR executables directory     bin_dir          C:\wamp\bin\php\php5.3.13
    PEAR documentation directory   doc_dir          C:\wamp\bin\php\php5.3.13\docs
    PHP extension directory        ext_dir          c:/wamp/bin/php/php5.3.13/ext/
    PEAR directory                 php_dir          C:\wamp\bin\php\php5.3.13\pear
    PEAR Installer cache directory cache_dir        C:\Users\Slayes\AppData\Local\Temp\pear\
    PEAR configuration file        cfg_dir          C:\wamp\bin\php\php5.3.13\cfg
    directory
    PEAR data directory            data_dir         C:\wamp\bin\php\php5.3.13\data
    PEAR Installer download        download_dir     C:\wamp\bin\php\php5.3.13\tmp
    directory
    PHP CLI/CGI binary             php_bin          .\php.exe
    php.ini location               php_ini          <not set>
    --program-prefix passed to     php_prefix       <not set>
    PHP's ./configure
    --program-suffix passed to     php_suffix       <not set>
    PHP's ./configure
    PEAR Installer temp directory  temp_dir         C:\wamp\bin\php\php5.3.13\tmp
    PEAR test directory            test_dir         C:\wamp\bin\php\php5.3.13\tests
    PEAR www files directory       www_dir          C:\wamp\bin\php\php5.3.13\www
    Cache TimeToLive               cache_ttl        3600
    Preferred Package State        preferred_state  stable
    Unix file mask                 umask            0
    Debug Log Level                verbose          1
    PEAR password (for             password         <not set>
    maintainers)
    Signature Handling Program     sig_bin          c:\gnupg\gpg.exe
    Signature Key Directory        sig_keydir       C:\wamp\bin\php\php5.3.13\pearkeys
    Signature Key Id               sig_keyid        <not set>
    Package Signature Type         sig_type         gpg
    PEAR username (for             username         <not set>
    maintainers)
    User Configuration File        Filename         C:\wamp\bin\php\php5.3.13\pear.ini
    System Configuration File      Filename         C:\wamp\bin\php\php5.3.13\pearsys.ini

  3. #3
    Membre régulier
    Profil pro
    Inscrit en
    Août 2004
    Messages
    189
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Août 2004
    Messages : 189
    Points : 80
    Points
    80
    Par défaut
    Après recherche je me demande si le package que je test est bien installé :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    pear install --alldeps File_MARC-0.7.1
    Failed to download pear/Validate_ISPN within preferred state "stable", latest release is version 0.6.1, stability "
    ISPN-0.6.1" to install
    pear/File_MARC can optionally use package "pear/Validate_ISPN"
    downloading File_MARC-0.7.1.tgz ...
    Starting to download File_MARC-0.7.1.tgz (85,635 bytes)
    ....................done: 85,635 bytes
    install ok: channel://pear.php.net/File_MARC-0.7.1
    Il marque bien "install ok", mais il ne cré pas arborescence des dossiers dans le dossier PEAR.

Discussions similaires

  1. [PEAR][HTML_QuickForm] Installation de PEAR en tant que bibliothèque autonome
    Par Zarvox dans le forum Bibliothèques et frameworks
    Réponses: 1
    Dernier message: 31/08/2009, 17h42
  2. [PEAR][HTML_QuickForm] Installation de PEAR
    Par Angeldu74 dans le forum Bibliothèques et frameworks
    Réponses: 2
    Dernier message: 10/07/2009, 11h19
  3. [PEAR] Installation de pear via SVN
    Par lagotonio dans le forum Bibliothèques et frameworks
    Réponses: 1
    Dernier message: 12/08/2008, 23h29
  4. [PEAR] Installation de PEAR
    Par Mohican69 dans le forum Bibliothèques et frameworks
    Réponses: 1
    Dernier message: 13/05/2008, 09h10
  5. [Installation] À propos de l'installation de Pear
    Par tprod dans le forum Bibliothèques et frameworks
    Réponses: 1
    Dernier message: 01/02/2006, 12h21

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