question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

dyld: Library not loaded error on macOS (OpenSSL missing)

See original GitHub issue

Welcome 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:closed
  • Created 6 years ago
  • Reactions:623
  • Comments:112 (31 by maintainers)

github_iconTop GitHub Comments

234reactions
KungFuLucky7commented, Sep 10, 2020

This worked for me:

brew install rbenv/tap/openssl@1.0
ln -sfn /usr/local/Cellar/openssl@1.0/1.0.2t /usr/local/opt/openssl
149reactions
hydrosquallcommented, Jul 17, 2021

Update April 2021

Old answer (February 2020)

I resolved the issue by switching my active OpenSSL version after installing the custom tap provided above

brew switch openssl 1.0.2t

Source: https://stackoverflow.com/questions/59006602/dyld-library-not-loaded-usr-local-opt-openssl-lib-libssl-1-0-0-dylib

Read more comments on GitHub >

github_iconTop Results From Across the Web

dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0 ...
Explanation an solution: It seems that you're required to install older openssl version that is no longer exist on ...
Read more >
dyld: Library not loaded: libssl.1.1.dylib fix on MacOS
In this article I'll show you how to quickly fix the dyld: Library not loaded: libssl.1.1.dylib error on MacOS while running the C++...
Read more >
How to Fix 'Dyld: Library not Loaded' Error on MacOS - Appuals
Navigate to the “/usr/lib” folder. Press the “Command” + “Space” simultaneously. Type in “Terminal” and press “Enter“. ; Press the “Command” + “ ......
Read more >
dyld: Library not loaded | Apple Developer Forums
So yesterday I installed iOS 13.3.1 on my iPhone XR and macOS 10.15.3 on my iMac. Then, I've been getting this error in...
Read more >
Fix [dyld: Library not loaded: /usr/local/opt/openssl/lib/libcrypto ...
That prior command turns out upgrade all of the homebrew formula and packages installed on my laptop to the latest version. At first...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found