sh 如何在Mac OSX上安装和编译rsync

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh 如何在Mac OSX上安装和编译rsync相关的知识,希望对你有一定的参考价值。

#Compile rsync 3.1.2

#Follow these instructions in Terminal on both the client and server to download and compile rsync 3.1.2:

#Download and unarchive rsync and its patches
curl -O http://rsync.samba.org/ftp/rsync/src/rsync-3.1.2.tar.gz
tar -xzvf rsync-3.1.2.tar.gz
rm rsync-3.1.2.tar.gz
curl -O http://rsync.samba.org/ftp/rsync/src/rsync-patches-3.1.2.tar.gz
tar -xzvf rsync-patches-3.1.2.tar.gz
rm rsync-patches-3.1.2.tar.gz
cd rsync-3.1.2

#Apply patches relevant to preserving Mac OS X metadata
patch -p1 <patches/fileflags.diff
patch -p1 <patches/crtimes.diff
patch -p1 <patches/hfs-compression.diff

#Configure, make, install
./prepare-source
./configure
make
sudo make install

#Verify your installation
/usr/local/bin/rsync --version

#By default, rsync will be installed in /usr/local/bin. 
#If that isn't in your path, you will need to call your new version of rsync by its absolute path (/usr/local/bin/rsync).

以上是关于sh 如何在Mac OSX上安装和编译rsync的主要内容,如果未能解决你的问题,请参考以下文章