版本介绍:
Linux:CentOS 7
libevent:2.0.20
安装步骤:
1.进入libevent-2.0.20-stable.tar.gz所在文件夹
2.解压libevent-2.0.20-stable.tar.gz
3.进入解压后的文件夹执行配置并安装
]# ./configure -prefix=/usr
]# make
]# make install
4.检查是否安装成功
]# ls -al /usr/lib | grep libevent
lrwxrwxrwx. 1 root root 21 Aug 8 09:19 libevent-2.0.so.5 -> libevent-2.0.so.5.1.8
-rwxr-xr-x. 1 root root 1139721 Aug 8 09:19 libevent-2.0.so.5.1.8
-rw-r--r--. 1 root root 2220850 Aug 8 09:19 libevent.a
lrwxrwxrwx. 1 root root 26 Aug 8 09:19 libevent_core-2.0.so.5 -> libeven _core-2.0.so.5.1.8
-rwxr-xr-x. 1 root root 690086 Aug 8 09:19 libevent_core-2.0.so.5.1.8
-rw-r--r--. 1 root root 1393314 Aug 8 09:19 libevent_core.a
-rwxr-xr-x. 1 root root 972 Aug 8 09:19 libevent_core.la
lrwxrwxrwx. 1 root root 26 Aug 8 09:19 libevent_core.so -> libevent_core-2.0.so.5.1.8
lrwxrwxrwx. 1 root root 27 Aug 8 09:19 libevent_extra-2.0.so.5 -> libevent_extra-2.0.so.5.1.8
-rwxr-xr-x. 1 root root 471663 Aug 8 09:19 libevent_extra-2.0.so.5.1.8
-rw-r--r--. 1 root root 827608 Aug 8 09:19 libevent_extra.a
-rwxr-xr-x. 1 root root 979 Aug 8 09:19 libevent_extra.la
lrwxrwxrwx. 1 root root 27 Aug 8 09:19 libevent_extra.so -> libevent_extra-2.0.so.5.1.8
-rwxr-xr-x. 1 root root 937 Aug 8 09:19 libevent.la
lrwxrwxrwx. 1 root root 30 Aug 8 09:19 libevent_pthreads-2.0.so.5 -> libevent_pthreads-2.0.so.5.1.8
-rwxr-xr-x. 1 root root 23947 Aug 8 09:19 libevent_pthreads-2.0.so.5.1.8
-rw-r--r--. 1 root root 21926 Aug 8 09:19 libevent_pthreads.a
-rwxr-xr-x. 1 root root 1000 Aug 8 09:19 libevent_pthreads.la
lrwxrwxrwx. 1 root root 30 Aug 8 09:19 libevent_pthreads.so -> libevent_pthreads-2.0.so.5.1.8
lrwxrwxrwx. 1 root root 21 Aug 8 09:19 libevent.so -> libevent-2.0.so.5.1.8
注意:安装前请确认gcc已安装
参考自:http://www.cnblogs.com/kunhu/p/3632225.html