Ubuntu安装libevent

使用git下载 git clone https://github.com/libevent/libevent.git

sudo apt-get install cmake

sudo apt install libssl-dev

创建存放位置文件夹 mkdir build && cd build

cmake ..

make

make verify[optional]

sudo make install

在/usr/local/lib和/usr/local/include找到安装的库,成功

你可能感兴趣的:(Ubuntu安装libevent)