Compiling Squid in Ubuntu 7.10
Compiling Squid 2.6 in Ubuntu is easy, once you know that there are different command line options you must use aside from the defaults (which are specific to BSD-flavored systems). Note that I specifically enabled digest authentication with the –enable-auth=digest switch because our intended application of Squid needed a more secure password transmission method than Basic Authentication. Here’s some general steps:
- Download and upack the Squid source. I used Squid 2.6 for this.
- Open a terminal and change to your Squid source directory.
- Type the follwong and press enter:
sudo ./configure –enable-auth=digest –prefix=/usr –localstatedir=/var –libexecdir=${prefix}/lib/squid –srcdir=. –datadir=${prefix}/share/squid –sysconfdir=/etc/squid
- After a hundred lines or so scroll by, enter the following:
sudo make
-
After several, even more ugly lines go by, type the following:
sudo make install - There is no way to set the default location of the log files with Squid using configure, and I couldn’t get the recommended patch to work, so I came up with an easier solution. Issue the command:
ln -s /var/log /var/logs