uWSGI can not load libssl.1.0.0.dylib

北城余情 提交于 2019-11-28 06:30:28

MacPorts usually install softwares into /opt/local/, but brew will install softwares into /usr/local/. It seems that my uwsgi is looking for the libssl.1.0.0.dylib in /usr/local/lib, so I use brew to install openssl and relink it:

brew install --upgrade openssl
brew unlink openssl && brew link openssl --force

I performed this:

I have been having this error for a long time and performing

brew uninstall openssl
brew install openssl

did not work for me even including "--force"

However, I found this link to this blog and it did work for me.

http://mithun.co/hacks/library-not-loaded-libcrypto-1-0-0-dylib-issue-in-mac/

Step 1: Install openssl using brew

brew install openssl 

Step 2: Copy copy libssl.1.0.0.dylib and libcrypto.1.0.0.dylib

cd /usr/local/Cellar/openssl/1.0.1f/lib  

sudo cp libssl.1.0.0.dylib libcrypto.1.0.0.dylib /usr/lib/ 

Note the bold folder name. There will be change in that depending on your openssl version

Step 3: Remove the existing links

sudo rm libssl.dylib libcrypto.dylib 

sudo ln -s libssl.1.0.0.dylib libssl.dylib 

sudo ln -s libcrypto.1.0.0.dylib libcrypto.dylib

I hope this helps!

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!