How to compile a package?

Issues related to applications and software problems
Post Reply
Kunwar
Posts: 55
Joined: 2014/08/28 23:21:43

How to compile a package?

Post by Kunwar » 2016/01/11 15:50:36

I am trying to setup squid proxy server for HTTP and HTTPS.... Everything worked fine for HTTP but when I tried to configure Squid for SSL-Bump. Everything messed up on further research I found an article http://wiki.squid-cache.org/Features/DynamicSslCert that suggests building squid with " --enable-ssl --enable-ssl-crtd ... " flags and I don't know how to do that. I went to this link http://www.squid-cache.org/Versions/v3/3.5/ to download the squid package but I don't know which one to use ( out of tar.gz (sig) / tar.bz2 (sig) / tar.xz (sig)). Please direct me in the right direction.

The steps that I have gone through are:

Code: Select all

# wget http://www.squid-cache.org/Versions/v3/3.5/squid-3.5.13.tar.gz
# tar -zxf squid-3.5.13.tar.gz 
# cd squid-3.5.13/
# ./configure --with-openssl --enable-ssl-crtd
and I get the following error:

Code: Select all

checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '0' is supported by ustar format... yes
checking whether GID '0' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/home/zubair/Downloads/squid-3.5.13':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
With further research I found out that I had to install development tools and crypto... I did that by issuing the following commands:

Code: Select all

# yum groupinstall "Development Tools"
# yum install -y openssl-devel

after that I was able to compile it with the flags and all... By issuing the following commands

Code: Select all

# ./configure  --prefix=/usr/local --with-openssl --enable-ssl-crtd
# make install 
Even after issuing the make install command squid 3.5 didn't get installed... I am not sure where I went wrong.
Last edited by Kunwar on 2016/01/11 18:38:06, edited 2 times in total.

User avatar
TrevorH
Site Admin
Posts: 33216
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: How to compile a package?

Post by TrevorH » 2016/01/11 16:03:34

Why are you building squid when you can just yum install squid ?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Kunwar
Posts: 55
Joined: 2014/08/28 23:21:43

Re: How to compile a package?

Post by Kunwar » 2016/01/11 16:11:06

I have squid 3.3.8 installed but I need Squid 3.5.x to configure SSL bumping. I am not sure if I can recompile the package (3.3.8) with the required flags.

Post Reply