Installing Memcached 1.2.2
Matt Ingenthron
Matt.Ingenthron at Sun.COM
Mon Jul 9 18:16:23 UTC 2007
Hi Matthew,
Matthew Maddox wrote:
> I am attempting to install memcached 1.2.2 on a Sun V240 running
> Solaris 10 11/06. I am receiving an error message that indicates
> libevent is not installed. However, I have already installed libevent
> 1.3b and I specified the location of the library files.
If I recall correctly (I'm not certain of this), when the build searches
for libevent, it's looking for the prefix that had been used for
libevent, not the lib/ directory specficically. I believe if you set up
the LDFLAGS and have the prefix used with libevent, it'll work for you.
Having said that, in the Cool Stack project we've already
compiled/tested memcache and its dependencies, so you should just be
able to download and pkgadd. It currently has libevent1.2a and
memcached 1.2.0 though. Have a look at
http://cooltools.sunsource.net/coolstack/
If you'd still like to build the latest yourself, you may want to
reference the build scripts we used. They can be found in either a
download of the source tarballs or in the source from the OpenSolaris
Web Stack project here:
http://cvs.opensolaris.org/source/xref/webstack/webstack/trunk/src/memcached-1.2.0/make_solaris.sh
You may also want to read the README.coolstack in there
Since you're on SPARC, if high-performance binaries are important to
you, you'll want to use either Sun Studio compilers or GCC4SS (also on
the cooltools.sunsource.net) site.
Now that I look at it though, it looks like we also had an
LD_LIBRARY_PATH in there. I'm not sure why right now, but I know who to
ask if you need to know. Regardless, it should be a good reference to
help you find what's missing in your build.
I hope that helps,
- Matt
>
> ---------------------------------------------------------
>
> # find / -name '*libevent*'
> /opt/src/libevent-1.3b.tar.gz
> /opt/src/libevent-1.3b
> /opt/src/libevent-1.3b/WIN32-Prj/libevent.dsp
> /opt/src/libevent-1.3b/WIN32-Prj/libevent.dsw
> /opt/src/libevent-1.3b/.libs/libevent-1.3b.so.1.0.3
> /opt/src/libevent-1.3b/.libs/libevent-1.3b.so.1
> /opt/src/libevent-1.3b/.libs/libevent.so
> /opt/src/libevent-1.3b/.libs/libevent.a
> /opt/src/libevent-1.3b/.libs/libevent.lai
> /opt/src/libevent-1.3b/.libs/libevent.la
> /opt/src/libevent-1.3b/libevent.la
> /usr/local/lib/libevent.so
> /usr/local/lib/libevent-1.3b.so.1.0.3
> /usr/local/lib/libevent-1.3b.so.1
> /usr/local/lib/libevent.la
> /usr/local/lib/libevent.a
> # pwd
> /opt/src/memcached-1.2.2
> # ./configure --with-libevent=/usr/local/lib
> checking build system type... sparc-sun-solaris2.10
> checking host system type... sparc-sun-solaris2.10
> checking target system type... sparc-sun-solaris2.10
> checking for a BSD-compatible install... ./install-sh -c
> checking whether build environment is sane... yes
> checking for gawk... no
> checking for mawk... no
> checking for nawk... nawk
> checking whether make sets $(MAKE)... yes
> checking for gcc... gcc
> 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 gcc accepts -g... yes
> checking for gcc option to accept ANSI C... none needed
> checking for style of include used by make... GNU
> checking dependency style of gcc... gcc3
> checking for a BSD-compatible install... ./install-sh -c
> checking for libevent directory... configure: error: libevent is
> required. You can get it from http://www.monkey.org/~provos/libevent/
> <http://www.monkey.org/%7Eprovos/libevent/>
>
> If it's already installed, specify its path using
> --with-libevent=/dir/
> ---------------------------------------------------------
>
>
> Any assistance will be greatly appreciated.
>
> Thanks,
> Matthew Maddox
>
>
> *_Webster *
>
> U N I V E R S I T Y
>
> WORLDWIDE
>
>
>
>
>
> 470 East Lockwood Ave
> St. Louis, MO 63119
> United States
> www.webster.edu <http://www.webster.edu/>
>
> */MAP
> <http://www.google.com/maps?f=q&hl=en&q=470+East+Lockwood+Ave+63119-3194&ie=UTF8&z=15&om=1&iwloc=addr>/*
>
> Matthew Maddox
> *IT Systems Developer & Coordinator* 314-961-2660 x8282
> 314-963-6134 fax
> maddox at webster.edu <mailto:maddox at webster.edu>
>
>
--
Matt Ingenthron - Web Infrastructure Solutions Architect
Sun Microsystems, Inc. - Global Systems Practice
http://blogs.sun.com/mingenthron/
email: matt.ingenthron at sun.com Phone: 310-242-6439
More information about the memcached
mailing list