CentOS 6 squid 3.x
Centos 6 编译squid 3.x
- yum -y install GCc make patch gcc-c++ gcc-g77 flex bison autoconf automake
- gpg --keyserver subkeys.pgp.net --recv-key FF5CF463
- wget Http://www.squid-cache.org/Versions/v3/3.1/squid-3.1.14.tar.gz
- wget http://www.squid-cache.org/Versions/v3/3.1/squid-3.1.14.tar.gz.asc
- tar xvf squid-3.1.14.tar.gz && cd squid-3.1.14
- gpg --verify squid-3.1.14.tar.gz.asc
- ./configure -prefix=/usr/local/squid -enable-dlmalloc -enable-debug-cbdata -enable-async-io=100\
- -with-pthreads-enable-storeio="aufs,coss,diskd,ufs" -enable-removal-policies="heap,lru"\
- -enable-icmp -enable-delay-pools -enable-useragent-log -enable-referer-log -disable-wccp\
- -disable-wccpv2 -enable-kill-parent-hack -enable-arp-acl -enable-snmp\
- -enable-default-err-language=Simplify_Chinese -enable-err-languages="Simplify_Chinese English"\
- -disable-poll -enable-epoll -disable-ident-lookups \
- -enable-truncate -enable-underscores -enable-basic-auth-helpers="NCSA" -enable-stacktrace\
- -with-winbind-auth-challenge -enable-large-cache-files -with-large-files -enable-x-accelerator-var
注意:如出现
- ip/.libs/libip.a(tools.o): In function `Ip::ProbeTransport()':
- /usr/src/soft/squid-3.1.14/src/ip/tools.cc:69: undefined reference to `Debug::Levels'
- /usr/src/soft/squid-3.1.14/src/ip/tools.cc:69: undefined reference to `Debug::level'
- /usr/src/soft/squid-3.1.14/src/ip/tools.cc:83: undefined reference to `Debug::getDebuGout()'
- /usr/src/soft/squid-3.1.14/src/ip/tools.cc:83: undefined reference to `Debug::finishDebug()'
- /usr/src/soft/squid-3.1.14/src/ip/tools.cc:72: undefined reference to `Debug::Levels'
- /usr/src/soft/squid-3.1.14/src/ip/tools.cc:72: undefined reference to `Debug::level'
- /usr/src/soft/squid-3.1.14/src/ip/tools.cc:59: undefined reference to `Debug::level'
- /usr/src/soft/squid-3.1.14/src/ip/tools.cc:59: undefined reference to `Debug::Levels'
- /usr/src/soft/squid-3.1.14/src/ip/tools.cc:59: undefined reference to `Debug::getDebugOut()'
- /usr/src/soft/squid-3.1.14/src/ip/tools.cc:59: undefined reference to `Debug::finishDebug()'
- /usr/src/soft/squid-3.1.14/src/ip/tools.cc:69: undefined reference to `Debug::getDebugOut()'
- /usr/src/soft/squid-3.1.14/src/ip/tools.cc:69: undefined reference to `Debug::finishDebug()'
- /usr/src/soft/squid-3.1.14/src/ip/tools.cc:72: undefined reference to `Debug::getDebugOut()'
- /usr/src/soft/squid-3.1.14/src/ip/tools.cc:72: undefined reference to `Debug::finishDebug()'
- collect2: ld returned 1 exit status
- make[3]: *** [dnsserver] Error 1
- make[3]: Leaving directory `/usr/src/soft/squid-3.1.14/src'
- make[2]: *** [all-recursive] Error 1
- make[2]: Leaving directory `/usr/src/soft/squid-3.1.14/src'
- make[1]: *** [all] Error 2
- make[1]: Leaving directory `/usr/src/soft/squid-3.1.14/src'
- make: *** [all-recursive] Error 1
- 这样的错误
请去掉./configure中的-disable-internal-dns
参考资料:
http://hi.baidu.com/billdkj/blog/item/05da07f49af379d1f2d38599.html
http://blog.csdn.net/chcn00/article/details/5694195
http://bbs.chinaunix.net/thread-3571378-1-1.html
相关文章