Installing SWIG in Ubuntu-based distros can be performed through apt-get:
$ sudo apt-get install swig