I installed Squid on CentOS in my local environment

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.

Background

・ 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.

environment

$ 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)

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

Defrost

[root@centos 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
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)

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

It's done.

Recommended Posts

I installed Squid on CentOS in my local environment
I installed F-Revo CRM 7.3 on CentOS 7.7
I installed Docker on my Raspberry Pi 3
[Rails] I can post S3 images in my local environment, but I can't switch to S3 on Heroku.
I installed CentOS 8 on Windows 10 using VirtualBox and Vagrant
I installed TinyTinyRSS on Cent OS 8
Install CentOS Stream 8 in Hyper-V environment
I tried putting Domino11 in CentOS7
I tried installing CentOS 8 on ESXi 6.7
Use docker in proxy environment on ubuntu 20.04.1
I can't install rails on my mac
I tried to build AdoptOpenjdk 11 on CentOS 7
When I tried to reproduce Progate's Rails app on my PC (local environment), I got stuck at the image display
I tried putting Java on my Mac easily
Just install Laravel8 on docker in PHP8 environment
[Rails] Run LINEBot in local environment using ngrok
Rails5.1 + puma SSL connection in local production environment
Try local file search using Fess on CentOS7
Try local file search using Fess on CentOS8
I installed Docker on EC2 and started it
I tried OmniSci on CentOS 7 + GeForce RTX 2080 Ti.
Support out of support in docker environment using centos6
I tried Firebase Local Emulator Suite in Flutter
I want to ESLint in Maven project. I want to run Node.js without putting it in my environment.