Why should I use a custom built memcached instead of Apple's Xcode version?

GeneQ asked:

Memcached seems to be preinstalled with Xcode on OS X, according to Apple’s documentation. To make sure I’m not hallucinating, I checked Apple’s developer tools documentation. Yes, memcached is supported and documented by Apple:

Apple Developer Library : memcached(1)

Apparently, memcached is installed with Xcode since at least 10.6 onwards.

The reason I’m asking this is that on the Web and on SO there are lots people asking how to install memcached on OS X but curiously no one seems to mention that the easiest way to do so is to simply install Xcode via the AppStore (or using a DMG). All the answers given involves using homebrew or some other complicated way to install memcached from source.

Is there any compelling reason why the Apple shipped memcached is not good enough? I don’t see any advantages of compiling and installing memcached from source since there’s an Apple supported version.

My answer:

If (and that’s a very big if) I’m going to deploy a Mac OS X Server in production, installing all of Xcode just to get memcached doesn’t make a whole lot of sense, if there’s an easy way to just get the components I need.

As a system administrator, I want only the components I need to deploy the application/service that the server is supposed to be running, and nothing else. All else is either an unnecessary waste of disk space or a potential security problem or both, and having unnecessary things on the server increases my workload.

For a development machine, it’s more or less fine, though, especially if you have to install a bunch of things to try several approaches to a problem. (Just clean up after your failed experiments…)

All that said, I’ve never deployed Mac OS X Server into production for anything, and I don’t expect to do so at any time in the foreseeable future.

View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.