Centos 安装libevent

1.在http://libevent.org/下载libevent-2.1.8-stable.tar.gz

2.解压缩 tar -zxvf libevent-2.1.8-stable.tar.gz

    cd libevent-2.1.8-stable

3.  ./configure –-prefix=/home/dj/lib/libevent

     make

     make install


4.为了防止运行时动态库链接问题

  在/etc/ld.so.conf 最后面加上 /home/dj/lib/libevent/lib

  /sbin/ldconfig立即生效

  

posted @ 2017-12-04 17:31  蓝天飞翔的白云  阅读(4405)  评论(0编辑  收藏  举报