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.
$ cat /etc/os-release NAME="Ubuntu" VERSION="14.04, Trusty Tahr" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 14.04 LTS" VERSION_ID="14.04" HOME_URL="http://www.ubuntu.com/" SUPPORT_URL="http://help.ubuntu.com/" BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
[root@centos squid-4.13]# cat /etc/redhat-release CentOS Linux release 7.3.1611 (Core)
#scp ./squid-4.13.tar.gz [email protected]:/var/tmp/
If you get an SCP Permission error, change the directory permissions.
[root@centos etc]# tar zxvf squid-4.13.tar.gz
I get an error saying that there is no compiler, so install GCC.
configure: error: no acceptable C compiler found in $PATH
https://gcc.gnu.org/ 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)
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.
--Similarly transfer Squid files to CentOS