Issues installing rsync 3.0.9 - Mountain Lion

Hello all,


I'm attempting to upgrade from rsync 2.6.9 to 3.0.9 on my 15" mid-2011 MacBook Pro, running 10.8.2. I'd like to install the latest version of rsync to backup to an external hard drive. I've used rsync to do this from 10.4 on, but in 10.8 it's (2.6.9) not making a bootable clone.


I have Xcode version 4.5 with Command Line Tools installed.


I've downloaded rsync-3.0.9.tar.gz and rsync-patches-3.0.9.tar.gz from rsync.samba.org.


From the helpful posting provided by "Tony T1" (see: rsync version 2.6.9 included very old, should be 3.0.9), I've attempted to install using the following info:



Download and unarchive rsync and its patches Move patches directory to rsync-3.0.9

cd rsync-3.0.9

Apply patches relevant to preserving Mac OS X metadata

patch -p1 <patches/fileflags.diff

patch -p1 <patches/crtimes.diff

Apply patch relevant to preserving Mac OS X hfs+compression

patch -p1 <patches/hfs-compression.diff

Configure, make, install ./prepare-source

./configure
make
sudo make install

Verify your installation rsync --version


I seem to be very close to success, but not quite there, as indicated by the following line when I run ./prepare-source:


Mountains-MacBook-Pro:rsync-3.0.9
make: Nothing to be done for `conf'.

If I proceed with the ./configure command, I get: rsync 3.0.9 configuration successful

However, "rsync --version" indicates it is still at 2.6.9.


Can someone tell me what I'm missing? I have a pdf of the attempt from Terminal if you'd care to take a look.

MacBook Pro, OS X Mountain Lion (10.8.2)

Posted on Oct 1, 2012 8:14 AM

Reply
26 replies

Jan 5, 2014 4:59 PM in response to garysweaver

Update: Mavericks


Homebrew fixes a lot of the problems for me with OSX having outdated/broken tools. On Mavericks I had to


brew install homebrew/dupes/rsync

mv /usr/bin/rsync /usr/bin/rsync.old

ln -s /usr/local/bin/rsync /usr/bin/rsync (symlink the new homebrew version)


in order for everything to play nice.


For me this fixed the issue of rsync hanging while transferring. The old rsync (2.6.9 and 3.0.9) would consistently (as in always) hang at arbitrary points during transfers.


The homebrew version also fixed errors of various and sundry types (permissions or file not found) while transferring metadata.

Dec 14, 2015 12:57 PM in response to Gnarlodious

Hi there,


Sorry to tack this onto a relatively old thread, but /usr/bin now seems to be "locked" in El Capitan. What gives? Even with elevating permissions to root with sudo, I can't overwrite rsync 2.6.9 with the latest version I compiled.


If I try from Terminal, I get this:


MacBook-Pro:rsync-3.1.1 sethgoldin$ sudo mv /usr/local/bin/rsync /usr/bin

override rwxr-xr-x root/wheel for /usr/bin/rsync? (y/n [n]) y

mv: rename /usr/local/bin/rsync to /usr/bin/rsync: Operation not permitted


If I try in the GUI, I get this crazy dialogue box:

User uploaded file


In El Capitan, do I now have to enable the root account, log into there, and take care of it from the root account?


Seth Goldin

Washington, DC

Dec 14, 2015 7:35 PM in response to Seth Goldin

That is NOT a good idea. Because OS X may do an update and remove your rsync update.

Better to put your rsync in /usr/local/bin (assuming SIP does not prevent putting your stuff in /usr/local/..., or /opt/local, or your own new customer tree. Then put the directory in your PATH. This is the standard Unix approach to adding your own versions of standard software so that you do not screw up system utilities and scripts that expects the original installed behavior, or have an OS update replace your version because it is where the OS expects to have its version.

Dec 15, 2015 12:31 PM in response to Seth Goldin

Seth Goldin wrote:


Thanks. I didn't realize this. I actually called Apple Enterprise support, and they didn't know to do this. Instead, strangely, they suggested that I figure out, from non-Apple documentation online, how to temporarily disable SIP, instead of just throwing the software safely into /usr/local/bin. Will know going forward, though. Thanks!

They most likely have not been a Unix software developer for the past 20 years 🙂, nor have they lived with at least 8 different Unix flavors.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Issues installing rsync 3.0.9 - Mountain Lion

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.