Installation on RedHat 6.0 or CentOS 6.0

To install Cain, first ensure that you have a C++ compiler and the appropriate Python packages. (See below.) Then follow the instructions for installation on linux/unix.

C++ compiler.
First ensure that you have a C++ compiler. In the Package Manager install Development Libraries and Development Tools.

Enthought Python Distribution.
The easiest way to get all of the required Python packages is to install the Enthought Python Distribution. It includes all of the packages that Cain requires. There is a free version for those associated with educational institutions. Download and save the Enthought Python Distribution installer file. You may either install for all users or just for your own use. Let's assume the former. (If you do not have administrator privileges, you can install EPD in your home directory.) In a terminal switch to superuser with "su". Start the installation with something like "sh epd-7.1-1-rh6-x86.sh". During installation you will be queried for an installation location. Choose something appropriate like "/usr/lib/python2.7". After the installation you will need to prepend the path to EPD python to your PATH environment variable. To do this execute "export PATH=/usr/lib/python2.7/bin:$PATH" in a terminal. It will be convenient to add this definition to your .bashrc or .bash_profile in your home directory.