On lör, 2007-07-21 at 10:03 -0700, JXu wrote:
> 1.
> ./configure --prefix=/usr/local/squid --with-pthreads
> --enable-linux-netfilter --enable-icap-support
Ok.
> (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
To build Squid with SSL support you need the OpenSSL development
environent installed (libraries and 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)
Probably it got installed in a path where your compiler doesn't normally
look. You can tell configure where to find openssl by using the
--with-openssl=/path/to/openssl_installation
> 2. make all
> 3. sudo makeinstall
Ok.
> 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
Ok.
> 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')
The broken_vary_encoding doesn't exists in Squid-3. This is a 2.6-only
feature.
> sudo /usr/local/squid/sbin/squid -NCd1
> 2007/07/21 12:37:14| commBind: Cannot bind socket FD 11 to *:80: (98)
> Address already in use
> FATAL: Cannot open HTTP Port
You have told Squid to use port 80 in http_port, but some other software
(quite likely Apache) is already using port 80. There can only be one
server per port number..
Regards
Henrik
This archive was generated by hypermail pre-2.1.9 : Wed Aug 01 2007 - 12:00:06 MDT