syntax error near unexpected token during APC install on Linux
So I am trying to install APC on our Linux server via SSH and when I am
trying to compile the APC installation I am running into the following
syntax error:
./configure: line 5102: syntax error near unexpected token `ext/apc,'
./configure: line 5102: ` PHP_INSTALL_HEADERS(ext/apc, apc_serializer.h)'
Here is a complete read out of the log from the compile command onwards:
(uiserver):xxx:~/APC-3.1.13 > ./configure --enable-apc --enable-apc-mmap
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc and cc understand -c and -o together... yes
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php -I/usr/include/php/main
-I/usr/include/php/TSRM -I/usr/include/php/Zend
checking for PHP extension directory...
/usr/lib/php/extensions/no-debug-non-zts-20020429
checking for re2c... exit 0;
checking for gawk... gawk
checking whether to enable APC support... yes, shared
checking whether we should enable cache request file info... no
checking whether we should use mmap... yes
checking whether we should use semaphore locking instead of fcntl... no
checking whether we should use pthread mutex locking... yes
pthread mutexs are supported!
checking whether we should use pthread read/write locking... no
checking whether the target compiler supports builtin atomics... yes
checking whether we should use spin locks... no
checking whether we should enable memory protection... no
./configure: line 5102: syntax error near unexpected token `ext/apc,'
./configure: line 5102: ` PHP_INSTALL_HEADERS(ext/apc, apc_serializer.h)'
If you have any suggestions for why this is occurring it would be much
appreciated. I did search online but wasn't able to find much relevant to
this particular error.
I've checked the configure line and found line 5102 contains the following:
PHP_INSTALL_HEADERS(ext/apc, apc_serializer.h)
No comments:
Post a Comment