programmation_memcached
Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
programmation_memcached [2009/12/30 21:56] – créée thierry | programmation_memcached [2010/01/07 13:03] (Version actuelle) – thierry | ||
---|---|---|---|
Ligne 3: | Ligne 3: | ||
==== Installation ==== | ==== Installation ==== | ||
# aptitude install memcached | # aptitude install memcached | ||
+ | ==== Configurer ==== | ||
+ | C'est là: | ||
+ | / | ||
===== libmemcache ===== | ===== libmemcache ===== | ||
==== Installation ==== | ==== Installation ==== | ||
- | | + | |
+ | < | ||
+ | |||
+ | A partir des sources: | ||
+ | $ mkdir -p ~/tmp/mc && cd ~/tmp/mc | ||
+ | $ wget http:// | ||
+ | $ tar xvzf http:// | ||
+ | $ cd libmemcached-0.35 | ||
+ | $ ./ | ||
+ | ... | ||
+ | --- | ||
+ | Configuration summary for libmemcached version 0.35 | ||
+ | |||
+ | * Installation prefix: | ||
+ | * System type: | ||
+ | * Host CPU: i686 | ||
+ | * C Compiler: | ||
+ | * Assertions enabled: | ||
+ | * Debug enabled: | ||
+ | * Warnings as failure: | ||
+ | |||
+ | --- | ||
+ | $ make | ||
+ | $ su | ||
+ | # make install | ||
+ | |||
+ | Les " | ||
+ | / | ||
+ | Les " | ||
+ | / | ||
+ | |||
+ | ==== Lib ==== | ||
+ | Erreur pour une librairie: | ||
+ | ... error while loading shared libraries: libmemcached.so.3: | ||
+ | Effectivement: | ||
+ | $ ldd mc | ||
+ | ... | ||
+ | libmemcached.so.3 => not found | ||
+ | De même que: | ||
+ | # ldconfig -p | grep libmemcached | ||
+ | |||
+ | === soluce 1 === | ||
+ | | :!: marche pas! | | ||
+ | |||
+ | (pour un poste de developpement) | ||
+ | |||
+ | Soit on adapte **'' | ||
+ | $ echo $LD_LIBRARY_PATH | ||
+ | |||
+ | $ export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/ | ||
+ | |||
+ | === soluce 2 === | ||
+ | (pour un serveur en test/ | ||
+ | |||
+ | Soit on créé le lien symbolique vers la lib: | ||
+ | # ln -s / | ||
+ | |||
+ | ==== Exemples ==== | ||
+ | Lien: http:// | ||
programmation_memcached.1262210204.txt.gz · Dernière modification : 2009/12/30 21:56 de thierry