TI-Tokyo / riak-docs-fork

Riak Products Documentation
http://www.tiot.jp/riak-docs/
Other
3 stars 6 forks source link

OSX fix missing #69

Open Bob-The-Marauder opened 2 years ago

Bob-The-Marauder commented 2 years ago

This might have been a lost WIP fix for https://www.tiot.jp/riak-docs/riak/kv/2.9.0/setup/installing/mac-osx/ as I remember writing it but can't find it. OSX has additional files libcrypto-1.0.0.dylib and libssl-1.0.0.dylib I included in https://files.tiot.jp/riak/kv/2.9/2.9.0/osx/10.11/ that need to be copied to /usr/local/opt/openssl/lib/ or Riak will fail to start with the following error in the logs:

2021-10-05 17:13:49.385 [error] <0.192.0> Unable to load crypto library. Failed with error:
"load_failed, Failed to load NIF library: 'dlopen(/Users/myuser/path/to/riak/bin/../lib/crypto-3.1/priv/lib/crypto.so, 2): Library not loaded: /u$
  Referenced from: /Users/myuser/path/to/riak/lib/crypto-3.1/priv/lib/crypto.so
  Reason: image not found'"
OpenSSL might not be installed on this system.

I re-discovered this when I tried to start Riak on my Mac and realised that when I updated Homebrew two weeks ago, it must have updated openssl and, in doing so, removed the files. As such, we'll also need a note saying that updating openssl on Homebrew may need you to re-download these files to /usr/local/opt/openssl/lib/ again. We should probably have an additional note for clarity saying that the contents of /usr/local/opt/openssl@1.1/ and any subsequent versions featuring openssl@<version> can be safely ignored - the files only need to be added to the openssl folder without a version.

pjaclark commented 2 years ago
pjaclark commented 2 years ago

@Bob-The-Marauder Would these be needed for CS 2.x as well?

Bob-The-Marauder commented 2 years ago

As far as I know, libcrypto is only used in KV. Either way, without KV, CS is pointless. If it's in place for KV, it will automatically be picked up by CS.