1. Log in to the server with root ...2. Before compiling, needed to know other repro
The run compile gcc such as the most important ...
apt-get install build-essential gcc
3. file download source-code is on http://www.squid-cache.org/Versions/v2/2.7
there is 2 versions for stables9, out March 17, 2010 version is stable and
the latest version of the source-code on 14 August 2010 ...
but we choose version 17 March 2010 wrote ...
wget http://www.squid-cache.org/Versions/v2/2.7/squid-2.7.STABLE9.tar.bz2
4. kemudia extract and extract the folder into ...
tar xvf squid-2.7.STABLE9.tar.bz2 && cd squid-2.7.STABLE9
5. Perform configuration before compiling ...
A. Determine and make sure you use a hardware processor to determine
CHOST and CFLAGS variable values
How to check processor can use this command ...
cat / proc / cpuinfo
. then find spekfikasinya here http://www.opikdesign.com/kios/procie_kernel and
CHOST and CFLAGS variable contents
example:
Processor Pentium D 3GHz used Danos Ubuntu Server 64bit
after a search CHOST and CFLAGS then I fill variable..
CHOST = "x86_64-pc-linux-gnu"
CFLAGS = "-march = Nocona-O2-pipe"
CXXFLAGS = "$ {CFLAGS}"
. B. Then fill the other variables such as the laying of the file position, what enabled
and the language of your choice, for example ...
. / Configure-prefix = / usr-exec-prefix = / usr-BINDIR = / usr / sbin-sbindir = / usr / sbin-libexecdir = / usr / lib / squid-sysconfdir = / etc / squid-localstatedir = / var / spool / squid-datadir = / usr / share / squid-enable-async-io-with-pthreads-enable-storeio = ufs, aufs, Coss, diskd, null-enable-linux-netfilter-enable-arp-acl - enable-epoll-enable-removal-policies = lru, heap-enable-snmp-enable-delay-pools-enable-htcp-enable-cache-digests-enable-referer-log-enable-useragent-log-enable-auth = basic, digest, ntlm, negotiate-enable-negotiate-auth-helpers = squid_kerb_auth-enable-carp-enable-follow-x-forwarded-for-with-large-files-with-maxfd = 65536-enable-err-languages = English-enable-default-err-language = English
. for more detailed variable can type ...
. / Configure - help
6. Perform compile ...
makeup
make install
7. Setting as usual / etc / squid / squid.conf next ways as usual.8. To check the version squid ...
Good luck...
squid-v