Search This Blog

Monday, September 23, 2013

Install libevent for CentOS RHEL OEL

Default way install library will put everything into /usr/local.

To keep it more Redhat looks:

1.First remove the old library to avoid any conflict:


yum erase libevent*


2.Download and uncompress the package:

wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
tar xzvf libevent-2.0.21-stable.tar.gz


3.Compile and install into /usr/lib:

cd libevent-2.0.21-stable
make clean
./configure --prefix=/usr
make
make install


You should have it under /usr/lib, with correct /usr/lib/pkgconfig. Not changes LD_LIBRARY_PATH needed at all!

4.If unhappy with where it installed, uninstall anytime:

cd libevent-2.0.21-stable
make uninstall

2 comments:

  1. make: *** No targets specified and no makefile found. Stop.

    ReplyDelete
  2. Hi there, try to check your typo on the command?

    ReplyDelete