libevent官网
http://libevent.org/
安装步骤
注意:以root用户身份操作
1、下载源码包
https://github.com/libevent/libevent/releases/download/release-2.1.12-stable/libevent-2.1.12-stable.tar.gz
2、解压
tar zxvf libevent-2.1.12-stable.tar.gz
3、配置安装路径
cd libevent-2.1.12-stable(须有编译器g++ gcc)
./configure --disable-openssl
4、编译并安装
make
make install
5、测试libevent是否安装成功:
# ls -la /usr/local/include | grep event
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/c8bb24e0fc416968e0fc84751e602de5.png)
6、如果编译后的程序提示找不到libvent的so,则创建库的链接和缓存文件
ldconfig
编译选项 -levent
$apt-get install autoconf automake libtool curl make g++ unzip
$apt-get install git
$ git clone https://github.com/protocolbuffers/protobuf.git
$unzip protobuf-master.zip
$ cd protobuf
$ git submodule update --init --recursive
$ ./autogen.sh
$ ./configure
$ make
$ make check
$ sudo make install
$ sudo ldconfig
$protoc