Install Squid 3.1 on Centos 5.X

yum -y groupinstall “Development Tools”
yum -y install rpm-build openjade linuxdoc-tools openldap-devel pam-devel openssl-devel httpd rpm-devel expat-devel db4-devel libpcap-devel

For Centos : rpm -ihv http://www.jur-linux.com/rpms/el-updates/5Client/SRPMS/squid-3.1.0.15-2.el5.src.rpm
For Fedora : rpm -ihv http://www.jur-linux.com/rpms/el-updates/5Client/SRPMS/squid-3.1.0.15-2.fc13.src.rpm

cd /usr/src/redhat/SPECS
rpmbuild -bb squid.spec
rpm -Uhv /usr/src/redhat/RPMS/i386/squid-3.1.0.15-2.i386.rpm

Tags: , ,

6 Responses to “Install Squid 3.1 on Centos 5.X”

  1. RoFz Says:

    Hi. Did you manage to compile it with the transparent proxy feature included?
    I’m getting this error on a CentOS 5.4 with libcap 1.10 installed.

    configure: WARNING: Missing needed capabilities (libcap or libcap2) for TPROXY
    configure: WARNING: Linux Transparent Proxy support WILL NOT be enabled
    configure: WARNING: Reduced support to Interception Proxy
    configure: WARNING: Missing needed capabilities (libcap or libcap2) for TPROXY v2
    configure: WARNING: Linux Transparent Proxy support WILL NOT be enabled

    Rodrigo

  2. Giany Says:

    Seems I get the same Warning message as you got. From what I see it looks like they broke support for Linux transparent feature in 3.x. If you need that you might keep squid 2.X.

  3. FRLinux Says:

    Also had to add : yum install libxml2-devel libcap-devel

  4. Tom Says:

    If you want to use squid in transparent mode, look at intercept for version 3.1 – same thing!

  5. WPN Says:

    i did all the yum installs above and the system is up to date
    running 64bit

    i use this:
    rpm -ihv http://www.jur-linux.com/rpms/el-updates/5Client/SRPMS/squid-3.1.0.15-2.el5.src.rpm

    but i get this:
    warning: group mockbuild does not exist – using root
    warning: user mockbuild does not exist – using root

    i tried with the FC package but get (logically?) an md5 error

  6. Giany Says:

    What md5 error? From your paste it looks like you have two warnings which are normal.

Leave a Reply