Linux升级rsync
介绍:
查看当前版本: rsync --version
找到安装目录:which rsync
在管网处下载最新tar.gz包,解压后,进入目录,依次执行以下命令:
第一步:
######配置
sudo ./configure --prefix=/usr/local
######升级新版本可能会报错:
Configure found the following issues: - 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-xxhash --disable-zstd --disable-lz4 configure.sh: error: Aborting configure run
解决的命令:sudo ./configure --disable-xxhash --disable-zstd --disable-lz4
第二步:
#####编译和安装
# 检查是否成功生成 Makefile:
ls -l Makefile
依次执行下述命令: 1.make 2. sudo make install
第三步:验证是否成功升级: rsync -version
如果提示:-bash: /usr/bin/rsync: No such file or directory 则执行 : hash -r ##清除shell路径缓存,在某些情况下,Shell 可能会缓存路径信息
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!