On Thu, Apr 26, 2012 at 2:06 AM, pcdinh <[email protected]> wrote:
> The native box is my development environment at my office. Sample OS
> (Ubuntu 11.10), same libs (autoconf 2.68 ....)
> In development environment it works. Now I want to move the source
> code to a production environment which is Xen-based
> I have too much issue with Amazon's EC2 which is Xen-based as well.
>
> Here is the information about libevent on my VM instance (hosted at
> Linode). I have no information about the host machine
>
> root@spica:/usr/src/libevent-2.0.18-stable# dpkg --get-selections |
> grep libevent
> libevent-2.0-5                                  install
> libevent-core-2.0-5                             install
> libevent-dev                                    install
> libevent-extra-2.0-5                            install
> libevent-openssl-2.0-5                          install
> libevent-pthreads-2.0-5                         install
>
> memcached provides an option --with-libevent while compiling the
> source code. I tried to compile a newer libevent and link it to
> memcached. Some guys at libevent mailing list help me to understand
> that "make" on that Xen-based Linux box seems to not working as
> expected. It generates invalid event-config.h by introducing some
> invalid characters. There is no such an issue on my native box.
> http://archives.seul.org/libevent/users/Apr-2012/msg00053.html
>
> After I removed them, I can compile libevent and install it. But I am
> not sure why memcached still links to the system wide libevent (after
> being recompiled and installed)
>
> I don't know is there any special settings that I need to take into
> account before I can solve this issue. Any idea?
>

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

Reply via email to