Thread:Project:Support desk/Fatal exception of type MWException after upgrade to OSX server yosemite/reply (3)

Error was like below:

CACHE_ACCEL requested but no suitable object cache is present. You may want to install APC.

Backtrace:


 * 1) 0 [internal function]: ObjectCache::newAccelerator(array)
 * 2) 1 /Library/Server/Web/Data/Sites/zhx.xyz/w/includes/objectcache/ObjectCache.php(85): call_user_func(string, array)
 * 3) 2 /Library/Server/Web/Data/Sites/zhx.xyz/w/includes/objectcache/ObjectCache.php(72): ObjectCache::newFromParams(array)
 * 4) 3 /Library/Server/Web/Data/Sites/zhx.xyz/w/includes/objectcache/ObjectCache.php(44): ObjectCache::newFromId(integer)
 * 5) 4 /Library/Server/Web/Data/Sites/zhx.xyz/w/includes/GlobalFunctions.php(3961): ObjectCache::getInstance(integer)
 * 6) 5 /Library/Server/Web/Data/Sites/zhx.xyz/w/includes/Setup.php(513): wfGetMainCache
 * 7) 6 /Library/Server/Web/Data/Sites/zhx.xyz/w/includes/WebStart.php(156): require_once(string)
 * 8) 7 /Library/Server/Web/Data/Sites/zhx.xyz/w/index.php(43): require(string)
 * 9) 8 {main}

I installed APC with homebrew, but I don't know how to reinstall it. I did uninstall and install but, APC shows error.

brew install autoconf brew install pcre sudo pecl install apc

2 warnings and 6 errors generated. make: *** [apc_compile.lo] Error 1 ERROR: `make' failed

I don't know what to do.