Installing swig on Linux

git clone https://github.com/swig/swig.git
cd swig
sudo apt-get install automake
./autogen.sh
./configure
sudo apt-get install bison flex
make
sudo make install
When following the above steps,
sudo: apt-get: command not found
reports an error. The high probability is due to the CentOS system being used. When downloading, change the apt-get to yum


Read More: