I had a really bad time trying to compile the new squid 3.2.0.12 since version 3.2.0.7 .
there is a bug that caused by squid using some openssl libs during the compilation.
so in order to compile squid on Ubuntu server we must first install some packages using:
Code:
sudo apt-get install build-essential libldap2-dev libpam0g-dev libdb-dev dpatch cdbs libsasl2-dev debhelper libcppunit-dev libkrb5-dev comerr-dev libcap2-dev libexpat1-dev libxml2-dev libcap2-dev dpkg-dev curl libssl-dev libssl0.9.8 libssl0.9.8-dbg libcurl4-openssl-dev
the above command will install all the necessary packages for the compilation.
now download the squid tar.bz2 file using the commands
Code:
cd /opt
mkdir src
cd src
wget http://www.squid-cache.org/Versions/v3/3.2/squid-3.2.0.12.tar.bz2
tar xvjf squid-3.2.0.12.tar.bz2
get into the the src directory and configure the squid,
i will give an example:
Code:
cd /opt/src/squid-3.2.0.12
./configure --prefix=/opt/squid32012 --includedir=/include --mandir=/share/man --infodir=/share/info --localstatedir=/opt/squid32012/var --disable-maintainer-mode --disable-dependency-tracking --disable-silent-rules --enable-inline --enable-async-io=8 --enable-storeio=ufs,aufs,diskd --enable-removal-policies=lru,heap --enable-delay-pools --enable-cache-digests --enable-underscores --enable-icap-client --enable-follow-x-forwarded-for --enable-digest-auth-helpers=ldap,password --enable-negotiate-auth-helpers=squid_kerb_auth --enable-external-acl-helpers=ip_user,ldap_group,session,unix_group,wbinfo_group --enable-arp-acl --enable-esi--disable-translation --with-logdir=/opt/squid32012/var/log --with-pidfile=/var/run/squid32012.pid --with-filedescriptors=65536 --with-large-files --with-default-user=proxy --enable-linux-netfilter --enable-ltdl-convenience
(........ a lot of output)
make
(........ a lot of output wil show)
make install
(........ a lot of output)
also i will link to a init.d script to load squid using my configure.
squid32012
in order for squid to work squid effective_cache_user must have full access to log files and cache directory.
dont forget to chagne the cache_dir directive settings in squid.conf
hope it will help anyone.
the config file directives at squid site:
http://www.squid-cache.org/Doc/config/
also very good manual for squid.conf file
http://www.visolve.com/squid/
Bookmarks