ubuntu-16.04gdcm

gdcmanon - Requested cryptoraphic library not configured


I am using gdcmanon to anonimize dicom files like the following:

LD_LIBRARY_PATH=../lib ./gdcmanon --certificate CA_cert.cer -e ./dump ./dump/anon

But it gives the following error:

Error: In /home/travis/build/malaterre/GDCM/Source/Common/gdcmCryptoFactory.cxx, line 61, function static gdcm::CryptoFactory* gdcm::CryptoFactory::GetFactoryInstance(gdcm::CryptoFactory::CryptoLib) No crypto factory registered with id 1

Requested cryptoraphic library not configured.

How can I solve this?


Solution

  • The error is because of binaries you use, it looks like SSL dependencies are not satisfied.

    As a solution (workaround?), you can get the binaries via apt system. For Ubuntu 16.04 Xenial distribution, there is version 2.6.3 of libgdcm-tools package.

    Another possibility is to compile gdcm from scratch, but you need development files of OpenSSL (apt install libssl-dev). Moreover, to use anonymisation with certificates, in CMake system set GDCM_USE_SYSTEM_OPENSSL=YES.