Error when installing Homebrew: dyld: Library not loaded: @rpath/libssl.1.0.0.dylib
You can resolve the issue by installing libssh2 via conda environment manager.
conda install libssh2
I finally figured what the problem was. The dylib couldn't be found. So I added the following line to the ~/.bash_profile
(you can open this file using the nano ~/.bash_profile
command or open it using any other editor than nano
):
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:/opt/local/lib
This line simply tells where we should be looking for the dylibs. Just figure out where your dylibs are (in my case they are at /opt/local/lib
) and add the path to the ~/.bash_profile
file.)
Notice: This solution might potentially affect some other functionalities. But in my case, it helped to successfully install the Homebrew. It would be great if anyone shares a better solution if there's any.