If you're using Mandriva goto
http://easyurpmi.zarb.org and setup the repositories, then install the package john using menu->System->Configuration->Packaging->Install Software.
If using RHEL, Centos or Fedora setup the dag repository for your yum config (google 'Dag Wieers') and yum install john
In short most distros already have packages for this.