I installed Squid on CentOS in my local environment

1 minute read

I had to set up Squid for verification, but basically there is no internet connection.
So, I will summarize how to set up Squid in the local environment.


・ At first, I thought I would install it on Ubuntu.
-The Squid file was transferred via the bastion server.
-I tried to install it on Ubuntu, but gave up due to a Gcc error and Make error.
・ In the end, I decided to install it on CentOS.


  • Ubuntu
$ cat /etc/os-release
VERSION="14.04, Trusty Tahr"
PRETTY_NAME="Ubuntu 14.04 LTS"
  • CentOS
[[email protected] squid-4.13]# cat /etc/redhat-release
CentOS Linux release 7.3.1611 (Core)

Installed on Ubuntu (halfway)

Transfer tar file via bastion server

 #scp ./squid-4.13.tar.gz [email protected]:/var/tmp/

If you get an SCP Permission error, change the directory permissions.

What to do when Permission denied is issued by the scp command


[[email protected] etc]# tar zxvf squid-4.13.tar.gz

Install GCC

I get an error saying that there is no compiler, so install GCC.

configure: error: no acceptable C compiler found in $PATH

Helpful links

Build / install gcc from source
What are configure, make, make install
./configure; make; what does make install mean?
Compile, install, and run software packages (https://www.codereading.com/unix-tutorial/tut7.html)

install make

After that, when I tried to make ./configure, I was angry that there was no make.

ubuntu:~/tmp$ make
The program 'make' is currently not installed. You can install it by typing:
sudo apt-get install make

So I installed make from Ubuntu Package, but when I thought about it, I couldn’t make this file … I got stuck.

So I decided to install it on CentOS.

Install Squid on CentOS

–Similarly transfer Squid files to CentOS

  • configure, make, make install

It’s done.