Install Memcached

496 views
Skip to first unread message

Gustavo Paixão

unread,
Jan 4, 2011, 9:06:12 AM1/4/11
to memc...@googlegroups.com
HI,

I'm new with memcached, I'l like to know hot to install in my server, RHEL 5 with CPanel. I'm trying to install by CPanel, I found this module:

memcached     1.0.2 stable     PHP extension for interfacing with memcached via libmemcached library

but when I install I get this message below. Do you know what is wrong and what I need to do?
downloading memcached-1.0.2.tgz ...
Starting to download memcached-1.0.2.tgz (22,724 bytes)
........done: 22,724 bytes
4 source files, building
running: phpize
Configuring for:
PHP Api Version: 20090626
Zend Module Api No: 20090626
Zend Extension Api No: 220090626
building in /root/tmp/pear-build-root/memcached-1.0.2
running: /root/tmp/pear/memcached/configure
checking for egrep... 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 ANSI C... 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/local
checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20090626
checking for PHP installed headers prefix... /usr/local/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... re2c
checking for re2c version... invalid
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking whether to enable memcached support... yes, shared
checking for libmemcached... yes, shared
checking whether to enable memcached session handler support... yes
checking whether to enable memcached igbinary serializer support... no
checking for ZLIB... yes, shared
checking for zlib location... /usr
checking for session includes... /usr/local/include/php
checking for memcached session support... enabled
checking for memcached igbinary support... disabled
checking for libmemcached location... configure: error: memcached support requires libmemcached. Use --with-libmemcached-dir= to specify the prefix where libmemcached headers and library are located
ERROR: `/root/tmp/pear/memcached/configure' failed
The memcached.so object is not in /usr/local/lib/php/extensions/no-debug-non-zts-20090626

Matt Ingenthron

unread,
Jan 4, 2011, 1:48:18 PM1/4/11
to memc...@googlegroups.com, Gustavo Paixão
On 1/4/11 6:06 AM, Gustavo Paix�o wrote:
> HI,
>
> I'm new with memcached, I'l like to know hot to install in my server,
> RHEL 5 with CPanel. I'm trying to install by CPanel, I found this module:
>
> memcached 1.0.2 stable PHP extension for interfacing with
> memcached via libmemcached library
>
> but when I install I get this message below. Do you know what is wrong
> and what I need to do?

From the log below, it looks as if you're missing a prerequisite:
libmemcached. You'll need to install that before this pecl extension
will work.

You may want to read any docs for that extension though, as in my
experience, the version of libmemcached it relies upon may be somewhat
specific.

Gustavo Paixão

unread,
Jan 5, 2011, 1:07:57 AM1/5/11
to memc...@googlegroups.com, Matt Ingenthron
Hi Matt,

I was looking for libmemcached in "Install a Perl Module" page at WHM and I found this Memcached::libmemcached, I try to install but I got some error. The error message is attached. Do you know if i did something wrong or if a need to install something before?

Thanks,

Gustavo

Em 4 de janeiro de 2011 13:48, Matt Ingenthron <inge...@cep.net> escreveu:
libmemcached_error_mesage.txt

Matt Ingenthron

unread,
Jan 5, 2011, 1:59:03 AM1/5/11
to memc...@googlegroups.com
On 1/4/11 10:07 PM, Gustavo Paix�o wrote:
> Hi Matt,
>
> I was looking for libmemcached in"Install a Perl Module" page at WHM
> and I found this *Memcached::libmemcached*, I try to install but I got

> some error. The error message is attached. Do you know if i did
> something wrong or if a need to install something before?

Just a guess from looking at the log, but I don't know for certain, is
that there might be something a bit too old with your toolchain on
CentOS 5, depending on the update version. Perhaps an older one would
build cleanly?

That's just a guess though... it'd require more digging to see why. I
doubt libmemached-0.44 is broken in general.

Perhaps try an older one and/or try just building the lib directly
rather than getting it through a perl module.

Hope that helps some,

Matt

Reply all
Reply to author
Forward
0 new messages