sách gpt4 ai đã đi

Làm thế nào để cài đặt (biên dịch) rsync v3.2.3 hoàn chỉnh (với tất cả các tính năng - hỗ trợ ACL/hỗ trợ Xattr/thư viện xxhash/thư viện zstd) trên máy Mac?

In lại 作者:行者123 更新时间:2023-12-05 02:50:30 46 4
mua khóa gpt4 Nike

我正在尝试通过编译在 Mac 上安装 rsync 3.2.3。但是,我想安装所有功能。为此,它需要一些库,此处 ( https://download.samba.org/pub/rsync/INSTALL ) 没有解释如何安装和/或编译它们。

顺便说一句,当我“./prepare-source”时,我收到这条消息:

make: 没有什么可以为 `conf' 做的。

这样对吗?

通过运行“./configure”我得到这个消息:

配置发现如下问题:

  • 找不到 openssl/md4.h 和 openssl/md5.h 以支持 openssl 加密库。
  • 找不到用于 xxhash 校验和支持的 xxhash.h。
  • 找不到用于 zstd 压缩支持的 zstd.h。
  • 找不到 lz4.h 以支持 lz4 压缩。

有关如何安装缺少的库和/或的提示,请参阅 INSTALL 文件如何生成(或获取)手册页: https://github.com/WayneD/rsync/blob/master/INSTALL.md

要禁用一项或多项功能,相关的配置选项是:--disable-openssl--disable-xxhash--disable-zstd--禁用-lz4

configure.sh:错误:中止配置运行

所以,就像我之前说的,我想安装所有功能(ACL 支持/Xattr 支持/xxhash 库/zstd 库)。

非常感谢您的帮助!

Cảm ơn trước nhé!

1 Câu trả lời

首先,安装 Homebrew:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

然后执行以下命令:

brew install xxhash; brew install zstd; brew install lz4; brew install openssl;
export LDFLAGS="-L/usr/local/opt/openssl@1.1/lib";
export CPPFLAGS="-I/usr/local/opt/openssl@1.1/include";
echo 'export PATH="/usr/local/opt/openssl@1.1/bin:$PATH"' >> ~/.zshrc;

再次尝试执行:./配置

更新 -- 06/05/2021

您可以尝试将以下脚本粘贴到终端中并运行:

cd ~/Desktop;
curl -OL https://github.com/Cyan4973/xxHash/archive/v0.8.0.tar.gz;
tar -xvf v0.8.0.tar.gz;
cd xxHash-0.8.0;
make -j4;
sudo make install;

cd ~/Desktop;
curl -OL https://github.com/lz4/lz4/archive/v1.9.3.tar.gz;
tar -xvf v1.9.3.tar.gz;
cd lz4-1.9.3;
make -j4;
sudo make install;

cd ~/Desktop;
curl -OL https://www.openssl.org/source/openssl-1.1.1k.tar.gz;
tar -xvf openssl-1.1.1k.tar.gz;
cd openssl-1.1.1k ;
./config;
make -j4;
sudo make install;

cd ~/Desktop;
curl -OL https://github.com/facebook/zstd/archive/v1.5.0.tar.gz;
tar -xvf v1.5.0.tar.gz;
cd zstd-1.5.0 ;
make -j4;
sudo make install;

cd ~/Desktop;
curl -OL https://rsync.samba.org/ftp/rsync/src/rsync-3.2.3.tar.gz;
tar -xvf rsync-3.2.3.tar.gz;
cd rsync-3.2.3;
./configure;
make -j4;
sudo make install;

cd /usr/local/bin;
./rsync --version;

查找所有软件包源代码下载地址是一项繁琐的工作。如果您是“脚本纯粹主义者”,您确实可以这样做。但我认为Homebrew确实可以解放程序员的双手,摆脱“淹没在curl和printlog的海洋中”的噩梦。

如何知道每个包的下载地址? google了几天,到底还是得引用一下Homebrew的公式代码:

xxhash:https://formulae.brew.sh/formula/xxhash#default

lz4:https://formulae.brew.sh/formula/lz4#default

openssl1.1: https://formulae.brew.sh/formula/openssl@1.1#default

zstd:https://formulae.brew.sh/formula/zstd#default

关于macos - 如何在 Mac 上完整(具有所有功能 - ACL 支持/Xattr 支持/xxhash 库/zstd 库)安装(编译)rsync v3.2.3?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63660364/

46 4 0
行者123
Hồ sơ cá nhân

Tôi là một lập trình viên xuất sắc, rất giỏi!

Nhận phiếu giảm giá Didi Taxi miễn phí
Mã giảm giá Didi Taxi
Giấy chứng nhận ICP Bắc Kinh số 000000
Hợp tác quảng cáo: 1813099741@qq.com 6ren.com