# LibeventDemo **Repository Path**: DengLibin/libevent-demo ## Basic Information - **Project Name**: LibeventDemo - **Description**: libevent学习笔记 - **Primary Language**: C - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-09-06 - **Last Updated**: 2022-08-05 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### 1.window环境搭建 下载源码(https://github.com/libevent/libevent), 解压进入目录中,CMakLists.txt设置变量; ``` set(OPENSSL_ROOT_DIR D:/clib/openssl) //提前编译好openssl 并安装到 D:/clib/openssl目录 ``` 使用cmake编译安装 ### 2.linux(centos7)环境 #### 2.1 libevent环境 ```c++ tar -zxvf libevent-2.1.12-stable.tar.gz cd libevent-2.1.12-stable ./configure --prefix=/usr --libdir=/usr/lib64 make make install ``` #### 2.2 zlog环境 ```c++ yum install texinfo github下载源码 ./configure make make install ``` ### 3.clion 远程linux环境配置 https://www.pianshen.com/article/91681928111/