CentOS 6 squid 3.x
短信预约 -IT技能 免费直播动态提醒
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/class="lazy" data-src/soft/squid-3.1.14/class="lazy" data-src/ip/tools.cc:69: undefined reference to `Debug::Levels'
- /usr/class="lazy" data-src/soft/squid-3.1.14/class="lazy" data-src/ip/tools.cc:69: undefined reference to `Debug::level'
- /usr/class="lazy" data-src/soft/squid-3.1.14/class="lazy" data-src/ip/tools.cc:83: undefined reference to `Debug::getDebugOut()'
- /usr/class="lazy" data-src/soft/squid-3.1.14/class="lazy" data-src/ip/tools.cc:83: undefined reference to `Debug::finishDebug()'
- /usr/class="lazy" data-src/soft/squid-3.1.14/class="lazy" data-src/ip/tools.cc:72: undefined reference to `Debug::Levels'
- /usr/class="lazy" data-src/soft/squid-3.1.14/class="lazy" data-src/ip/tools.cc:72: undefined reference to `Debug::level'
- /usr/class="lazy" data-src/soft/squid-3.1.14/class="lazy" data-src/ip/tools.cc:59: undefined reference to `Debug::level'
- /usr/class="lazy" data-src/soft/squid-3.1.14/class="lazy" data-src/ip/tools.cc:59: undefined reference to `Debug::Levels'
- /usr/class="lazy" data-src/soft/squid-3.1.14/class="lazy" data-src/ip/tools.cc:59: undefined reference to `Debug::getDebugOut()'
- /usr/class="lazy" data-src/soft/squid-3.1.14/class="lazy" data-src/ip/tools.cc:59: undefined reference to `Debug::finishDebug()'
- /usr/class="lazy" data-src/soft/squid-3.1.14/class="lazy" data-src/ip/tools.cc:69: undefined reference to `Debug::getDebugOut()'
- /usr/class="lazy" data-src/soft/squid-3.1.14/class="lazy" data-src/ip/tools.cc:69: undefined reference to `Debug::finishDebug()'
- /usr/class="lazy" data-src/soft/squid-3.1.14/class="lazy" data-src/ip/tools.cc:72: undefined reference to `Debug::getDebugOut()'
- /usr/class="lazy" data-src/soft/squid-3.1.14/class="lazy" data-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/class="lazy" data-src/soft/squid-3.1.14/class="lazy" data-src'
- make[2]: *** [all-recursive] Error 1
- make[2]: Leaving directory `/usr/class="lazy" data-src/soft/squid-3.1.14/class="lazy" data-src'
- make[1]: *** [all] Error 2
- make[1]: Leaving directory `/usr/class="lazy" data-src/soft/squid-3.1.14/class="lazy" data-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
免责声明:
① 本站未注明“稿件来源”的信息均来自网络整理。其文字、图片和音视频稿件的所属权归原作者所有。本站收集整理出于非商业性的教育和科研之目的,并不意味着本站赞同其观点或证实其内容的真实性。仅作为临时的测试数据,供内部测试之用。本站并未授权任何人以任何方式主动获取本站任何信息。
② 本站未注明“稿件来源”的临时测试数据将在测试完成后最终做删除处理。有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341