dyld: Library not loaded error on macOS (OpenSSL missing)
See original GitHub issueWelcome to TagUI GitHub page 🤖! TagUI is a free RPA tool by AI Singapore (to automate digital processes). There’s a Python package built on TagUI called RPA for Python 🐍 with a similar issue and already has an automated fix.
This error is happening because macOS decided to drop OpenSSL and switched to LibreSSL. Furthermore, macOS Homebrew switched from OpenSSL v.1.0 to v1.1, breaking many other apps that are dependent on OpenSSL v1.0. The solution below may or may not work for other apps, be sure to check with their respective maintainers to confirm.
===== PROBLEM =====
I’ve come across a feedback from a macOS user that below error happens when running TagUI.
dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
===== RECOMMENDED SOLUTION =====
Hi Guys, for TagUI @Stwissel may have found the permanent solution. Note that this solution may not help for other projects. Download directly from following link. After unzipping, put contents of unzipped folder into tagui/src/phantomjs folder. https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-macosx.zip
Though above zip is PhantomJS v2.1.1 (same as TagUI packaged PJS), total file size for this zip after extraction is different. It might be Ariya, creator of PhantomJS, put in a fix already just to solve this headache with macOS/OpenSSL/Homebrew.
===== DEPRECATED SOLUTION =====
There is a new dependency in newer versions of macOS. To fix the error do the following. It installs Homebrew (a package manager for macOS) and installs OpenSSL for https connections. There are 2 uninstall commands below to first remove OpenSSL v1.1, then remove any dead OpenSSL v1.0, before installing a custom OpenSSL v1.0 formula which works without having to build with Xcode.
If you don’t have Homebrew or don’t know what is it
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
brew uninstall openssl; brew uninstall openssl; brew install https://github.com/tebelorg/Tump/releases/download/v1.0.0/openssl.rb
Or if you already have Homebrew installed
brew uninstall openssl; brew uninstall openssl; brew install https://github.com/tebelorg/Tump/releases/download/v1.0.0/openssl.rb
One last thing…
If you encounter problems using brew
, try the solution from @mrtoadsc near bottom of this page.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:623
- Comments:112 (31 by maintainers)
Top GitHub Comments
This worked for me:
Update April 2021
brew switch
has been from removed homebrew, https://github.com/kelaberetiv/TagUI/issues/86#issuecomment-720145575 worked instead.Old answer (February 2020)
I resolved the issue by switching my active OpenSSL version after installing the custom tap provided above
Source: https://stackoverflow.com/questions/59006602/dyld-library-not-loaded-usr-local-opt-openssl-lib-libssl-1-0-0-dylib