Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
kensoh opened this issue Mar 8, 2018 · 118 comments
Closed

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

kensoh opened this issue Mar 8, 2018 · 118 comments
Labels

Comments

@kensoh
Copy link
Member

kensoh commented Mar 8, 2018

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.

@kensoh kensoh added the bug label Mar 8, 2018
@kensoh
Copy link
Member Author

kensoh commented Mar 8, 2018

Closing this issue for time being, and keeping a lookout for more occurrences or clean macOS laptops to identify patterns for root cause.

@kensoh kensoh closed this as completed Mar 8, 2018
@kensoh
Copy link
Member Author

kensoh commented Mar 8, 2018

internal reference - this issue by other open-source project mentions that in macOS 10.13, it switches away from OpenSSL to LibreSSL - envoyproxy/envoy#2395

@kensoh
Copy link
Member Author

kensoh commented Mar 9, 2018

another datapoint the same user fixes the issue with just the following without doing the linking step (he already has Homebrew) so the first line /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" is not needed.

# outdated solution in this code block, see updated solution above
https://github.com/kelaberetiv/TagUI/issues/86#issue-303370944

another datapoint where a macos user encounters the same issue. it could be the 10.13 release change in behavior around OpenSSL.

@kensoh
Copy link
Member Author

kensoh commented Mar 10, 2018

There is a new dependency possibly 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.

If you do not have Homebrew or don't know what is Homebrew

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
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


If you encounter problems using brew, try the solution from @mrtoadsc near bottom of this page.

@jameschanck
Copy link

Jamess-MacBook-Pro:src jameschan$ ./tagui samples/try1 chrome
dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
Referenced from: /Users/jameschan/Downloads/tagui/src/phantomjs/bin/phantomjs
Reason: image not found

i am reading the above can fix but can explain what is wrong?? Thanks

@kensoh
Copy link
Member Author

kensoh commented Apr 17, 2018

Hi @jameschanck thanks for sharing that above fix works. From my understanding macOS Sierra is switching away from OpenSSL to LibreSSL as the tool to access secure connections.

The above installs and enables OpenSSL on your macOS so that the part of TagUI (PhantomJS engine) that automates and connects to https:// websites can continue working.

@jameschanck
Copy link

jameschanck commented Apr 17, 2018 via email

@kensoh
Copy link
Member Author

kensoh commented Apr 17, 2018

I see.. This step-by-step tutorial may be useful. Or this video talk at FOSSASIA with demo of TagUI features. Yes TagUI has integration with Sikuli to control UI interactions (including desktop applications) using visual recognition and OCR. But some automation scenarios needs greater control than this.

For example clicking on cell J10 on an Excel spreadsheet. Doing that by specifying a cell image to click on won't find the right cell. Open-source apps such as AHK or Roro can have automation scripts to do such actions. Integrating with them will let TagUI do more types of automation.

Now the run step can be used to call AHK or Roro, thinking if there is a way to make it even easier.

@jameschanck
Copy link

jameschanck commented Apr 18, 2018 via email

@kensoh
Copy link
Member Author

kensoh commented Apr 20, 2018

Posting as a separate issue as the discussion is not related to this macOS SSL issue - #141

@ntoghrama
Copy link

hi! I do not have homebrew but am trying to install it for MacOS Mojave 10.14.3.

Running:

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Returns:

dyld: Library not loaded: @rpath/libssl.1.0.0.dylib Referenced from: /Users/natasha/anaconda3/lib/libssh2.1.dylib Reason: image not found

does anyone have about idea of why this does not work?

@kensoh
Copy link
Member Author

kensoh commented Feb 24, 2019

Thanks for heads-up! Strange, I'm running same version of macOS - Mojave 10.14.3. Tried the same command to install on both normal terminal and Anaconda environment without issues.

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

This is probably an environment issue but can't find related issues on homebrew github or discourse. Reopening this issue for the time being to see if anyone else can add on their findings.

@kensoh kensoh reopened this Feb 24, 2019
@kensoh kensoh added query and removed bug labels Feb 24, 2019
@kensoh
Copy link
Member Author

kensoh commented Feb 25, 2019

Adding on, it looks like there is conflict with Anaconda on your system preventing installation of Homebrew, try changing PATH in ~/.profile and see if that helps - https://discourse.brew.sh/t/ssh-problem-with-install-homebrew/4052

Closing issue for now as the above installation conflict is with Anaconda / Homebrew. Another reference on Homebrew installation issue with Anaconda.

@enhering
Copy link

enhering commented Aug 6, 2019

Hi. I'm running Mac OS 10.12.6 (sierra).

After installing mysql connector cpp 8.0.17 this same issue happened:ENH-MBP:build enhering$ ./FJH
dyld: Library not loaded: libssl.1.0.0.dylib
Referenced from: /usr/local/mysql-connector-c++-8.0.17/lib64/libmysqlcppconn.7.dylib
Reason: image not found
Abort trap: 6
ENH-MBP:build enhering$

I already had openssl installed by brew. And I was using MySQL connector cpp 1.x.x before this without problems.

The MySQL connector cpp 8.0.17 package was downloaded from mysql website. They provide binaries for many distributions.

@kensoh
Copy link
Member Author

kensoh commented Aug 7, 2019

I'm not sure what is the above command FJH that triggers the error message. Do you mean you have problems running MySQL? If yes, you should raise the issue on MySQL issues or community forum page.

If you mean an existing TagUI script now cannot work after installing MySQL, you can try the following to see if it works, by removing and installing OpenSSL again.

# outdated solution in this code block, see updated solution above
https://github.com/kelaberetiv/TagUI/issues/86#issue-303370944

@mrtoadsc
Copy link

I stumbled across this thread while trying to resolve my own dyld: Library not loaded libssl issue. In more recent versions of MacOS, they introduced a feature called System Integrity Protection which prevents packages from writing to protected directories like /bin or /usr/lib. Even commands like brew link openssl --force will not work.

You must disable SIP in order to copy/link the open ssl libraries to the correct destination, You can do this by going into Recovery Mode (reboot, Cmd-R at the Apple logo), open a Terminal and execute the command csrutil disable, reboot and then you can copy the files into /usr/lib. This is what worked for me. Perhaps you can copy the libssl, libcrypto files to /usr/loca/lib - which doesn't require disabling SIP - but I didn't try that.

Good luck!

@kensoh
Copy link
Member Author

kensoh commented Sep 18, 2019

Thanks Mark for sharing your findings!

Adding on a short article which users can also refer to if they encounter the issue -
https://www.imore.com/how-turn-system-integrity-protection-macos

And a longer article with the technical background and screenshots of the steps -
https://www.macworld.com/article/2986118/how-to-modify-system-integrity-protection-in-el-capitan.html

@hectorb802
Copy link

I stumbled across this thread while trying to resolve my own dyld: Library not loaded libssl issue. In more recent versions of MacOS, they introduced a feature called System Integrity Protection which prevents packages from writing to protected directories like /bin or /usr/lib. Even commands like brew link openssl --force will not work.

You must disable SIP in order to copy/link the open ssl libraries to the correct destination, You can do this by going into Recovery Mode (reboot, Cmd-R at the Apple logo), open a Terminal and execute the command csrutil disable, reboot and then you can copy the files into /usr/lib. This is what worked for me. Perhaps you can copy the libssl, libcrypto files to /usr/loca/lib - which doesn't require disabling SIP - but I didn't try that.

Good luck!

HI, I am new in the forum, and I am experiencing the exact same issuea after updating to MaOS Mojave, I already Had tunred of System Integrity Protection But can you please tell me where can I get those files that we need to copy to /usr/lib folder.. I am new using MacOS and any advice would be helpful in order to fix this issue..
Thanks in advance..

@kensoh
Copy link
Member Author

kensoh commented Sep 29, 2019

Hi Hector, after you turned off SIP, you can restart computer and run below commands from terminal. After installation and verifying TagUI works, then restart computer to turn SIP back to the default on.

If you do not have Homebrew or don't know what is Homebrew

# outdated solution in this code block, see updated solution above
https://github.com/kelaberetiv/TagUI/issues/86#issue-303370944

Or if you already have Homebrew installed

# outdated solution in this code block, see updated solution above
https://github.com/kelaberetiv/TagUI/issues/86#issue-303370944

@hectorb802
Copy link

hectorb802 commented Sep 30, 2019

Hi Hector, after you turned off SIP, you can restart computer and run below commands from terminal. After installation and verifying TagUI works, then restart computer to turn SIP back to the default on.

If you do not have Homebrew or don't know what is Homebrew

# outdated solution in this code block, see updated solution above
https://github.com/kelaberetiv/TagUI/issues/86#issue-303370944

Or if you already have Homebrew installed

# outdated solution in this code block, see updated solution above
https://github.com/kelaberetiv/TagUI/issues/86#issue-303370944

Thanks for your answer Kensoh,

I tried your recommendation and I am still getting the same errors I have several weeks trying uninstallig and reistalling

I have pasted the error just in case you have a chance to check it.. Thanks again.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/threading.py", line 926, in _bootstrap_inner
self.run()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "/Users/Sindira/Documents/ezt/eztve/lib/python3.7/site-packages/django/utils/autoreload.py", line 54, in wrapper
fn(*args, **kwargs)
File "/Users/Sindira/Documents/ezt/eztve/lib/python3.7/site-packages/django/core/management/commands/runserver.py", line 109, in inner_run
autoreload.raise_last_exception()
File "/Users/Sindira/Documents/ezt/eztve/lib/python3.7/site-packages/django/utils/autoreload.py", line 77, in raise_last_exception
raise _exception[1]
File "/Users/Sindira/Documents/ezt/eztve/lib/python3.7/site-packages/django/core/management/init.py", line 337, in execute
autoreload.check_errors(django.setup)()
File "/Users/Sindira/Documents/ezt/eztve/lib/python3.7/site-packages/django/utils/autoreload.py", line 54, in wrapper
fn(*args, **kwargs)
File "/Users/Sindira/Documents/ezt/eztve/lib/python3.7/site-packages/django/init.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/Users/Sindira/Documents/ezt/eztve/lib/python3.7/site-packages/django/apps/registry.py", line 114, in populate
app_config.import_models()
File "/Users/Sindira/Documents/ezt/eztve/lib/python3.7/site-packages/django/apps/config.py", line 211, in import_models
self.models_module = import_module(models_module_name)
File "/Users/Sindira/Documents/ezt/eztve/lib/python3.7/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 677, in _load_unlocked
File "", line 728, in exec_module
File "", line 219, in _call_with_frames_removed
File "/Users/Sindira/Documents/ezt/eztve/lib/python3.7/site-packages/django/contrib/auth/models.py", line 2, in
from django.contrib.auth.base_user import AbstractBaseUser, BaseUserManager
File "/Users/Sindira/Documents/ezt/eztve/lib/python3.7/site-packages/django/contrib/auth/base_user.py", line 47, in
class AbstractBaseUser(models.Model):
File "/Users/Sindira/Documents/ezt/eztve/lib/python3.7/site-packages/django/db/models/base.py", line 117, in new
new_class.add_to_class('_meta', Options(meta, app_label))
File "/Users/Sindira/Documents/ezt/eztve/lib/python3.7/site-packages/django/db/models/base.py", line 321, in add_to_class
value.contribute_to_class(cls, name)
File "/Users/Sindira/Documents/ezt/eztve/lib/python3.7/site-packages/django/db/models/options.py", line 204, in contribute_to_class
self.db_table = truncate_name(self.db_table, connection.ops.max_name_length())
File "/Users/Sindira/Documents/ezt/eztve/lib/python3.7/site-packages/django/db/init.py", line 28, in getattr
return getattr(connections[DEFAULT_DB_ALIAS], item)
File "/Users/Sindira/Documents/ezt/eztve/lib/python3.7/site-packages/django/db/utils.py", line 201, in getitem
backend = load_backend(db['ENGINE'])
File "/Users/Sindira/Documents/ezt/eztve/lib/python3.7/site-packages/django/db/utils.py", line 110, in load_backend
return import_module('%s.base' % backend_name)
File "/Users/Sindira/Documents/ezt/eztve/lib/python3.7/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/Users/Sindira/Documents/ezt/eztve/lib/python3.7/site-packages/django/db/backends/postgresql/base.py", line 24, in
raise ImproperlyConfigured("Error loading psycopg2 module: %s" % e)
django.core.exceptions.ImproperlyConfigured: Error loading psycopg2 module: dlopen(/Users/Sindira/Documents/ezt/eztve/lib/python3.7/site-packages/psycopg2/_psycopg.cpython-37m-darwin.so, 2): Library not loaded: libssl.1.1.dylib
Referenced from: /Users/Sindira/Documents/ezt/eztve/lib/python3.7/site-packages/psycopg2/_psycopg.cpython-37m-darwin.so
Reason: image not found

@kensoh
Copy link
Member Author

kensoh commented Sep 30, 2019

It looks like above error messages have nothing to do with TagUI. They are for a Python related Django project or psycopg2 package.

I'm afraid I can't help here, you'll have to check with the respective Python projects GitHub issues page for advice, as the solution to above error that you are facing may be different from what TagUI users are facing.

The error TagUI users are facing comes from the PhantomJS engine trying to access OpenSSL, it's a different source of error message compared to the project that you are using above, which has nothing to do with TagUI.

@kuzeko
Copy link

kuzeko commented Aug 31, 2020

As @DuckMasterAl said, the correct command is:

brew uninstall --ignore-dependencies openssl; brew uninstall --ignore-dependencies openssl; brew install https://github.com/tebelorg/Tump/releases/download/v1.0.0/openssl.rb

@raulflags
Copy link

Welcome to TagUI GitHub repository 🤖! TagUI is a command-line tool for RPA (to automate digital processes). There's a Python package built on TagUI called RPA for Python 🐍 with a similar issue, but it's automatically fixed with below solution during initialisation.

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.

===== P R O B L E M =====

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

===== S O L U T I O N =====

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


===== O N E  L A S T  T H I N G . . . =====

If you encounter problems using brew, try the solution from @mrtoadsc near bottom of this page.

Its Sept/2020 and this still works smoothly!! Thanks! :D

@PoslinskiNet
Copy link

After upgrades to Catalina:

brew install --force https://github.com/tebelorg/Tump/releases/download/v1.0.0/openssl.rb

helped in my case (--force flag did the trick)

@Stwissel
Copy link

Stwissel commented Sep 9, 2020

I had that problem too today on macOS 10.14.6
The solution was: don't touch brew - you don't want OpenSSL 1.0 on your system
Head over to the phantomJS download page and download the last release 2.1.1
Unzip the the download and locate the phantomjs file (in bin) replace the file in [taguihome]/src/phantomjs/bin with it. This will work with OpenSSL 1.1.1 (what's current in brew)

@sammoh94
Copy link

sammoh94 commented Sep 9, 2020

I followed the instructions outlined here and disabled System Integrity Protection. When I try to run these steps: brew uninstall openssl; brew uninstall openssl; brew install https://github.com/tebelorg/Tump/releases/download/v1.0.0/openssl.rb, I still get the following error:

Calling Non-checksummed download of openssl formula file from an arbitrary URL is disabled! Use 'brew extract' or 'brew create' and 'brew tap-new' to create a formula file in a tap on GitHub instead.

Any suggestions?

@Stwissel
Copy link

Any suggestions?
Don’t bother with this approach. While SIP is a pita, it is there for a reason. Also you don’t want OpenSSL1.0 on your system.
Follow the steps I outlined above and replace the phantomJS with a newer version.

@KungFuLucky7
Copy link

KungFuLucky7 commented 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

@Maks1708
Copy link

Maks1708 commented Sep 17, 2020

Hi @kensoh!

Setup all. I want to run an example sudo src/tagui flows/samples/2_github. tag

Chrome returns this error.

"Connection is not protected
Hackers may try to steal your data from the site www.google.com (for example, passwords, messages, or Bank card numbers). Learn more...
NET:: ERR_CERT_INVALID"

How to fix it?

Thanks!
Screenshot at Sep 18 01-09-00

@Stwissel
Copy link

@Maks1708 ->
Head over to the phantomJS download page and download the last release 2.1.1
Unzip the the download and locate the phantomjs file (in bin) replace the file in [taguihome]/src/phantomjs/bin with it. This will work with OpenSSL 1.1.1 (what's current in brew)

@Maks1708
Copy link

@Maks1708 ->
Head over to the phantomJS download page and download the last release 2.1.1
Unzip the the download and locate the phantomjs file (in bin) replace the file in [taguihome]/src/phantomjs/bin with it. This will work with OpenSSL 1.1.1 (what's current in brew)

Thank you @Stwissel !

I changed phantomJS and switch brew to openssl 1.1.1g. But chrome gives the same error.

@Maks1708
Copy link

@Maks1708 ->
Head over to the phantomJS download page and download the last release 2.1.1
Unzip the the download and locate the phantomjs file (in bin) replace the file in [taguihome]/src/phantomjs/bin with it. This will work with OpenSSL 1.1.1 (what's current in brew)

I opened tagui in a text editor and fixed this block. Added flags: --ignore-certificate-errors --ignore-urlfetcher-cert-requests

Started

if ! type "$chrome_command" > /dev/null; then
echo "ERROR - cannot find Chrome command \"$chrome_command\""
echo "update chrome_command setting in tagui/src/tagui and make sure symlink to command is created"; exit 1; fi
chrome_process_id="$(ps x | grep remote-debugging-port=9222 | grep tagui_user_profile | grep window-size | sed -e 's/^[ ]*//' | cut -d' ' -f 1 | sort -nur | head -n 1)"
if [ -n "$chrome_process_id" ]; then kill $chrome_process_id; fi
$chrome_command $chrome_switches $window_size $headless_switch --ignore-certificate-errors --ignore-urlfetcher-cert-requests > /dev/null 2>&1 &
fi

@jzaburunov
Copy link

... Perhaps you can copy the libssl, libcrypto files to /usr/loca/lib - which doesn't require disabling SIP - but I didn't try that.

worked for me

@chengsam
Copy link

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

This works for me!

@juanfung
Copy link

@KungFuLucky7's solution worked for me on Catalina and Homebrew 2.5.2

@londerson
Copy link

1- Download the file:
wget https://github.com/tebelorg/Tump/releases/download/v1.0.0/openssl.rb

2 - Run brew with the file downloaded:
brew install openssl.rb

@michaelcaterisano
Copy link

1- Download the file:
wget https://github.com/tebelorg/Tump/releases/download/v1.0.0/openssl.rb

2 - Run brew with the file downloaded:
brew install openssl.rb

Works for me!

@rodriguezcappsec
Copy link

@londerson thanks!

@erinoggz
Copy link

brew install https://github.com/tebelorg/Tump/releases/download/v1.0.0/openssl.rb

im getting this error
Error: Calling Non-checksummed download of openssl formula file from an arbitrary URL is disabled! Use 'brew extract' or 'brew create' and 'brew tap-new' to create a formula file in a tap on GitHub instead.
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/tebelorg/Tump/issues/new

@chelseatroy
Copy link

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

Thank you @KungFuLucky7. You are a gentleman and a scholar! Worked for me on Catalina and Homebrew 2.5.8

@gauravkeerthi
Copy link

I agree with the earlier commenter. Please DO NOT INSTALL OPENSSL. Just update your phantomjs.
#86 (comment)

@kensoh
Copy link
Member Author

kensoh commented Mar 7, 2021

Hi Guys, for TagUI @Stwissel 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.

@sparsh9
Copy link

sparsh9 commented Jul 14, 2023

.rbenv/versions/3.0.2/bin/ruby is loading libcrypto in an unsafe way
zsh: abort rails db:create

@kensoh , Im getting this error on MacBook Pro, intel 2017, and this solution is not working, can you help?

@kensoh
Copy link
Member Author

kensoh commented Jul 14, 2023

Tagging @ruthtoh as I no longer maintains this TagUI repo

@amitboss2015
Copy link

I have also tried to install openssl 1.0.0 but not successful.
machine config - 2.6 GHz 6-Core Intel Core i7
macos - ventura - 3.5.1

brew install rbenv/tap/openssl@1.0
*************** ~ % brew install rbenv/tap/openssl@1.0
==> Fetching rbenv/tap/openssl@1.0
==> Downloading https://www.openssl.org/source/openssl-1.0.2t.tar.gz
Already downloaded: ************--openssl-1.0.2t.tar.gz
==> Installing openssl@1.0 from rbenv/tap
==> perl ./Configure --prefix=/usr/local/Cellar/openssl@1.0/1.0.2t --openssldir=/usr/local/etc/openssl no-ssl2 no-ssl3 no-zlib shared enable-cms darwin64-x86_64-cc enable-ec_nistp_64_gcc_128
==> make depend
==> make
==> make test
Last 15 lines from /Users/
/Library/Logs/Homebrew/openssl@1.0/04.make:
140704590104492:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
140704590104492:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
140704590104492:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
140704590104492:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
140704590104492:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
140704590104492:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
140704590104492:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
140704590104492:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
140704590104492:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
140704590104492:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
140704590104492:error:1007C06B:elliptic curve routines:EC_POINT_set_affine_coordinates_GFp:point is not on curve:ec_lib.c:968:
140704590104492:error:1007C06B:elliptic curve routines:EC_POINT_set_affine_coordinates_GFp:point is not on curve:ec_lib.c:968:
140704590104492:error:1007C06B:elliptic curve routines:EC_POINT_set_affine_coordinates_GFp:point is not on curve:ec_lib.c:968:
make[1]: *** [test_ec] Error 1
make: *** [tests] Error 2

If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
https://github.com/rbenv/homebrew-tap/issues

These open issues may also help:
brew install rbenv/tap/openssl@1.0 not working anymore rbenv/homebrew-tap#1
Error when installing openssl version 1.0 (MacOS Big Sur, Version 11.7.6. i7) rbenv/homebrew-tap#9

@ladar
Copy link

ladar commented Sep 22, 2023

This issue is closed, so not sure if the bug is fixed alreadt, but I noticed a couple of other related issues. so posting anyways. Check out my explanation here:

The certs embedded in the tarball and used by the unit tests expired. You can find patches for 1.02 and 1.1.1 here:

1.1.1_update_expiring_certificates.patch

1.0.2_update_expiring_certificates.patch

I only tweaked the alignment of the 1.1.1 patch so it would line up and apply to 1.0.2 without complaint. I would post a link to the original 1.1.1 patch but I don't have it handy.

All these patches do is update the shell script used to make those test certs. The developer ran the updated script and generated new dummy test certs, and the remaining bitsare used to update the certs themselves.

@magicliang
Copy link

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

This works for me!

On OS X Sonoma, I got:ln: /usr/local/opt/openssl: No such file or directory

hope someday somebody figure out how to fix this on mbp M1 and Sonoma.

@Gamma-Software
Copy link

Gamma-Software commented Nov 2, 2023

@magicliang I had the same issue. I installed python with brew with the command brew install python@3.10 for python 3.10 and it works now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests