Technology Insights

JTR – John The Ripper Compile Error – common-opencl.h:8:19: fatal error: CL/cl.h: No such file or directory

Recently while attempting to get John The Ripper 1.7.9 jumbo-7 working on a Ubuntu 12.04 LTS Linux server with multiple AMD GPU cards in it I ran across an error during the compile process. The error complained about the VL/cl.h file not being installed and thus could not finishing compiling. Below I describe the compile error, how to locate the Ubuntu package that installs the necessary file to move past the previously mentioned compile error, and then how to install the correct package.

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.

Technology Insights

Ubuntu Equivalent Of yum whatprovides On CentOS

In the past I used CentOS Linux the open source RedHat Enterprise Linux clone but these days I find myself using Ubuntu Linux more and more often because so many more packages that clients want installed are more up to date. One command I used to use on CentOS all the time was the yum whatprovides command which would allow me to search for specific applications, scripts, libraries, etc. to figure out what packages I needed to install. The command that is similar on Ubuntu is apt-file which does not come installed by default. Below I show the output of an example yum whatprovides command on CentOS Linux followed by what needs to be done to use apt-file on Ubuntu Linux.