sudo apt-get install build-essential libsqlite3-dev libxml2-dev libldns-dev libbotan1.10-dev
In one go we can get, unpack, configure, compile and install SoftHSM:
wget https://dist.opendnssec.org/source/softhsm-1.3.7.tar.gz tar xzf softhsm-1.3.7.tar.gz cd softhsm-1.3.7 ./configure --with-botan=/usr make sudo make install
Whether the configure command explicitly needs a path to the botan library, and where this is located will depend on your Linux or Unix distribution. After this SoftHSM is installed, but not ready to be used, we will come back to that later.
SoftHSM 1 is being replaced with SoftHSM 2, which does not require Botan and can make use of OpenSSL. Also other features are available in SoftHSM 2. OpenDNSSEC is not dependent on one or the other, in fact any PKCS#11 HSM should work. You are welcome to start with SoftHSM2, for now we have left the documentation here with SoftHSM 1 for familiarity.
Again we can fetch the OpenDNSSEC source code, and perform all necessary steps to get OpenDNSSEC installed in one go:
wget https://dist.opendnssec.org/source/opendnssec-2.0.1.tar.gz tar xzf opendnssec-2.0.01.tar.gz cd opendnssec-2.0.01 ./configure make sudo make install
OpenDNSSEC is now installed, SoftHSM and OpenDNSSEC still need to be prepared for first usage