使用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找到安装的库,成功
使用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
本文链接:https://www.haomeiwen.com/subject/hfbctqtx.html
网友评论