squid-3.0.PRE6 installation problem

From: JXu <forrestxu@dont-contact.us>
Date: Sat, 21 Jul 2007 10:03:15 -0700 (PDT)

Hi,

Could you please help me to see what's wrong when I installed
squid-3.0.PRE6? I use ubuntu 7.04.
Thank you in advance!

This is what I did to install squid-3.0.PRE6

1. Fix squid-3.0.PRE6 code bug:

see the code squid-3.0.PRE6/src/helper.cc,
make the change described as below:

Fix "if (srv->flags.reserved = S_HELPER_FREE)" to

if (srv->flags.reserved == S_HELPER_FREE) (line 489)

2. Installation

1.
./configure --prefix=/usr/local/squid --with-pthreads
--enable-linux-netfilter --enable-icap-support

(If use ./configure --prefix=/usr/local/squid --with-pthreads
--enable-linux-netfilter --enable-icap-support
--with-openssl , got error below when do make all:
../include/md5.h:14:2: error: #error Cannot find OpenSSL headers
rfc2617.c: In function ‘DigestCalcHA1’:
rfc2617.c:116: error: ‘MD5_CTX’ undeclared (first use in this function)
rfc2617.c:116: error: (Each undeclared identifier is reported only once
rfc2617.c:116: error: for each function it appears in.)
rfc2617.c:116: error: expected ‘;’ before ‘Md5Ctx’
I installed OpenSSL already using ./configure, make, make test and sudo make
install in openssl directory)

2. make all
3. sudo makeinstall

3. configuration
uncomments on line 2604,2605 to the following sentences

acl our_networks src 192.168.1.0/24 192.168.2.0/24
http_access allow our_networks

comments on line 761
#broken_vary_encoding allow apache ( If I leave it as uncomment, when I run
/usr/local/squid/sbin/squid, it has error described as below:

2007/07/21 12:50:11| parseConfigFile: 'squid.conf' line 761 unrecognized:
'broken_vary_encoding allow apache')

4. run
/usr/local/squid/sbin/squid ==> OK
/usr/local/squid/sbin/squid -NCd1
Got error information below:

sudo /usr/local/squid/sbin/squid -NCd1
2007/07/21 12:37:14| Starting Squid Cache version 3.0.PRE6 for
i686-pc-linux-gnu...
2007/07/21 12:37:14| Process ID 15020
2007/07/21 12:37:14| With 1024 file descriptors available
2007/07/21 12:37:14| Performing DNS Tests...
2007/07/21 12:37:14| Successful DNS name lookup tests...
2007/07/21 12:37:14| DNS Socket created at 0.0.0.0, port 32872, FD 4
2007/07/21 12:37:14| Adding nameserver 192.168.2.1 from /etc/resolv.conf
2007/07/21 12:37:14| Unlinkd pipe opened on FD 9
2007/07/21 12:37:14| Swap maxSize 102400 KB, estimated 7876 objects
2007/07/21 12:37:14| Target number of buckets: 393
2007/07/21 12:37:14| Using 8192 Store buckets
2007/07/21 12:37:14| Max Mem size: 8192 KB
2007/07/21 12:37:14| Max Swap size: 102400 KB
2007/07/21 12:37:14| Rebuilding storage in /usr/local/squid/var/cache
(DIRTY)
2007/07/21 12:37:14| Using Least Load store dir selection
2007/07/21 12:37:14| Set Current Directory to /usr/local/squid/var/cache
2007/07/21 12:37:14| Loaded Icons.
2007/07/21 12:37:14| commBind: Cannot bind socket FD 11 to *:80: (98)
Address already in use
FATAL: Cannot open HTTP Port
Aborted (core dumped)

What's the problem.

Thank you in advance!

Forrest

-- 
View this message in context: http://www.nabble.com/squid-3.0.PRE6-installation-problem-tf4122370.html#a11723763
Sent from the Squid - Development mailing list archive at Nabble.com.
Received on Sat Jul 21 2007 - 11:03:22 MDT

This archive was generated by hypermail pre-2.1.9 : Wed Aug 01 2007 - 12:00:06 MDT