zoukankan      html  css  js  c++  java
  • Linux系统centos6.7上安装libevent

    1 下载地址:http://libevent.org/

    2、解压 
    tar zxvf libevent-2.0.21-stable.tar.gz

    安装前请先安装 gcc 

    yum install gcc


    3、配置安装路径 
    cd libevent-2.0.21-stable 
    ./configure -prefix=/usr
    4、编译并安装 
    make 
    make install
    5、测试libevent是否安装成功: 
    # ls -al /usr/lib | grep libevent

    ===============

    [root@test01 libevent]# ls -al /usr/lib | grep libevent
    lrwxrwxrwx. 1 root root 21 Mar 12 11:37 libevent-2.1.so.6 -> libevent-2.1.so.6.0.2
    -rwxr-xr-x. 1 root root 1128428 Mar 12 11:37 libevent-2.1.so.6.0.2
    -rw-r--r--. 1 root root 1817376 Mar 12 11:37 libevent.a
    lrwxrwxrwx. 1 root root 26 Mar 12 11:37 libevent_core-2.1.so.6 -> libevent_core-2.1.so.6.0.2
    -rwxr-xr-x. 1 root root 722364 Mar 12 11:37 libevent_core-2.1.so.6.0.2
    -rw-r--r--. 1 root root 1194526 Mar 12 11:37 libevent_core.a
    -rwxr-xr-x. 1 root root 978 Mar 12 11:37 libevent_core.la
    lrwxrwxrwx. 1 root root 26 Mar 12 11:37 libevent_core.so -> libevent_core-2.1.so.6.0.2
    lrwxrwxrwx. 1 root root 27 Mar 12 11:37 libevent_extra-2.1.so.6 -> libevent_extra-2.1.so.6.0.2
    -rwxr-xr-x. 1 root root 426282 Mar 12 11:37 libevent_extra-2.1.so.6.0.2
    -rw-r--r--. 1 root root 622922 Mar 12 11:37 libevent_extra.a
    -rwxr-xr-x. 1 root root 985 Mar 12 11:37 libevent_extra.la
    lrwxrwxrwx. 1 root root 27 Mar 12 11:37 libevent_extra.so -> libevent_extra-2.1.so.6.0.2
    -rwxr-xr-x. 1 root root 943 Mar 12 11:37 libevent.la
    lrwxrwxrwx. 1 root root 29 Mar 12 11:37 libevent_openssl-2.1.so.6 -> libevent_openssl-2.1.so.6.0.2
    -rwxr-xr-x. 1 root root 100243 Mar 12 11:37 libevent_openssl-2.1.so.6.0.2
    -rw-r--r--. 1 root root 139610 Mar 12 11:37 libevent_openssl.a
    -rwxr-xr-x. 1 root root 1005 Mar 12 11:37 libevent_openssl.la
    lrwxrwxrwx. 1 root root 29 Mar 12 11:37 libevent_openssl.so -> libevent_openssl-2.1.so.6.0.2
    lrwxrwxrwx. 1 root root 30 Mar 12 11:37 libevent_pthreads-2.1.so.6 -> libevent_pthreads-2.1.so.6.0.2
    -rwxr-xr-x. 1 root root 18478 Mar 12 11:37 libevent_pthreads-2.1.so.6.0.2
    -rw-r--r--. 1 root root 18686 Mar 12 11:37 libevent_pthreads.a
    -rwxr-xr-x. 1 root root 1006 Mar 12 11:37 libevent_pthreads.la
    lrwxrwxrwx. 1 root root 30 Mar 12 11:37 libevent_pthreads.so -> libevent_pthreads-2.1.so.6.0.2
    lrwxrwxrwx. 1 root root 21 Mar 12 11:37 libevent.so -> libevent-2.1.so.6.0.2

  • 相关阅读:
    var与dynamic
    SQL Server占用服务器内存过高
    SQL SERVER 2012/ 2014 分页,用 OFFSET,FETCH NEXT改写ROW_NUMBER的用法
    SQL Server 2012 OFFSET/FETCH NEXT分页示例
    Solr初始化源码分析-Solr初始化与启动
    (c#) 销毁资源和释放内存
    C#中 ThreadStart和ParameterizedThreadStart区别
    MongoDB的C#封装类
    mongo DB for C#
    C#操作MongoDB
  • 原文地址:https://www.cnblogs.com/Samuel-Leung/p/10515709.html
Copyright © 2011-2022 走看看