macOS OpenSSL version issue - Homebrew moved it from v1.0 to v1.1 - initial fix

See original GitHub issue

Hi Guys, for TagUI we may have found the permanent solution. Note that this solution may not help for other projects. Download directly from below 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.


Hi Ken,

Today I encountered some error related to openssl while installing tagui on my mac computer. 2.2.0 version of homebrew released on November 27. In this version openssl 1.0 has been deleted for end of life.brew install openssl now installs version 1.1

referance: https://brew.sh/2019/11/27/homebrew-2.2.0/

Version 1.1 has /usr/local/opt/openssl/lib/libssl.1.1.dylib instead of /usr/local/opt/openssl/lib/libssl.1.0.0.dylib

So the following lines of code in the tagui python project don’t work

if not os.path.isfile('/usr/local/opt/openssl/lib/libssl.1.0.0.dylib'): This can be corrected in some way, but most importantly, phantom addiction.phantom gives the following error in openssl 1.1 version

dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib Referenced from: /Users/mcim/.moxie-tagui/phantomjs/bin/phantomjs Reason: image not found

I continue to research about the problem and I will share it when there is an improvement

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:61 (15 by maintainers)

github_iconTop GitHub Comments

128reactions
kensohcommented, Dec 2, 2019

The solution seems to be running below commands in terminal. There are 2 uninstall commands to make sure any OpenSSL v1.1 is removed, and any dead v1.0 is removed, before installing v1.0.

The v1.0 Homebrew formula below is created by combining the SHA checksums of the brew extract method with the git commit history of OpenSSL v1.0 formula (specifically v1.0.2t).

brew uninstall openssl; brew uninstall openssl; brew install https://github.com/tebelorg/Tump/releases/download/v1.0.0/openssl.rb
72reactions
juan267commented, Oct 6, 2020

I just wanted to leave a detail summary (based on the comments above) on how to fix this issue at the current moment:

  1. First go to the local installation of homebrew
cd /usr/local/Homebrew/
  1. Homebrew 2.5 remove the option to install formulas directly from git repos so we need to checkout an older version
git checkout 2.3.0
  1. Install openssl latest 1.0.x version
HOMEBREW_NO_AUTO_UPDATE=1 brew install https://github.com/tebelorg/Tump/releases/download/v1.0.0/openssl.rb
  1. Go back to current version of homebrew
git checkout -
  1. Tell brew to use the old version of openssl this way you can chose wich version to use if you have both intalled
brew switch openssl 1.0.2t
Read more comments on GitHub >

github_iconTop Results From Across the Web

macOS OpenSSL version issue - Homebrew moved it from v1 ...
The solution seems to be running below commands in terminal. There are 2 uninstall commands to make sure any OpenSSL v1.1 is removed,...
Read more >
Update OpenSSL on OS X with Homebrew - macos
Change your $PATH , close that terminal tab and open a new one, and run which openssl . You should see a different...
Read more >
Install Openssl 1.0.2t version on macOS - Medium
Since OpenSSL 1.0.2 is end of lifed by the end of 2019, ... macOS OpenSSL version issue - Homebrew moved it from v1.0...
Read more >
brew(1) – The Missing Package Manager for macOS (or Linux)
v1 is deprecated and is currently the default if no version is specified. v2 prints outdated formulae and casks. --fetch-HEAD : Fetch the...
Read more >
install openssl macos catalina
6 Catalina and Homebrew (latest version, 2. because macOS provides LibreSSL. ... PATH to the new version of openssl. com/tebelorg/Tump/releases/download/v1.
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