媒介:本文操作是在 CentOS-7 下执行的,不确定在其他 Linux 发布版是否能同样正常执行。1、检查前置依赖组件
本示例安装包的直接下载地址为:https://download.samba.org/pub/rsync/src/rsync-3.4.1.tar.gz4、上传安装包到服务器
注意:如果没有先安装第一节提到的相关前置依赖组件,那么在设置 rsync 时可能会失败:7、修改rsync类型字节数
Configure found the following issues:
- Failed to find openssl/md4.h and openssl/md5.h for openssl crypto lib support.
- Failed to find xxhash.h for xxhash checksum support.
- Failed to find zstd.h for zstd compression support.
- Failed to find lz4.h for lz4 compression support.
See the INSTALL file for hints on how to install the missing libraries and/or
how to generate (or fetch) manpages:
https://github.com/RsyncProject/rsync/blob/master/INSTALL.md
To disable one or more features, the relevant configure options are:
--disable-openssl
--disable-xxhash
--disable-zstd
--disable-lz4
configure.sh: error: Aborting configure run
注意:如果没有执行第七节的修改 rsync 类型字节数操作,那么在编译 rsync 时可能会失败:9、安装rsync
gawk -f ./daemon-parm.awk ./daemon-parm.txt
gawk -f ./mkproto.awk ./*.c ./lib/compat.c daemon-parm.h
In file included from ./rounding.c:20:0:
./rsync.h:614:3: 错误:#error Could not find a 32-bit integer variable
# error Could not find a 32-bit integer variable
^
./rsync.h:683:2: 错误:未知的类型名‘int32’
int32 size, entries;
^
./rsync.h:684:9: 错误:expected ‘:’, ‘,’, ‘;’, ‘}’ or ‘attribute’ before ‘node_size’
uint32 node_size;
^
./rsync.h:690:2: 错误:未知的类型名‘int32’
int32 key;
^
./rsync.h:774:3: 错误:#error Character pointers are not 4 or 8 bytes.
# error Character pointers are not 4 or 8 bytes.
^
./rsync.h:787:2: 错误:未知的类型名‘int32’
int32 num;
.........................
.........................
^
./proto.h:316:28: 错误:未知的类型名‘int32’
void see_token(char *data, int32 toklen);
^
./proto.h:369:8: 错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘fuzzy_distance’
uint32 fuzzy_distance(const char *s1, unsigned len1, const char *s2, unsigned len2, uint32 upperlimit);
^
./rounding.c: 在函数‘main’中:
./rounding.c:35:13: 警告:变量‘test_array’被设定但未被使用 [-Wunused-but-set-variable]
static int test_array[1 - 2 * (ACTUAL_SIZE != EXPECTED_SIZE)];
^
Failed to create rounding.h!
make: *** [rounding.h] 错误 1
提示:完成升级后,新版本号必要退出重新登录访问才能查询到,否则查到的是旧版本号。本文参考
欢迎光临 qidao123.com技术社区-IT企服评测·应用市场 (https://dis.qidao123.com/) | Powered by Discuz! X3.4 |