December 28

Compiling squidGuard 1.4 on CentOS 5.1

SquidGuard is a URL redirector for the Squid HTTP Proxy server.  Its main purpose is to restrict access to unsavoury websites.

I found that when compiling squidGuard 1.4 on the CentOS 5.1 distribution of Linux, the ‘make’ phase failed with the following error:

/bin/sh: -c: line 1: syntax error near unexpected token `then'
/bin/sh: -c: line 1: `   @if [ ! -x bison -y ]; then \'
make[1]: *** [y.tab.c] Error 2
make[1]: Leaving directory `/home/antgreen/downloads/squidGuard-1.4/src'
make: *** [all] Error 1

My workaround was to edit the file: src/Makefile and replace the following:

Continue reading

Category: Open-source software | Comments Off on Compiling squidGuard 1.4 on CentOS 5.1