Squid 3.0 on CentOS x86_64

因為 squid 3.0 在 CentOS x86_64 底下編譯都會出現 “client_side.cc:2144: warning: comparison between signed and unsigned integer expressions”
所以只好回頭來找 rpm source 來安裝,底下是簡單的法子:
yum -y groupinstall “Development Tools”
yum -y install rpm-build openjade linuxdoc-tools gcc gcc-c++ openldap-devel pam-devel openssl-devel
cd /usr/local/src
wget http://download.fedora.redhat.com/pub/fedora/linux/releases/10/Fedora/source/SRPMS/squid-3.0.STABLE10-1.fc10.src.rpm
rpm -ivh squid-3.0.STABLE10-1.fc10.src.rpm
cd /usr/src/redhat/SPECS
rpmbuild -bb squid.spec
rpm -Uvh /usr/src/redhat/RPMS/x86_64/squid-3.0.STABLE10-1.x86_64.rpm
搞定收工 …..

About the Author

發表迴響

這個網站採用 Akismet 服務減少垃圾留言。進一步瞭解 Akismet 如何處理網站訪客的留言資料

%d 位部落客按了讚: