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

Symfony PHP Discussion :

installer apc pour symfony


Sujet :

Symfony PHP

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre habitué
    Inscrit en
    Août 2004
    Messages
    497
    Détails du profil
    Informations forums :
    Inscription : Août 2004
    Messages : 497
    Points : 194
    Points
    194
    Par défaut installer apc pour symfony
    Bonjour,
    je dois installer apc pour faire tourner symfony !!!
    j'utilise le tuto suivant :
    http://nicolas.steinmetz.fr/tutoriels/s … pache.html
    et j'ai ce message :
    Tout sélectionner
    Sorry, I was not able to successfully run APXS. Possible reasons:

    1. Perl is not installed;
    2. Apache was not compiled with DSO support (--enable-module=so);
    3. 'apxs' is not in your path. Try to use --with-apxs=/path/to/apxs
    The output of apxs follows
    /tmp/pear/temp/APC/configure: line 4432: apxs: command not found
    configure: error: Aborting
    ERROR: `/tmp/pear/temp/APC/configure --with-apxs' failed
    xav@hack:/home/sfprojects/jobeet$

    Tout sélectionner
    xav@hack:/home/sfprojects/jobeet$ sudo aptitude install apache-dev php5-dev php5-cli php-pear
    Lecture des listes de paquets... Fait
    Construction de l'arbre des dépendances
    Lecture des informations d'état... Fait
    Lecture de l'information d'état étendu
    Initialisation de l'état des paquets... Fait
    Impossible de trouver un paquet dont le nom ou la description correspond à « apache-dev »
    Impossible de trouver un paquet dont le nom ou la description correspond à « apache-dev »
    Aucun paquet ne va être installé, mis à jour ou enlevé.
    0 paquets mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
    Il est nécessaire de télécharger 0o d'archives. Après dépaquetage, 0o seront utilisés.
    Écriture de l'information d'état étendu... Fait
    Lecture des listes de paquets... Fait
    Construction de l'arbre des dépendances
    Lecture des informations d'état... Fait
    Lecture de l'information d'état étendu
    Initialisation de l'état des paquets... Fait

    xav@hack:/home/sfprojects/jobeet$ sudo pecl install -a apc
    downloading APC-3.0.19.tgz ...
    Starting to download APC-3.0.19.tgz (115,735 bytes)
    ....................done: 115,735 bytes
    47 source files, building
    running: phpize
    Configuring for:
    PHP Api Version: 20041225
    Zend Module Api No: 20060613
    Zend Extension Api No: 220060519
    Use apxs to set compile flags (if using APC with Apache)? [yes] : yes
    building in /var/tmp/pear-build-root/APC-3.0.19
    running: /tmp/pear/temp/APC/configure --with-apxs
    checking for grep that handles long lines and -e... /bin/grep
    checking for egrep... /bin/grep -E
    checking for a sed that does not truncate output... /bin/sed
    checking for cc... cc
    checking for C compiler default output file name... a.out
    checking whether the C compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables...
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether cc accepts -g... yes
    checking for cc option to accept ISO C89... none needed
    checking how to run the C preprocessor... cc -E
    checking for icc... no
    checking for suncc... no
    checking whether cc understands -c and -o together... yes
    checking for system library directory... lib
    checking if compiler supports -R... no
    checking if compiler supports -Wl,-rpath,... yes
    checking build system type... i686-pc-linux-gnu
    checking host system type... i686-pc-linux-gnu
    checking target system type... i686-pc-linux-gnu
    checking for PHP prefix... /usr
    checking for PHP includes... -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
    checking for PHP extension directory... /usr/lib/php5/20060613+lfs
    checking for PHP installed headers prefix... /usr/include/php5
    checking if debug is enabled... no
    checking if zts is enabled... no
    checking for re2c... no
    configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
    checking for gawk... no
    checking for nawk... nawk
    checking if nawk is broken... no
    checking whether apc needs to get compiler flags from apxs...

    Sorry, I was not able to successfully run APXS. Possible reasons:

    1. Perl is not installed;
    2. Apache was not compiled with DSO support (--enable-module=so);
    3. 'apxs' is not in your path. Try to use --with-apxs=/path/to/apxs
    The output of apxs follows
    /tmp/pear/temp/APC/configure: line 4432: apxs: command not found
    configure: error: Aborting
    ERROR: `/tmp/pear/temp/APC/configure --with-apxs' failed
    xav@hack:/home/sfprojects/jobeet$

    Merci

  2. #2
    Membre averti Avatar de sacricri
    Profil pro
    Inscrit en
    Juin 2008
    Messages
    324
    Détails du profil
    Informations personnelles :
    Âge : 39
    Localisation : France

    Informations forums :
    Inscription : Juin 2008
    Messages : 324
    Points : 384
    Points
    384
    Par défaut
    Bonsoir,

    As-tu essayé : apt-get install php-apc ?
    symfony power user !

  3. #3
    Membre habitué
    Inscrit en
    Août 2004
    Messages
    497
    Détails du profil
    Informations forums :
    Inscription : Août 2004
    Messages : 497
    Points : 194
    Points
    194
    Par défaut
    ha pas mal
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    xav@hack:/$ symfony -V
    PHP Warning:  Module 'apc' already loaded in Unknown on line 0
    symfony version 1.4.1 (/usr/share/php/symfony)
    xav@hack:/$
    Mais pourquoi ce warning ?

  4. #4
    Membre émérite
    Profil pro
    Inscrit en
    Janvier 2007
    Messages
    1 448
    Détails du profil
    Informations personnelles :
    Âge : 39
    Localisation : France, Paris (Île de France)

    Informations forums :
    Inscription : Janvier 2007
    Messages : 1 448
    Points : 2 284
    Points
    2 284
    Par défaut
    double appel dans ta chaine d'include de fichier ini.
    Vérifies ton ficheir de distro, et vérifies ton fichier personnel.

  5. #5
    Membre habitué
    Inscrit en
    Août 2004
    Messages
    497
    Détails du profil
    Informations forums :
    Inscription : Août 2004
    Messages : 497
    Points : 194
    Points
    194
    Par défaut
    tu pense à mon php.ini ?

    xav@hack:/$ sudo gedit /etc/php5/apache2/php.ini

    fichier de config ?

    PS: et dire que je ne suis même pas sur mon serveur ?

  6. #6
    Membre émérite
    Profil pro
    Inscrit en
    Janvier 2007
    Messages
    1 448
    Détails du profil
    Informations personnelles :
    Âge : 39
    Localisation : France, Paris (Île de France)

    Informations forums :
    Inscription : Janvier 2007
    Messages : 1 448
    Points : 2 284
    Points
    2 284
    Par défaut
    oui dans tes fichiers de config, tu dois avoir deux appels à apc.so (extensions=apc.so).
    Je dis tes, car si c'est une install de distrib, alors tu en as surement plus d'un, c'est assez logique.

    Et oui j'ai présumé que c'était une installation locale, vu que t'as fini par faire apt-get.

Discussions similaires

  1. Comment installer gcc pour Cygwin ?
    Par Invité dans le forum GCC
    Réponses: 11
    Dernier message: 29/01/2012, 22h44
  2. installer zlib pour mingw
    Par rogerio dans le forum MinGW
    Réponses: 3
    Dernier message: 15/06/2006, 00h30
  3. [VB]Faut-il installer Excel pour y faire référence
    Par Mut dans le forum Installation, Déploiement et Sécurité
    Réponses: 11
    Dernier message: 21/02/2006, 14h28
  4. [Installation] JRE pour UNE application?
    Par Glob dans le forum Général Java
    Réponses: 6
    Dernier message: 20/01/2006, 11h01
  5. [Kylix] [INSTALLATION] MylittleBase pour Kylix:delphi
    Par christophe D dans le forum EDI
    Réponses: 3
    Dernier message: 05/09/2003, 17h06

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