-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathINSTALL
36 lines (33 loc) · 996 Bytes
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
1.libevent环境的准备
====================
(1).下载libevent
登录github,下载Libevent-release-2.0.22-stable
(2).libevent安装环境准备
$ sudo apt-get install automake
$ sudo apt-get install libtool-bin
(3).安装libevent
$ unzip Libevent-release-2.0.22-stable
$ cd Libevent-release-2.0.22-stable
$ ./autogen.sh
$ ./configure
$ make
$ make verify #(optional)
$ sudo make install
(4).编译支持
编译时加上链接库 -levent
2.OpenSSL环境的准备
====================
(1).安装openssl和相关库
$ sudo apt-get install openssl libssl-dev
(2).编译支持
编译时加上链接库 -lcrypto
3.MYSQL环境的准备
====================
(1).安装MYSQL和相关库
$ sudo apt-get install mysql-server mysql++-dev
$ sudo apt-get install libmysqlclient-dev
(2).编译支持
编译时加上链接库 -lmysqlclient
4.编译lightserver
====================
$ make