If you haven’t already, install the “build-essential” package. Additionally, if you want to compile squid with SSL-support, you also need “openssl” and “libssl-dev”: apt-get install -y openssl build-essential libssl-dev Then download and unpack the most recent source archive of squid 3.5. At the time of this writing it’s 3.5.5: wget -O - http://www.squid-cache.org/Versions/v3/3.5/squid-3.5.3.tar.gz | tar zxfv - Luckily we can still use the compile dependencies from the 3.4.x branch: apt-get build-dep squid3 Ok, no we are ready to run configure. Here’s my configuration. You may take it as a jumping-off point: cd squid-3.5.3 ./configure --build=x86_64-linux-gnu \ --prefix=/usr \ --includedir=${prefix}/include \ --mandir=${prefix}/share/man \ --infodir=${prefix}/share/info \ --sysconfdir=/etc \ --localstatedir=/var \ --libexecdir=${prefix}/lib/squid3 \ --srcdir=. \ --disable-maintainer-mode \ --disable-dependency-tracking \ --disable-silent-rules \ --datadir=/usr/sh