2017-08-10 200 views
0

我试图从官方网站安装鱿鱼http://www.squid-cache.org/Versions/其中我downloaded squid-3.4.5.tat.gz。 我想将它安装在Debian Jesssie上。 首先我更新了build-essential和libssl-dev。安装鱿鱼时出错

#apt-get install build-essential 
#apt-get install libssl-dev 
#tar -xzf example.tar.gz 
#cd example-name 
#./configure –prefix=/usr/local /squid –enable-icap-client –enable-ssl –enable-ssl-crtd –with-default-user=squid 
#make all 

make all后,我得到了错误:

In file included from ../include/MemPool.h:26:0, 
       from ../include/MemPoolChunked.h:4, 
       from MemPoolChunked.cc:87: 
../include/splay.h: In member function 'SplayNode<V>* SplayNode<V>::splay(const FindValue&, int (*)(const FindValue&, const Value&)) const [with FindValue = MemChunk*; V = MemChunk*]': 
../include/splay.h:212:5: error: nonnull argument 'this' compared to NULL [-Werror=nonnull-compare] 
    if (this == NULL) { 
    ^~ 
../include/splay.h: In member function 'SplayNode<V>* SplayNode<V>::remove(SplayNode<V>::Value, int (*)(const Value&, const Value&)) [with V = MemChunk*]': 
../include/splay.h:151:5: error: nonnull argument 'this' compared to NULL [-Werror=nonnull-compare] 
    if (this == NULL) 
    ^~ 
../include/splay.h: In member function 'SplayNode<V>* SplayNode<V>::insert(SplayNode<V>::Value, int (*)(const Value&, const Value&)) [with V = MemChunk*]': 
../include/splay.h:182:5: error: nonnull argument 'this' compared to NULL [-Werror=nonnull-compare] 
    if (this == NULL) { 
    ^~ 
../include/splay.h: In member function 'SplayNode<V>* SplayNode<V>::splay(const FindValue&, int (*)(const FindValue&, const Value&)) const [with FindValue = void*; V = MemChunk*]': 
../include/splay.h:212:5: error: nonnull argument 'this' compared to NULL [-Werror=nonnull-compare] 
    if (this == NULL) { 
    ^~ 
MemPoolChunked.cc: In member function 'virtual void MemPoolChunked::clean(time_t)': 
MemPoolChunked.cc:394:5: error: nonnull argument 'this' compared to NULL [-Werror=nonnull-compare] 
    if (!this) 

我试图谷歌这个问题,但我不能找到解决方案。

回答

0

squid包可在Debian杰西回购:squid3 (3.4.8-6+deb8u4),你不需要编译程序,只需运行:

apt update 
apt build-dep squid3 
apt install squid3