Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1b102cdbf5 | ||
|
|
7f41d85e0b |
67
README
67
README
@@ -1,15 +1,68 @@
|
|||||||
=========
|
=========
|
||||||
编译前准备:
|
编译前准备:
|
||||||
编译前先安装dotconf软件包。
|
|
||||||
libman.so拷贝到/usr/lib64/下
|
|
||||||
pkgadd dotconf#1.0.13-1.pkg.tar.gz
|
|
||||||
|
|
||||||
|
1. 编译前先安装dotconf软件包。
|
||||||
|
* pkg格式
|
||||||
|
pkgadd dotconf#1.0.13-1.pkg.tar.gz
|
||||||
|
* deb格式
|
||||||
|
dpkg -i libdotconf0_1.3-0.2_arm64.deb
|
||||||
|
dpkg -i libdotconf-dev_1.3-0.2_arm64.deb
|
||||||
|
* rpm格式
|
||||||
|
|
||||||
|
2. 安装接口libman.so库文件
|
||||||
|
* pkg格式
|
||||||
|
将libman.so拷贝到/usr/lib64/下
|
||||||
|
* deb格式
|
||||||
|
将libman.so拷贝到/usr/lib/下
|
||||||
|
* rpm格式
|
||||||
|
|
||||||
|
=========
|
||||||
编译说明:
|
编译说明:
|
||||||
在Rocky 4.2上编译
|
* Rocky 4.2上编译
|
||||||
|
执行: sh build.sh
|
||||||
|
将在当前的目录下生成安装包:
|
||||||
|
sys_nicmonitor#1.9-x86_64-Linx-Rocky4.2.pkg.tar.gz
|
||||||
|
* Linx 6.0.90上编译
|
||||||
|
需手动编译并将编译结果手动打包
|
||||||
|
修改源码目录下的Makefile文件
|
||||||
|
原始文件内容:
|
||||||
|
```
|
||||||
|
16 nicinfo_shm.o:nicinfo_shm.c
|
||||||
|
17 $(CC) $(CFLAGS) -fPIC -c $^
|
||||||
|
18 test:test.c
|
||||||
|
19 gcc -o test test.c -lnic_shm -L=./ -lpthread
|
||||||
|
20 runtest:
|
||||||
|
21 LD_LIBRARY_PATH=./ ./test bond0 5000 &
|
||||||
|
```
|
||||||
|
修改后文件内容
|
||||||
|
```
|
||||||
|
16 nicinfo_shm.o:nicinfo_shm.c
|
||||||
|
17 $(CC) $(CFLAGS) -fPIC -c $^
|
||||||
|
18 test:test.c
|
||||||
|
19 gcc -o test test.c -lnic_shm -L./ -lpthread
|
||||||
|
20 runtest:
|
||||||
|
21 LD_LIBRARY_PATH=./ ./test bond0 5000 &
|
||||||
|
```
|
||||||
|
|
||||||
|
arm架构修改mnic.c文件的1535行
|
||||||
|
原始文件内容:
|
||||||
|
```
|
||||||
|
1533 struct passwd *user;
|
||||||
|
1534
|
||||||
|
1535 //#define TESTINTERVAL
|
||||||
|
1536 #ifndef TESTINTERVAL
|
||||||
|
1537 proc_invocation prcm;
|
||||||
|
```
|
||||||
|
修改后文件内容
|
||||||
|
```
|
||||||
|
1533 struct passwd *user;
|
||||||
|
1534
|
||||||
|
1535 #define TESTINTERVAL
|
||||||
|
1536 #ifndef TESTINTERVAL
|
||||||
|
1537 proc_invocation prcm;
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
执行: sh build.sh
|
|
||||||
将在当前的目录下生成安装包:
|
|
||||||
sys_nicmonitor#1.9-x86_64-Linx-Rocky4.2.pkg.tar.gz
|
|
||||||
|
|
||||||
========
|
========
|
||||||
安装说明:
|
安装说明:
|
||||||
|
|||||||
BIN
sys_nicmonitor-mips64-bin.tar.gz
Normal file
BIN
sys_nicmonitor-mips64-bin.tar.gz
Normal file
Binary file not shown.
BIN
sys_nicmonitor-mips64.tar.gz
Normal file
BIN
sys_nicmonitor-mips64.tar.gz
Normal file
Binary file not shown.
Reference in New Issue
Block a user