0

I'm trying to create development environment for Hyperledger fabric v2.5 on my macOSX. While installing necessary tools and dependencies, I had to come after SoftHSM.

As per the SoftHSM documentation, I've already installed (with homebrew):

  • openssl : on path: /usr/bin/openssl
  • botan
  • automake,
  • pkg-config,
  • sqlite,
  • cppunit,
  • libtool

I also have git, curl, docker, docker-compose, jq installed on the machine (macOS Ventura 13.2.1).

however, While running the script to configure SoftHSM,

./configure

the script is interrupted, and it shows these at the end,

checking for crypto backend... OpenSSL
checking what are the OpenSSL includes... -I/usr/bin/sqlite3/include
checking what are the OpenSSL libs... -L/usr/bin/sqlite3/lib -lcrypto
checking for openssl/ssl.h... no
configure: error: Can't find OpenSSL headers

Commands like these are also not working:

make
make check
make -C src/lib/test check

How to solve this error configure: error: Can't find OpenSSL headers, can anyone help me out?

I'm expecting to establish a successful development environment for Hyperledger fabric development with SoftHSM v2.5.

  • The error is about where the openssl **headers** are installed, not where the openssl **executable** is installed. Telling us the executable is in `/use/bin` is irrelevant to determining whether and where the headers are present. – Charles Duffy Mar 25 '23 at 12:54

1 Answers1

1

You probably only need SoftHSM if you are working with HSM / PKCS#11 integration. If not, you can likely do without SoftHSM.

If you do need (or want) SoftHSM, the instructions you are following are to compile your SoftHSM installation from source. This should not be necessary. Just installing using Homebrew with brew install softhsm should be sufficient.

bestbeforetoday
  • 1,302
  • 1
  • 8
  • 12
  • But, the [documentation](https://hyperledger-fabric.readthedocs.io/en/latest/dev-setup/devenv.html) mentions to use version 2.5 "as 2.6 is not operable in this environment". – saditya Jul 19 '23 at 23:35