My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
Installation  
Step-by-step instructions for get the adapter running.
Featured, Phase-Deploy
Updated Feb 13, 2011 by constant...@gmail.com

Installation

1. Download and install libecap Library

  • Build and install libecap library:
  • cd libecap-0.0.3/
    ./configure
    make
    make install

2. Download and install VIGOS eCAP GZIP Adapter

  • Download and unpack latest VIGOS eCAP GZIP adapter from here
  • wget http://squid-ecap-gzip.googlecode.com/files/squid-ecap-gzip-1.3.0.tar.gz
    tar xvfz squid-ecap-gzip-1.3.0.tar.gz
  • Build and install VIGOS eCAP GZIP adapter:
  • cd squid-ecap-gzip/
    ./configure
    make
    make install

3. Download and install SQUID proxy cache, version 3.1+

Important: The eCAP feature is only available in SQUID version 3.1 or higher. You cannot use the VIGOS eCAP GZIP adapter with earlier versions of SQUID (e.g. 2.6, 2.7, 3.0).

  • Download and unpack latest SQUID version from http://www.squid-cache.org/Versions/v3/3.1/
  • wget http://www.squid-cache.org/Versions/v3/3.1/squid-3.1.11.tar.gz
    tar xvfz squid-3.1.11.tar.gz
  • Configure, build and install SQUID:
  • cd squid-3.1.11/
    ./configure --enable-ecap
    make
    make install

4. Configure SQUID to use VIGOS eCAP GZIP Adapter

Add or edit the following lines in your etc/squid.conf:

ecap_enable on
ecap_service gzip_service respmod_precache 0 ecap://www.vigos.com/ecap_gzip
loadable_modules /usr/local/lib/ecap_adapter_gzip.so
acl GZIP_HTTP_STATUS http_status 200
adaptation_access gzip_service allow GZIP_HTTP_STATUS

Now, after (re-)starting SQUID, all text/html responses from clients sending the Accept-encoding: gzip HTTP header will be compressed.

Comment by haggai.n...@gmail.com, Mar 22, 2010

If you get a problem compiling libecap edit the file libecap-0.0.2/src/libecap/common/name.cc

change the line

#include <limits>

to

#include <climits>

it's a bug: https://bugs.launchpad.net/ecap/+bug/327417

Comment by ebudm...@gmail.com, Oct 21, 2011

I need to install clamav in order to be able to "make" VIGOS eCAP GZIP Adapter: apt-get install clamav

Comment by ebudm...@gmail.com, Oct 21, 2011

I got file not error found with latest 3.2 Squid

It is working with Squid 3.1

Comment by tkjens...@gmail.com, Nov 21, 2011

Is it possible to enable compression for other content than text/html, e.g., text/xml, javascript, css, etc.?

Comment by edu.Iz...@gmail.com, Jan 9, 2012

failed to ./configure on centos 6.2 .. couldnt proceed with make & make install ... configure: error: the compiler (g++) failed to pass a simple C++ test; check config.log for details

Comment by edu.Iz...@gmail.com, Jan 9, 2012

problem solved with installation of gcc-c++ .. yum install gcc-c++ .. then ./configure and then make & make install ...

Comment by gpradeep...@gmail.com, Apr 4, 2012

I am trying to install this on ubuntu latest version and 1st 2 get installed properly, but the squid does not, when i give 'make' command i get following errors.

g++: warning: switch '-fhuge-objects' is no longer supported

and

User.cc: In static member function 'static void AuthUser?::CachedACLsReset()': User.cc:161:17: error: variable 'username' set but not used [-Werror=unused-but-set-variable] cc1plus: all warnings being treated as errors

Can any body let me know how to solve this issue. Trying from 2 days.

Comment by willtoni...@gmail.com, Apr 26, 2012

I'm getting this error as well.

g++: warning: switch '-fhuge-objects' is no longer supported User.cc: In static member function 'static void AuthUser?::CachedACLsReset()': User.cc:161:17: error: variable 'username' set but not used [-Werror=unused-but-set-variable] cc1plus: all warnings being treated as errors

Sign in to add a comment
Powered by Google Project Hosting