{"id":1315,"date":"2022-08-30T15:15:30","date_gmt":"2022-08-30T15:15:30","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/11\/10\/apc-installation-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:15:30","modified_gmt":"2022-08-30T15:15:30","slug":"apc-installation-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/apc-installation-collection-of-common-programming-errors\/","title":{"rendered":"APC installation-Collection of common programming errors"},"content":{"rendered":"<p>I&#8217;m trying to install APC on my mac. I&#8217;m using XAMPP. I ran this command from the \/Applications\/XAMPP\/xamppfiles\/bin directory<\/p>\n<pre><code>sudo .\/pecl install apc --alldeps\n<\/code><\/pre>\n<p>I got back a ton of errors. There were several yes\/no options which I just typed in what was suggested. Not sure what I&#8217;m doing wrong here but I could use some advice if there is any to give. I&#8217;ll post the entire installation log.<\/p>\n<pre><code>parsePackageName(): invalid package name \"--alldeps\" in \"--alldeps\"\ninvalid package name\/package file \"--alldeps\"\ndownloading APC-3.1.9.tar ...\nStarting to download APC-3.1.9.tar (Unknown size)\n.................................................done: 801,792 bytes\n54 source files, building\nrunning: phpize-5.3.1\ngrep: \/Applications\/XAMPP\/xamppfiles\/include\/php\/php-5.3.1\/php\/main\/php.h: No such file or directory\ngrep: \/Applications\/XAMPP\/xamppfiles\/include\/php\/php-5.3.1\/php\/Zend\/zend_modules.h: No such file or directory\ngrep: \/Applications\/XAMPP\/xamppfiles\/include\/php\/php-5.3.1\/php\/Zend\/zend_extensions.h: No such file or directory\nConfiguring for:\nPHP Api Version:\nZend Module Api No:\nZend Extension Api No:\nEnable internal debugging in APC [no] : no\nEnable per request file info about files used from the APC cache [no] : no\nEnable spin locks (EXPERIMENTAL) [no] : no\nEnable memory protection (EXPERIMENTAL) [no] : no\nEnable pthread mutexes (default) [yes] : yes\nEnable pthread read\/write locks (EXPERIMENTAL) [no] : no\nbuilding in \/var\/tmp\/pear-build-root\/APC-3.1.9\nrunning: \/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/configure --enable-apc-debug=no --enable-apc-filehits=no --enable-apc-spinlocks=no --enable-apc-memprotect=no --enable-apc-pthreadmutex=yes --enable-apc-pthreadrwlocks=no\nchecking for grep that handles long lines and -e... \/usr\/bin\/grep\nchecking for egrep... \/usr\/bin\/grep -E\nchecking for a sed that does not truncate output... \/usr\/bin\/sed\nchecking for cc... cc\nchecking for C compiler default output file name... a.out\nchecking whether the C compiler works... yes\nchecking whether we are cross compiling... no\nchecking for suffix of executables...\nchecking for suffix of object files... o\nchecking whether we are using the GNU C compiler... yes\nchecking whether cc accepts -g... yes\nchecking for cc option to accept ISO C89... none needed\nchecking how to run the C preprocessor... cc -E\nchecking for icc... no\nchecking for suncc... no\nchecking whether cc understands -c and -o together... yes\nchecking for system library directory... lib\nchecking if compiler supports -R... no\nchecking if compiler supports -Wl,-rpath,... yes\nchecking build system type... i686-apple-darwin11.2.0\nchecking host system type... i686-apple-darwin11.2.0\nchecking target system type... i686-apple-darwin11.2.0\nchecking for PHP prefix... \/Applications\/XAMPP\/xamppfiles\nchecking for PHP includes... -I\/Applications\/XAMPP\/xamppfiles\/include\/php\/php-5.3.1 -I\/Applications\/XAMPP\/xamppfiles\/include\/php\/php-5.3.1\/php -I\/Applications\/XAMPP\/xamppfiles\/include\/php\/php-5.3.1\/php\/main -I\/Applications\/XAMPP\/xamppfiles\/include\/php\/php-5.3.1\/php\/TSRM -I\/Applications\/XAMPP\/xamppfiles\/include\/php\/php-5.3.1\/php\/Zend -I\/Applications\/XAMPP\/xamppfiles\/include\/php\/php-5.3.1\/php\/ext -I\/Applications\/XAMPP\/xamppfiles\/include\/php\/php-5.3.1\/php\/ext\/date\/lib -I\/Applications\/XAMPP\/xamppfiles\/include\nchecking for PHP extension directory... \/Applications\/XAMPP\/xamppfiles\/lib\/php\/php-5.3.1\/extensions\/no-debug-non-zts-20090626\nchecking for PHP installed headers prefix... \/Applications\/XAMPP\/xamppfiles\/include\/php\/php-5.3.1\/php\nchecking if debug is enabled... no\nchecking if zts is enabled... no\nchecking for re2c... no\nconfigure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.\nchecking for gawk... no\nchecking for nawk... no\nchecking for awk... awk\nchecking if awk is broken... no\nchecking whether to enable APC support... yes, shared\nchecking whether we should enable cache request file info... no\nchecking whether we should use mmap... yes\nchecking whether we should use semaphore locking instead of fcntl... no\nchecking whether we should use pthread mutex locking... yes\npthread mutexs are supported!\nchecking whether we should use pthread read\/write locking... no\nchecking whether the target compiler supports builtin atomics... yes\nchecking whether we should use spin locks... no\nchecking whether we should enable memory protection... no\nchecking for zend_set_lookup_function_hook... no\nchecking for sigaction... yes\nchecking for union semun... yes\nchecking whether we should enable valgrind support... checking for ANSI C header files... yes\nchecking for sys\/types.h... yes\nchecking for sys\/stat.h... yes\nchecking for stdlib.h... yes\nchecking for string.h... yes\nchecking for memory.h... yes\nchecking for strings.h... yes\nchecking for inttypes.h... yes\nchecking for stdint.h... yes\nchecking for unistd.h... yes\nyes\nchecking valgrind\/memcheck.h usability... no\nchecking valgrind\/memcheck.h presence... no\nchecking for valgrind\/memcheck.h... no\nchecking for shm_open in -lrt... no\nchecking for ld used by cc... \/usr\/llvm-gcc-4.2\/libexec\/gcc\/i686-apple-darwin11\/4.2.1\/ld\nchecking if the linker (\/usr\/llvm-gcc-4.2\/libexec\/gcc\/i686-apple-darwin11\/4.2.1\/ld) is GNU ld... no\nchecking for \/usr\/llvm-gcc-4.2\/libexec\/gcc\/i686-apple-darwin11\/4.2.1\/ld option to reload object files... -r\nchecking for BSD-compatible nm... \/usr\/bin\/nm\nchecking whether ln -s works... yes\nchecking how to recognise dependent libraries... pass_all\nchecking dlfcn.h usability... yes\nchecking dlfcn.h presence... yes\nchecking for dlfcn.h... yes\nchecking the maximum length of command line arguments... 196608\nchecking command to parse \/usr\/bin\/nm output from cc object... rm: conftest.dSYM: is a directory\nrm: conftest.dSYM: is a directory\nrm: conftest.dSYM: is a directory\nrm: conftest.dSYM: is a directory\nok\nchecking for objdir... .libs\nchecking for ar... ar\nchecking for ranlib... ranlib\nchecking for strip... strip\nrm: conftest.dSYM: is a directory\nrm: conftest.dSYM: is a directory\nchecking if cc static flag  works... rm: conftest.dSYM: is a directory\nyes\nchecking if cc supports -fno-rtti -fno-exceptions... rm: conftest.dSYM: is a directory\nno\nchecking for cc option to produce PIC... -fno-common\nchecking if cc PIC flag -fno-common works... rm: conftest.dSYM: is a directory\nyes\nchecking if cc supports -c -o file.o... rm: conftest.dSYM: is a directory\nyes\nchecking whether the cc linker (\/usr\/llvm-gcc-4.2\/libexec\/gcc\/i686-apple-darwin11\/4.2.1\/ld) supports shared libraries... yes\nchecking dynamic linker characteristics... darwin11.2.0 dyld\nchecking how to hardcode library paths into programs... immediate\nchecking whether stripping libraries is possible... yes\nchecking if libtool supports shared libraries... yes\nchecking whether to build shared libraries... yes\nchecking whether to build static libraries... no\n\ncreating libtool\nappending configuration tag \"CXX\" to libtool\nconfigure: creating .\/config.status\nconfig.status: creating config.h\nrunning: make\n\/bin\/sh \/private\/var\/tmp\/pear-build-root\/APC-3.1.9\/libtool --mode=compile cc  -I. -I\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC -DPHP_ATOM_INC -I\/private\/var\/tmp\/pear-build-root\/APC-3.1.9\/include -I\/private\/var\/tmp\/pear-build-root\/APC-3.1.9\/main -I\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC -I\/Applications\/XAMPP\/xamppfiles\/include\/php\/php-5.3.1 -I\/Applications\/XAMPP\/xamppfiles\/include\/php\/php-5.3.1\/php -I\/Applications\/XAMPP\/xamppfiles\/include\/php\/php-5.3.1\/php\/main -I\/Applications\/XAMPP\/xamppfiles\/include\/php\/php-5.3.1\/php\/TSRM -I\/Applications\/XAMPP\/xamppfiles\/include\/php\/php-5.3.1\/php\/Zend -I\/Applications\/XAMPP\/xamppfiles\/include\/php\/php-5.3.1\/php\/ext -I\/Applications\/XAMPP\/xamppfiles\/include\/php\/php-5.3.1\/php\/ext\/date\/lib -I\/Applications\/XAMPP\/xamppfiles\/include  -DHAVE_CONFIG_H  -g -O2   -c \/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc.c -o apc.lo\nmkdir .libs\n cc -I. -I\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC -DPHP_ATOM_INC -I\/private\/var\/tmp\/pear-build-root\/APC-3.1.9\/include -I\/private\/var\/tmp\/pear-build-root\/APC-3.1.9\/main -I\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC -I\/Applications\/XAMPP\/xamppfiles\/include\/php\/php-5.3.1 -I\/Applications\/XAMPP\/xamppfiles\/include\/php\/php-5.3.1\/php -I\/Applications\/XAMPP\/xamppfiles\/include\/php\/php-5.3.1\/php\/main -I\/Applications\/XAMPP\/xamppfiles\/include\/php\/php-5.3.1\/php\/TSRM -I\/Applications\/XAMPP\/xamppfiles\/include\/php\/php-5.3.1\/php\/Zend -I\/Applications\/XAMPP\/xamppfiles\/include\/php\/php-5.3.1\/php\/ext -I\/Applications\/XAMPP\/xamppfiles\/include\/php\/php-5.3.1\/php\/ext\/date\/lib -I\/Applications\/XAMPP\/xamppfiles\/include -DHAVE_CONFIG_H -g -O2 -c \/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc.c  -fno-common -DPIC -o .libs\/apc.o\nIn file included from \/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc.c:34:\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc.h:61:17: error: php.h: No such file or directory\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc.h:62:30: error: main\/php_streams.h: No such file or directory\nIn file included from \/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc.c:34:\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc.h:69: error: expected ';', ',' or ')' before 'TSRMLS_DC'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc.h:70: error: expected ';', ',' or ')' before 'TSRMLS_DC'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc.h:71: error: expected ';', ',' or ')' before 'TSRMLS_DC'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc.h:72: error: expected ';', ',' or ')' before 'TSRMLS_DC'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc.h:73: error: expected ';', ',' or ')' before 'TSRMLS_DC'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc.h:74: error: expected ';', ',' or ')' before 'TSRMLS_DC'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc.h:77: error: expected ';', ',' or ')' before 'TSRMLS_DC'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc.h:78: error: expected ';', ',' or ')' before 'TSRMLS_DC'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc.h:79: error: expected ';', ',' or ')' before 'TSRMLS_DC'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc.h:80: error: expected ';', ',' or ')' before 'TSRMLS_DC'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc.h:83: error: expected ';', ',' or ')' before 'TSRMLS_DC'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc.h:84: error: expected ';', ',' or ')' before 'TSRMLS_DC'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc.h:85: error: expected ';', ',' or ')' before 'TSRMLS_DC'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc.h:92: error: 'MAXPATHLEN' undeclared here (not in a function)\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc.h:93: error: expected specifier-qualifier-list before 'php_stream_statbuf'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc.h:96: error: expected ';', ',' or ')' before 'TSRMLS_DC'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc.h:99: error: expected ';', ',' or ')' before 'TSRMLS_DC'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc.h:100: error: expected ';', ',' or ')' before 'TSRMLS_DC'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc.h:107: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token\nIn file included from \/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_zend.h:36,\n                 from \/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc.c:35:\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_php.h:44:18: error: zend.h: No such file or directory\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_php.h:45:22: error: zend_API.h: No such file or directory\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_php.h:46:26: error: zend_compile.h: No such file or directory\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_php.h:47:23: error: zend_hash.h: No such file or directory\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_php.h:48:29: error: zend_extensions.h: No such file or directory\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_php.h:66:21: error: rfc1867.h: No such file or directory\nIn file included from \/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc.c:35:\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_zend.h:79: error: expected ';', ',' or ')' before 'TSRMLS_DC'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_zend.h:80: error: expected ';', ',' or ')' before 'TSRMLS_DC'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_zend.h:82: warning: parameter names (without types) in function declaration\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_zend.h:83: warning: parameter names (without types) in function declaration\nIn file included from \/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_pool.h:34,\n                 from \/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_main.h:37,\n                 from \/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_compile.h:43,\n                 from \/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_cache.h:40,\n                 from \/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc.c:36:\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_sma.h:49: error: expected ';', ',' or ')' before 'TSRMLS_DC'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_sma.h:50: warning: parameter names (without types) in function declaration\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_sma.h:51: error: expected ';', ',' or ')' before 'TSRMLS_DC'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_sma.h:52: error: expected ';', ',' or ')' before 'TSRMLS_DC'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_sma.h:53: error: expected ';', ',' or ')' before 'TSRMLS_DC'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_sma.h:54: error: expected ';', ',' or ')' before 'TSRMLS_DC'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_sma.h:55: error: expected ';', ',' or ')' before 'TSRMLS_DC'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_sma.h:81: error: expected ')' before 'limited'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_sma.h:82: error: expected ';', ',' or ')' before 'TSRMLS_DC'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_sma.h:85: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'apc_sma_get_avail_size'\nIn file included from \/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_main.h:37,\n                 from \/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_compile.h:43,\n                 from \/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_cache.h:40,\n                 from \/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc.c:36:\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_pool.h:63: error: expected ';', ',' or ')' before 'TSRMLS_DC'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_pool.h:65: error: expected ';', ',' or ')' before 'TSRMLS_DC'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_pool.h:66: error: expected ';', ',' or ')' before 'TSRMLS_DC'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_pool.h:77: error: expected specifier-qualifier-list before 'apc_palloc_t'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_pool.h:107: error: expected ';', ',' or ')' before 'TSRMLS_DC'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_pool.h:109: error: expected ';', ',' or ')' before 'TSRMLS_DC'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_pool.h:111: error: expected ';', ',' or ')' before 'TSRMLS_DC'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_pool.h:112: error: expected ';', ',' or ')' before 'TSRMLS_DC'\nIn file included from \/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_main.h:38,\n                 from \/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_compile.h:43,\n                 from \/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_cache.h:40,\n                 from \/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc.c:36:\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_serializer.h:32: error: expected ';', ',' or ')' before '*' token\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_serializer.h:33: error: expected ')' before '*' token\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_serializer.h:36: error: expected declaration specifiers or '...' before 'apc_serialize_t'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_serializer.h:37: error: expected declaration specifiers or '...' before 'apc_unserialize_t'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_serializer.h:38: error: expected ';', ',' or ')' before 'TSRMLS_DC'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_serializer.h:56: error: expected declaration specifiers or '...' before 'apc_serialize_t'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_serializer.h:57: error: expected declaration specifiers or '...' before 'apc_unserialize_t'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_serializer.h:58: error: expected ';', ',' or ')' before 'TSRMLS_DC'\nIn file included from \/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_compile.h:43,\n                 from \/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_cache.h:40,\n                 from \/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc.c:36:\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_main.h:44: error: expected ';', ',' or ')' before 'TSRMLS_DC'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_main.h:45: warning: parameter names (without types) in function declaration\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_main.h:46: error: expected ';', ',' or ')' before 'TSRMLS_DC'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_main.h:47: warning: parameter names (without types) in function declaration\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_main.h:48: warning: parameter names (without types) in function declaration\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_main.h:49: warning: parameter names (without types) in function declaration\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_main.h:70: error: expected specifier-qualifier-list before 'apc_serialize_t'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_main.h:76: warning: parameter names (without types) in function declaration\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_main.h:77: error: expected ';', ',' or ')' before 'TSRMLS_DC'\nIn file included from \/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_cache.h:40,\n                 from \/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc.c:36:\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_compile.h:51: error: expected specifier-qualifier-list before 'zend_function'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_compile.h:61: error: expected specifier-qualifier-list before 'zend_class_entry'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_compile.h:91: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_compile.h:92: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_compile.h:93: error: expected ';', ',' or ')' before 'TSRMLS_DC'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_compile.h:94: error: expected ')' before '*' token\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_compile.h:95: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_compile.h:115: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_compile.h:116: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_compile.h:117: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_compile.h:124: error: expected ')' before '*' token\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_compile.h:129: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_compile.h:130: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'apc_register_optimizer'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_compile.h:135: error: expected ';', ',' or ')' before 'TSRMLS_DC'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_compile.h:136: error: expected ';', ',' or ')' before 'TSRMLS_DC'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_compile.h:141: error: expected ';', ',' or ')' before '*' token\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_compile.h:142: error: expected ')' before '*' token\nIn file included from \/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_lock.h:40,\n                 from \/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_cache.h:41,\n                 from \/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc.c:36:\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_sem.h:35: error: expected ';', ',' or ')' before 'TSRMLS_DC'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_sem.h:37: error: expected ';', ',' or ')' before 'TSRMLS_DC'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_sem.h:38: error: expected ';', ',' or ')' before 'TSRMLS_DC'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_sem.h:39: error: expected ';', ',' or ')' before 'TSRMLS_DC'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_sem.h:40: error: expected ';', ',' or ')' before 'TSRMLS_DC'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_sem.h:41: error: expected ';', ',' or ')' before 'TSRMLS_DC'\nIn file included from \/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_lock.h:41,\n                 from \/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_cache.h:41,\n                 from \/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc.c:36:\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_fcntl.h:35: error: expected ';', ',' or ')' before 'TSRMLS_DC'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_fcntl.h:37: error: expected ';', ',' or ')' before 'TSRMLS_DC'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_fcntl.h:38: error: expected ';', ',' or ')' before 'TSRMLS_DC'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_fcntl.h:39: error: expected ';', ',' or ')' before 'TSRMLS_DC'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_fcntl.h:40: error: expected ';', ',' or ')' before 'TSRMLS_DC'\nIn file included from \/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_lock.h:42,\n                 from \/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_cache.h:41,\n                 from \/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc.c:36:\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_pthreadmutex.h:31: error: expected ';', ',' or ')' before 'TSRMLS_DC'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_pthreadmutex.h:33: error: expected ';', ',' or ')' before 'TSRMLS_DC'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_pthreadmutex.h:34: error: expected ';', ',' or ')' before 'TSRMLS_DC'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_pthreadmutex.h:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'apc_pthreadmutex_nonblocking_lock'\nIn file included from \/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc.c:36:\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_cache.h:44:18: error: TSRM.h: No such file or directory\nIn file included from \/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc.c:36:\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_cache.h:132: error: expected specifier-qualifier-list before 'zend_op_array'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_cache.h:140: error: expected specifier-qualifier-list before 'zval'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_cache.h:173: error: expected ';', ',' or ')' before 'TSRMLS_DC'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_cache.h:180: error: expected ';', ',' or ')' before 'TSRMLS_DC'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_cache.h:186: error: expected ';', ',' or ')' before 'TSRMLS_DC'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_cache.h:201: error: expected ';', ',' or ')' before 'TSRMLS_DC'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_cache.h:204: error: expected ';', ',' or ')' before 'TSRMLS_DC'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_cache.h:207: error: expected ';', ',' or ')' before 'TSRMLS_DC'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_cache.h:215: error: expected ';', ',' or ')' before 'TSRMLS_DC'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_cache.h:222: error: expected ';', ',' or ')' before 'TSRMLS_DC'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_cache.h:231: error: expected ';', ',' or ')' before 'TSRMLS_DC'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_cache.h:236: error: expected ';', ',' or ')' before 'TSRMLS_DC'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_cache.h:237: error: expected ';', ',' or ')' before 'TSRMLS_DC'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_cache.h:243: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_cache.h:254: error: expected ';', ',' or ')' before 'TSRMLS_DC'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_cache.h:276: error: expected ';', ',' or ')' before 'TSRMLS_DC'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_cache.h:283: error: expected declaration specifiers or '...' before 'zend_op_array'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_cache.h:287: error: expected ';', ',' or ')' before 'TSRMLS_DC'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_cache.h:290: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'apc_compile_cache_entry'\n\/Applications\/XAMPP\/xamppfiles\/temp\/pear\/temp\/APC\/apc_cache.h:296: error: expected ';', ',' or ')' before '*' token\n<\/code><\/pre>\n<p><strong>Update<\/strong><br \/>\nSo I&#8217;ve made some more progress. Turns out I needed to install a development package that took away most of the errors. I&#8217;m running this command now:<\/p>\n<pre><code>sudo pecl install apc\n<\/code><\/pre>\n<p>Goes fine until the end then I get this&#8230;<\/p>\n<pre><code>\/usr\/include\/php\/ext\/pcre\/php_pcre.h:29:18: error: pcre.h: No such file or directory\nIn file included from \/private\/tmp\/pear\/temp\/APC\/apc.c:44:\n\/usr\/include\/php\/ext\/pcre\/php_pcre.h:37: error: expected \u2018=\u2019, \u2018,\u2019, \u2018;\u2019, \u2018asm\u2019 or \u2018__attribute__\u2019 before \u2018*\u2019 token\n\/usr\/include\/php\/ext\/pcre\/php_pcre.h:38: error: expected \u2018=\u2019, \u2018,\u2019, \u2018;\u2019, \u2018asm\u2019 or \u2018__attribute__\u2019 before \u2018*\u2019 token\n\/usr\/include\/php\/ext\/pcre\/php_pcre.h:44: error: expected specifier-qualifier-list before \u2018pcre\u2019\n\/private\/tmp\/pear\/temp\/APC\/apc.c:393: error: expected specifier-qualifier-list before \u2018pcre\u2019\n\/private\/tmp\/pear\/temp\/APC\/apc.c: In function \u2018apc_regex_compile_array\u2019:\n\/private\/tmp\/pear\/temp\/APC\/apc.c:454: error: \u2018apc_regex\u2019 has no member named \u2018preg\u2019\n\/private\/tmp\/pear\/temp\/APC\/apc.c:454: error: \u2018apc_regex\u2019 has no member named \u2018preg\u2019\n\/private\/tmp\/pear\/temp\/APC\/apc.c:455: error: \u2018apc_regex\u2019 has no member named \u2018nreg\u2019\n\/private\/tmp\/pear\/temp\/APC\/apc.c:455: error: \u2018apc_regex\u2019 has no member named \u2018nreg\u2019\n\/private\/tmp\/pear\/temp\/APC\/apc.c: In function \u2018apc_regex_match_array\u2019:\n\/private\/tmp\/pear\/temp\/APC\/apc.c:487: error: \u2018apc_regex\u2019 has no member named \u2018preg\u2019\n\/private\/tmp\/pear\/temp\/APC\/apc.c:487: error: \u2018apc_regex\u2019 has no member named \u2018preg\u2019\n\/private\/tmp\/pear\/temp\/APC\/apc.c:488: error: \u2018apc_regex\u2019 has no member named \u2018nreg\u2019\n\/private\/tmp\/pear\/temp\/APC\/apc.c:488: error: \u2018apc_regex\u2019 has no member named \u2018nreg\u2019\nmake: *** [apc.lo] Error 1\nERROR: `make' failed\n<\/code><\/pre>\n<p>Now what?<\/p>\n<p id=\"rop\"><small>Originally posted 2013-11-10 00:16:22. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>I&#8217;m trying to install APC on my mac. I&#8217;m using XAMPP. I ran this command from the \/Applications\/XAMPP\/xamppfiles\/bin directory sudo .\/pecl install apc &#8211;alldeps I got back a ton of errors. There were several yes\/no options which I just typed in what was suggested. Not sure what I&#8217;m doing wrong here but I could use [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1315","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1315","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=1315"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1315\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=1315"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=1315"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=1315"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}