Internal Links
Main
Mac
Linux
Previous Work
Blog
Contact
External Links
HOWTO compile rsync version 3.x and get a universal binary that will run on 10.4.x and 10.5.x.
Note: You will need a PPC and Intel based mac running 10.4.x and the developer tools installed.
On the PPC Mac Download both the rsync source(rysnc-3.x.x.tar.gz) and patches (rsync-patches-3.x.x.tar.gz ) from http://www.rsync.samba.org. Once you have the files open up the terminal and move into the same directory you downloaded the files to. Extract the files like so.
tar xzvf rsync-3.x.x.tar.gz
tar xzvf rsync-patches-3.x.x.tar.gz
cd rsync-3.x.x
patch the source so rsync will work correctly under Mac OS X.
patch -p1 <patches/fileflags.diff patch -p1 <patches/crtimes.diff
compile and install.
./configure make sudo make install
You should now have a binary of rsync in /usr/local/bin. Copy it out for later use with the Intel version.
cp /usr/local/bin/rsync ~/rsync3-ppc
Now repeat the steps above for compiling the software on the Intel Mac. Once you have both binary files together use lipo to create a single binary.
lipo -create rsync3-ppc rsync3-intel -output rsync3