I am on a bitnami MAMP stack. I am using the php shipped with MAMP as my default PHP installation.
I have installed composer using php scripts:
https://getcomposer.org/download/
Now whenever I type composer in my bash terminal, I get the following error:
dyld: Library not loaded: /bitnami/mampstackDev-osx-x64/output/common/lib/libcrypto.1.0.0.dylib
Referenced from: /Applications/mampstack-7.1.15-0/php/bin/php.bin
Reason: image not found
Seems to be some problem with loading of libcryptolib.
[UPDATE 03-12-2019] One comment i would like to add is that this problem is happening from the time i changed my default PHP installation from /usr/bin/php to Mampstack PHP. Once i reverted the default php installation it started working