Technology Insights

JTR – John The Ripper Compile Error – /usr/bin/ld: cannot find -lOpenCL

The article below describes an error received while attempting to compile John The Ripper with GPU support via OpenCL on Ubuntu Linux version 12.04 LTS also known as Precise Pangolin. Many compile errors are related to necessary packages not being installed on Linux though other errors could be related to all sorts of different issues such as incorrect Library versions or files in the incorrect locations. In this case the specific error states that ld cannot locate the OpenCL library so below we describe the error in more detail, how to search to see if the proper libraries are installed, and the resolution by simply creating a symbolic link to the proper OpenCL library.

Technology Errors

oclHashcat64.bin: /usr/lib64/libOpenCL.so: no version information available (required by ./oclHashcat64.bin)

I have been working on a project using oclHashcat this afternoon and started to look into an error that has existed on a development server where we use oclHashcat for quite some time. After some digging around I am confident that regardless of the error existing there is not an issue but I wanted to post an article related to the error in case anyone else looked for a resolution to the error. Below is information on the libOpenCL.so error and my thoughts regarding the error.