1.下载libevent源码
$ git clone https://github.com/libevent/libevent.git
2. 创建本地安装目录 并 添加本地bin目录到环境变量PATH
$ export MY_INSTALL_DIR=$HOME/.libevent $ mkdir -p $MY_INSTALL_DIR $ export PATH="$MY_INSTALL_DIR/bin:$PATH
3. 构建并安装
$ cd libevent $ mkdir -p cmake/build $ cd cmake/build $ cmake -DCMAKE_INSTALL_PREFIX=$MY_INSTALL_DIR ../.. $ make $ make install
标签:cmake,Libevent,start,INSTALL,libevent,Quick,PATH,MY,DIR From: https://www.cnblogs.com/suphgcm/p/17231938.html