Hello,

I recently discovered that the OpenSSL 3 library is missing from the CouchDB 
3.3.3-2 installation file for MacOS. The Erlang Crypto application 
(https://www.erlang.org/doc/man/crypto_app#dependencies) depends on OpenSSL and 
supports all versions of OpenSSL. Erlang/OTP 26, used by CouchDB 3.3.3-2, added 
support for OpenSSL 3. Currently, the CouchDB 3.3.3-2 installation file only 
includes libcripto.1.1.dylib and not libcripto.3.dylib, which does not allow 
CouchDB to run.

I didn't notice this problem for a long time because every Mac I've used so far 
already had Homebrew and openssl@3 installed before CouchDB 3.3.3-2 was 
installed. One of the users of the software, which includes CouchDB, has a Mac 
without Homebrew installed and this caused the error.

I must say that CouchDB, as part of the software supplied to the user, is not 
installed by running the installation file downloaded from 
https://neighbourhood.ie/, but the downloaded CouchDB is repackaged as a .pkg 
file (package component) which is included in a more complex package archive. 
This repackaging does not affect the issue with missing OpenSSL 3 library.

My question is: will CouchDB for MacOS include the OpenSSL 3 library in the 
installation files in the near future?

Please see the log file downloaded from a Mac without Homebrew installed:

[info] 2024-04-30T17:36:25.082194Z couchdb@localhost <0.259.0> -------- Apache 
CouchDB 3.3.3 is starting.

[info] 2024-04-30T17:36:25.082230Z couchdb@localhost <0.260.0> -------- 
Starting couch_sup
[error] 2024-04-30T17:36:25.265873Z couchdb@localhost <0.266.0> -------- Unable 
to load crypto library. Failed with error:
"load_failed, Failed to load NIF library: 
'dlopen(/Applications/NASARTT/couchdb/bin/../lib/crypto-5.4/priv/lib/crypto.so, 
0x0002): Library not loaded: /opt/homebrew/opt/openssl@3/lib/libcrypto.3.dylib
  Referenced from: <E79AF488-19BB-3B5B-A852-764D8412B1CA> 
/Applications/NASARTT/couchdb/lib/crypto-5.4/priv/lib/crypto.so
  Reason: tried: '/opt/homebrew/opt/openssl@3/lib/libcrypto.3.dylib' (no such 
file), 
'/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/openssl@3/lib/libcrypto.3.dylib'
 (no such file), '/opt/homebrew/opt/openssl@3/lib/libcrypto.3.dylib' (no such 
file)'"
OpenSSL might not be installed on this system.

Regards,
Miroslav

Reply via email to