Technology Insights

JTR – John The Ripper Compile Error – sha.h:4:25: fatal error: openssl/sha.h: No such file or directory

Earlier while compiling JTR or John The Ripper password cracker on a new Ubuntu 12.04 LTS server I received a compile error. The error compiling JTR, which is noted in more detail below, pointed to the sha.h file not being found which likely means there is a missing package though I have seen other causes for file versions being incorrect. Below I explain the initial compile error in more detail, how to track down the package that provides the necessary file or files, and how to install the necessary package on Ubuntu.