Voilà, j'ai toujours mon problème de compilation de PHP, mais cette fois je connais la cause du problème et après avoir bien cherché et refais la procédure plusieurs fois depuis le début, je me tourne vers vous.
Intentions/buts : Compiler PHP 5.3 avec PDO, APC et memcache sur Debian Lenny
D'après le tutoriel de stopher j'ai téléchargé et décompressé les sources de PHP :
La documentation concernant memcache et APC me renvoyèrent à l'installation d'un extension PECL. Pour les compiler de manière statique (à fin de maximiser les perfomances) je suis la procédure :cd /usr/local/src/
wget http://fr3.php.net/get/php-5.3.0.tar.gz ... his/mirror
tar zxf php-5.3.0.tar.gz
rm -f php-5.3.0.tar.gz
cd php-5.3.0/
Ce qui m'a donné le résultat suivant :cd ext
pecl download APC
gzip -d < APC-3.0.19.tgz | tar -xvf -
mv APC-3.0.19 APC
rm package.xml
pecl download memcache
gzip -d < memcache-2.2.5.tgz | tar -xvf -
mv memcache-2.2.5 memcache
rm package.xml
cd ..
rm configure
./buildconf --force
J'ai ensuite repris le tutoriel de stopher, puis, après avoir vérifier avec ./configure --help, j'ai fais ce qui suit :Forcing buildconf
using default Zend directory
buildconf: checking installation...
buildconf: autoconf version 2.61 (ok)
buildconf: Your version of autoconf likely contains buggy cache code.
Running cvsclean for you.
To avoid this, install autoconf-2.13.
rebuilding configure
rebuilding main/php_config.h.in
autoheader: WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot'
autoheader: WARNING: and `config.h.top', to define templates for `config.h.in'
autoheader: WARNING: is deprecated and discouraged.
autoheader:
autoheader: WARNING: Using the third argument of `AC_DEFINE' and
autoheader: WARNING: `AC_DEFINE_UNQUOTED' allows one to define a template without
autoheader: WARNING: `acconfig.h':
autoheader:
autoheader: WARNING: AC_DEFINE([NEED_FUNC_MAIN], 1,
autoheader: [Define if a function `main' is needed.])
autoheader:
autoheader: WARNING: More sophisticated templates can also be produced, see the
autoheader: WARNING: documentation.
vim conf_install
Code : Tout sélectionner
#!/bin/sh
CFLAGS="-O2"
./configure --prefix=/usr/local \
--with-apxs2=/usr/local/bin/apxs \
--with-inifile=/usr/local/etc/php.ini \
--with-libxml-dir=/usr/local/src/php-5.3.0/ext/libxml \
--with-xsl \
--with-zlib \
--with-pdo-pgsql=/usr/local/src/php-5.3.0/ext/pdo_pgsql \
--with-pgsql=shared \
--enable-memcache \
--enable-apc
Qui m'a donné ces erreurs :./conf_install
Puis :Generating files
configure: creating ./config.status
creating main/internal_functions.c
grep: ext/apc/config*.m4: No such file or directory
grep: ext/memcache/config*.m4: No such file or directory
nawk: cannot open ext/apc/*.h (No such file or directory)
creating main/internal_functions_cli.c
grep: ext/apc/config*.m4: No such file or directory
grep: ext/memcache/config*.m4: No such file or directory
nawk: cannot open ext/apc/*.h (No such file or directory)
make
J'en ai déduit que la version d'automake que je possède est trop récente, si vous pouviez me confirmer ça, je peux me tromper et s'il y a un autre moyen que le downgrade pour résoudre ce soucis, par avance merci de votre aide.make: *** Pas de règle pour fabriquer la cible « /usr/local/src/php-5.3.0/ext/apc/apc.c », nécessaire pour « ext/apc/apc.lo ». Arrêt.