It is a great help. Thank you so much.
root@spica:/usr/src/memcached-1.4.13# ldd /usr/local/memcached/bin/
memcached
linux-vdso.so.1 => (0x00007fff92eda000)
libevent-2.0.so.5 => /usr/local/lib/libevent-2.0.so.5
(0x00007fb43b43e000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fb43b236000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
(0x00007fb43b018000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fb43ac77000)
/lib64/ld-linux-x86-64.so.2 (0x00007fb43b68f000)
I managed to compile libevent 2.0.18 with a great support from
libevent developer community.
And now I can link both custom compiled memcached and libevent
together.
It works now.
PS: Yesterday I gave up the custom compiled memcached and install
memcached via apt-get. It worked. Today, I tried it again once more
time with your instruction and libevent developer community support.
It is great that it works.
Many thanks again.
Dinh
On Apr 26, 11:25 pm, Wendy Cheng <[email protected]> wrote:
> On Thu, Apr 26, 2012 at 2:06 AM, pcdinh <[email protected]> wrote:
>
>
> Again, I'm not sure newer libevent would help ... worth a try though ..
>
> To allow memcached to find the new library (say in /usr/local) to link
> with during run time, on RHEL system, I do:
>
> shell> cd memcached-x.y.x
> shell> ./configure --with-lib-event=/usr/local/ && make && make install
> shell> echo "/usr/local/lib/" > /etc/ld.so.conf.d/libevent.conf
> shell> ldconfig
>
> Try to find the equivalent cmds on Ubuntu.
>
> ref:http://www.yolinux.com/TUTORIALS/LibraryArchives-StaticAndDynamic.html
>
> Hope this helps !
>
> -- Wendy