Linux下libevent安装


[root@localhost ~]# wget https://sourceforge.net/projects/levent/files/libevent/libevent-2.0/libevent-2.0.22-stable.tar.gz
--2015-04-24 11:30:56-- https://sourceforge.net/projects/levent/files/libevent/libevent-2.0/libevent-2.0.22-stable.tar.gz
正在解析主机 sourceforge.net... 216.34.181.60
Connecting to sourceforge.net|216.34.181.60|:443... 已连接。
ERROR: certificate common name `*.sourceforge.net' doesn't match requested host name `sourceforge.net'.
To connect to sourceforge.net insecurely, use `--no-check-certificate'.
无法建立 SSL 连接。
[root@localhost ~]# wget http://sourceforge.net/projects/levent/files/libevent/libevent-2.0/libevent-2.0.22-stable.tar.gz
--2015-04-24 11:31:07-- http://sourceforge.net/projects/levent/files/libevent/libevent-2.0/libevent-2.0.22-stable.tar.gz


100%[========================================================================================================================================>] 854,987 317K/s in 2.6s

2015-04-24 11:31:15 (317 KB/s) - `libevent-2.0.22-stable.tar.gz' saved [854987/854987]
[root@localhost ~]# tar zxvf libevent-2.0.22-stable.tar.gz
[root@localhost libevent-2.0.22-stable]# cd libevent-2.0.22-stable
[root@localhost libevent-2.0.22-stable]# ./configure -prefix=/usr
[root@localhost libevent-2.0.22-stable]# make
[root@localhost libevent-2.0.22-stable]# make install
[root@localhost libevent]# ls -al /usr/lib | grep libevent
lrwxrwxrwx 1 root root 21 04-24 11:41 libevent-2.0.so.5 -> libevent-2.0.so.5.1.9
-rwxr-xr-x 1 root root 773058 04-24 11:41 libevent-2.0.so.5.1.9
lrwxrwxrwx 1 root root 26 04-24 11:41 libevent_core-2.0.so.5 -> libevent_core-2.0.so.5.1.9
-rwxr-xr-x 1 root root 467660 04-24 11:41 libevent_core-2.0.so.5.1.9
-rwxr-xr-x 1 root root 970 04-24 11:41 libevent_core.la
lrwxrwxrwx 1 root root 27 04-24 11:41 libevent_extra-2.0.so.5 -> libevent_extra-2.0.so.5.1.9
-rwxr-xr-x 1 root root 323782 04-24 11:41 libevent_extra-2.0.so.5.1.9
-rwxr-xr-x 1 root root 977 04-24 11:41 libevent_extra.la
-rwxr-xr-x 1 root root 935 04-24 11:41 libevent.la
lrwxrwxrwx 1 root root 29 04-24 11:41 libevent_openssl-2.0.so.5 -> libevent_openssl-2.0.so.5.1.9
-rwxr-xr-x 1 root root 71489 04-24 11:41 libevent_openssl-2.0.so.5.1.9
-rw-r--r-- 1 root root 79904 04-24 11:41 libevent_openssl.a
-rwxr-xr-x 1 root root 1006 04-24 11:41 libevent_openssl.la
lrwxrwxrwx 1 root root 29 04-24 11:41 libevent_openssl.so -> libevent_openssl-2.0.so.5.1.9
lrwxrwxrwx 1 root root 30 04-24 11:41 libevent_pthreads-2.0.so.5 -> libevent_pthreads-2.0.so.5.1.9
-rwxr-xr-x 1 root root 14325 04-24 11:41 libevent_pthreads-2.0.so.5.1.9
-rw-r--r-- 1 root root 11874 04-24 11:41 libevent_pthreads.a
-rwxr-xr-x 1 root root 998 04-24 11:41 libevent_pthreads.la
lrwxrwxrwx 1 root root 30 04-24 11:41 libevent_pthreads.so -> libevent_pthreads-2.0.so.5.1.9

安装成功

未经允许不得转载:ganlei的个人博客 » Linux下libevent安装

赞 (0)
分享到:更多 ()