编译squid3.1时常见错误解决方法

作者:网络医生 发布于:2011-5-25 15:33 Wednesday 分类:Linux技术

在编译squid3.1版本时经常会出现如下错误:

checking if Linux (Netfilter) kernel header files are installed... yes
configure: WARNING: Missing needed capabilities (libcap or libcap2) for TPROXY
configure: WARNING: Linux Transparent Proxy support WILL NOT be enabled
configure: WARNING: Reduced support to Interception Proxy
configure: WARNING: Missing needed capabilities (libcap or libcap2) for TPROXY v2
configure: WARNING: Linux Transparent Proxy support WILL NOT be enabled

原因是libcap版本太低了,squid3.1对透明代理(transparent)支持要求如下:

Linux Kernel 2.6.28

iptables 1.4.3

libcap-dev or libcap2-dev

libcap 2.09 or later

如果低于以上版本在配置编译时就会出现警告,即使安装上某些功能也会出现异常。只有把各版本升级到高版本之后才能正常使用。


 

标签: squid squid3.1 transparent

发表评论:

  • 8
  • 3
  • 0
  • 6
  • 5

Powered by emlog