-
Notifications
You must be signed in to change notification settings - Fork 2
/
几个NMS系统核心网的 三方依赖架构源码 Aserver Nserver编译成功
104 lines (85 loc) · 3.61 KB
/
几个NMS系统核心网的 三方依赖架构源码 Aserver Nserver编译成功
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
几个NMS系统核心网的 三方依赖架构源码
---AServer---
mysql
http://mysqlrelease.com/2014/09/mysql-on-github/
git clone https://github.com/mysql/mysql-server
方案二
wget http://dev.mysql.com/get/Downloads/MySQL-5.6/mysql-5.6.15.tar.gz
tar zxvf mysql-5.6.15.tar.gz
方案三
这个 只是 安装 但是 不能满足开发
sudo yum install mysql-community-server
yum 安装开发包
yum install mysql-devel
openssl
git clone https://github.com/openssl/openssl
./config
make
make install
mqtt
git clone https://github.com/eclipse/paho.mqtt.c
默认 生成的是 .so 文件
我们哪怕 复制到 指定的三方依赖的查找目录 也不行
.so 必须make make install 安装到系统目录
同时注意mqtt 用到了 openssl 因此 需要系统支持 先安装开发包 yum install opemssl-devel
莫名报错 请安装
yum install zlib
yum install zlib-devel 针对.so文件
同时 注意 cmake 软件 终端 make 缓存 莫名其妙 不过不应该
redis
本以为只需安装这个
git clone https://github.com/redis/hiredis
但从源码来看
源码以来redis server
redisserver 包 依赖 hiredis
需要 make
依赖 jemalloc
需要 make
依赖 lua
需要 make linux 同时 安装它 系统需要安装开发包 yum install readline-devel
[root@bogon build]# make
Scanning dependencies of target aserver
[ 6%] Building C object src/CMakeFiles/aserver.dir/encryptprocess.c.o
[ 13%] Building C object src/CMakeFiles/aserver.dir/networkcom.c.o
[ 20%] Building C object src/CMakeFiles/aserver.dir/queue.c.o
[ 26%] Building C object src/CMakeFiles/aserver.dir/tcp.c.o
[ 33%] Building C object src/CMakeFiles/aserver.dir/log.c.o
[ 40%] Building C object src/CMakeFiles/aserver.dir/json.c.o
[ 46%] Building C object src/CMakeFiles/aserver.dir/lora.c.o
[ 53%] Building C object src/CMakeFiles/aserver.dir/aserver.c.o
[ 60%] Building C object src/CMakeFiles/aserver.dir/database.c.o
[ 66%] Building C object src/CMakeFiles/aserver.dir/console.c.o
[ 73%] Building C object src/CMakeFiles/aserver.dir/base64.c.o
[ 80%] Building C object src/CMakeFiles/aserver.dir/main.c.o
[ 86%] Building C object src/CMakeFiles/aserver.dir/redis.c.o
[ 93%] Building C object src/CMakeFiles/aserver.dir/aes.c.o
[100%] Building C object src/CMakeFiles/aserver.dir/mqtt.c.o
Linking C executable ../bin/aserver
[100%] Built target aserver
[root@bogon build]#
aserver 源码 编译安装成功
-----------Nserver---
libev
下载libev 源码
http://dist.schmorp.de/libev/libev-4.24.tar.gz
Scanning dependencies of target nserver
[ 5%] Building C object src/CMakeFiles/nserver.dir/database.c.o
[ 11%] Building C object src/CMakeFiles/nserver.dir/console.c.o
[ 17%] Building C object src/CMakeFiles/nserver.dir/base64.c.o
[ 23%] Building C object src/CMakeFiles/nserver.dir/main.c.o
[ 29%] Building C object src/CMakeFiles/nserver.dir/redis.c.o
[ 35%] Building C object src/CMakeFiles/nserver.dir/aes.c.o
[ 41%] Building C object src/CMakeFiles/nserver.dir/libev.c.o
[ 47%] Building C object src/CMakeFiles/nserver.dir/log.c.o
[ 52%] Building C object src/CMakeFiles/nserver.dir/nserver.c.o
[ 58%] Building C object src/CMakeFiles/nserver.dir/json.c.o
[ 64%] Building C object src/CMakeFiles/nserver.dir/lora.c.o
[ 70%] Building C object src/CMakeFiles/nserver.dir/test.c.o
[ 76%] Building C object src/CMakeFiles/nserver.dir/encryptprocess.c.o
[ 82%] Building C object src/CMakeFiles/nserver.dir/networkcom.c.o
[ 88%] Building C object src/CMakeFiles/nserver.dir/license.c.o
[ 94%] Building C object src/CMakeFiles/nserver.dir/queue.c.o
[100%] Building C object src/CMakeFiles/nserver.dir/idle.c.o
Linking C executable ../bin/nserver
[100%] Built target nserver
[root@bogon build]#