编译代理服务器squid3.0报错
magic2.1正式dvd版下载了squid-3.0.STABLE10
make时报错,部分信息如下:
/usr/local/squid/etc/squid.conf\" -I. -I. -I../include -I. -I. -I../include -I../include -I../lib/libTrie/include -I/usr/include/libxml2-Werror -Wall -Wpointer-arith -Wwrite-strings -Wcomments-g -O2 -MT tools.o -MD -MP -MF "$depbase.Tpo" -c -o tools.o tools.cc; \
then mv -f "$depbase.Tpo" "$depbase.Po"; else rm -f "$depbase.Tpo"; exit 1; fi
In file included from /usr/include/sys/capability.h:34,
from tools.cc:50:
/usr/include/linux/capability.h:73: error: `__le32' does not name a type
/usr/include/linux/capability.h:75: error: `__le32' does not name a type
/usr/include/linux/capability.h:76: error: `__le32' does not name a type
make: *** 错误 1
make: Leaving directory `/home/stronghill/soft/squid-3.0.STABLE10/src'
make: *** 错误 1
make: Leaving directory `/home/stronghill/soft/squid-3.0.STABLE10/src'
make: *** 错误 2
make: Leaving directory `/home/stronghill/soft/squid-3.0.STABLE10/src'
make: *** 错误 1
有遇到的么?
或者我应该下载编译哪个版本的squid? 编译squid-2.7.STABLE5,报的错基本相同,呵呵
then mv -f ".deps/store_update.Tpo" ".deps/store_update.Po"; else rm -f ".deps/store_update.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/usr/local/squid/etc/squid.conf\" -I. -I. -I../include -I. -I. -I../include -I../include -Wall -g -O2 -MT tools.o -MD -MP -MF ".deps/tools.Tpo" -c -o tools.o tools.c; \
then mv -f ".deps/tools.Tpo" ".deps/tools.Po"; else rm -f ".deps/tools.Tpo"; exit 1; fi
In file included from /usr/include/sys/capability.h:34,
from tools.c:50:
/usr/include/linux/capability.h:73: error: syntax error before "__le32"
/usr/include/linux/capability.h:75: error: syntax error before "__le32"
/usr/include/linux/capability.h:78: error: syntax error before '}' token
make: *** 错误 1
make: Leaving directory `/home/stronghill/soft/squid-2.7.STABLE5/src'
make: *** 错误 1
make: Leaving directory `/home/stronghill/soft/squid-2.7.STABLE5/src'
make: *** 错误 2
make: Leaving directory `/home/stronghill/soft/squid-2.7.STABLE5/src'
make: *** 错误 1 修改capability.h中的__le32为__u32。 好了,谢谢版主关心 编译好后,运行
squid -z
以后就直接在sbin目录下运行
squid start
就可以了
使用默认配置,3128端口
页:
[1]