Closed kensoh closed 5 years ago
I'm afraid I have not heard of any solution to have 2 different versions of OpenSSL running on the same Mac computer. I know that sucks, especially in situations where you want to use both software at the same time but can't. Will look forward to hearing from other experts how that can be done.
thank you so much!
Here's what worked for me
- I did what @mrtoadsc had suggested in #86 (comment)
- I modified the solution of @kensoh #86 (comment)
brew uninstall --ignore-dependencies openssl; brew install https://github.com/tebelorg/Tump/releases/download/v1.0.0/openssl.rb
Hope this helps Update: Keep in mind, that I had to use
--ignore-dependencies
flag, because I have other packages installed that depend on OpenSSL.For what it's worth, i had to use
brew intall openssl
to make it work.
Thanks
thanks for help )
You only need to update wget
.
# outdated solution in this code block, see updated solution above
https://github.com/kelaberetiv/TagUI/issues/86#issue-303370944
is enough.
For me i had to run brew reinstall php
and i'm back up and running
Welcome to TagUI GitHub repository! TagUI is a command-line tool for digital process automation (RPA). This error is happening because macOS decided to drop OpenSSL and switched to LibreSSL. There are many other apps having this error, 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. 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
β ===== N O T E ===== If you encounter problems using
brew
, try the solution from @mrtoadsc near bottom of this page.OMG. I love you.
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!
I have tried all of the above and none of this is working for me :(((
I am trying to do the installation detailed here: https://www.pyimagesearch.com/2018/08/17/install-opencv-4-on-macos/
when I submit this command in terminal: sudo python3 get-pip.py
I get this error:
WARNING: The directory '/Users/aislinnmcnamara/Library/Caches/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.",)': /simple/pip/ WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.",)': /simple/pip/ WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.",)': /simple/pip/ WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.",)': /simple/pip/ WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.",)': /simple/pip/ Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.",)) - skipping ERROR: Could not find a version that satisfies the requirement pip (from versions: none) ERROR: No matching distribution found for pip WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.",)) - skipping
anyone please help!?
I'm afraid issue in above post has nothing to do with this thread. It looks like you are having problem installing pip
. Try to see if you can install Python from here https://www.python.org/downloads/ as Python would already come installed with pip, no need to do installation separately from command line. If that doesn't work, you can raise an issue at Python's PIP repo page to see if anyone has encountered this problem and has a solution - https://github.com/pypa/pip
I'm afraid I have not heard of any solution to have 2 different versions of OpenSSL running on the same Mac computer. I know that sucks, especially in situations where you want to use both software at the same time but can't. Will look forward to hearing from other experts how that can be done.
After getting tired of being switching among versions, I have decided to look for one solution to my situation. I wanted to reinstall mongodb in order to see if mongo was truly dependent of openssl 1.0.2 or it was just my version of mongodb. I was surprised when I found that Homebrew has delete mongodb from its core formulas since mongo was migrated to a non open-source license. So, following this thread in stackOverflow I was able to install mongodb again using tap https://stackoverflow.com/questions/57856809/installing-mongodb-with-homebrew So I run this command in my terminal
brew tap mongodb/brew
brew install mongodb-community
brew services start mongodb-community
and voila, I can used mongo's terminal commands with openssl 1.1
brew switch
has been from removed homebrew, https://github.com/kelaberetiv/TagUI/issues/86#issuecomment-720145575 worked instead.I resolved the issue by switching my active OpenSSL version after installing the custom tap provided above
brew switch openssl 1.0.2t
To correct this I tried to uninstall freetds and unixodbc to then reinstall. I uninstalled the first version of freetds but when I tried to unistall unixodbc I got the following error:
Error: Refusing to uninstall /usr/local/Cellar/unixodbc/2.3.7 because it is required by freetds@91.0, which is currently installed. You can override this and force removal with: brew uninstall --ignore-dependencies unixodbc
It seems like I had two versions of freetds on my computer. So I tried unistalling the specific version and then unixodbc:
brew uninstall freetds@91.0 ; brew uninstall unixodbc
brew install unixodbc; brew install freetds
and it worked
@capihacendado
Since your error shows it is looking for files in openssl@1.1 folders, you can try installing brew install openssl@1.1, navigate to/usr/local/Cellar/
and copy the folder. Then do brew reinstall https://github.com/tebelorg/Tump/releases/download/v1.0.0/openssl.rb
. Go back to /usr/local/Cellar/
place the copied folder openssl@1.1 and make sure symlink to openssl@1.1 in usr/local/opt
as openssl@1.1. Obviously a hack but it worked for me while trying to set up PHP 5.6 where it was complaining about OpenSSL v1.0.0 and OpenSSL v1.1
@kensoh this command
brew upgrade
can be a massive disrupter for your entire system with no way back, and shouldn't be taken (nor recommended) lightheartedly. Depending on your system, it will get your computer busy for hours, and will upgrade every single package from your installation, which is something you probably (most certainly) do NOT want.
Recommending this with no warnings just to fix an openssl package is quite irresponsible, and is akin to burning an entire forest for someone who just wants to warm his dinner. I can't believe this post was so overwhelmingly upvoted.
Hi @JivanRoquet thanks for pointing out! I have the line brew update && brew upgrade
as part of the solution when I originally research for the solution to the problem. Though this was way back and I can't backtrace the source of having this command.
The solution works for me and I believe works for significant number of people, thus the upvotes and positive reinforcement that this is still the best solution. From your feedback, I can understand why this line could be a big problem, and I've removed that line from the solution summary.
Hopefully the solution still works without that line!
It theoretically should, because the solution has changed along the way with Homebrew migration to OpenSSL v1.1, to require hosting a custom formula in order to solve the problem, without having to use XCode to compiled from source on user laptops.
Just upgraded to macOS Catalina
, I run into this same problem. I preferred not to modify anything regarding my System Integrity Protection, so the following could fix my problem:
brew uninstall --ignore-dependencies openssl
brew install https://github.com/tebelorg/Tump/releases/download/v1.0.0/openssl.rb
@kensoh this command
brew upgrade
can be a massive disrupter for your entire system with no way back, and shouldn't be taken (nor recommended) lightheartedly. Depending on your system, it will get your computer busy for hours, and will upgrade every single package from your installation, which is something you probably (most certainly) do NOT want.
Recommending this with no warnings just to fix an openssl package is quite irresponsible, and is akin to burning an entire forest for someone who just wants to warm his dinner. I can't believe this post was so overwhelmingly upvoted.
@JivanRoquet thanks for pointing that out! Running brew update $ brew upgrade
got me in this situation in the first place. While looking for a fix I came across this thread. What worked for me were two of the lines from @sinaahmadi
brew uninstall --ignore-dependencies openssl
brew install https://github.com/tebelorg/Tump/releases/download/v1.0.0/openssl.rb
Thanks! π
Adding on, below flag will ensure uninstallation of openssl, but I'm won't and can't put this into the recommended solution at top of the page, at least for TagUI tool users.
brew uninstall --ignore-dependencies openssl
This is because the flag will force uninstallation even though there are other apps on the computer that requires the openssl version that is being uninstalled. While that may fix the problem for one app, it almost certainly will break some other app(s) on the Mac laptop.
For eg, it could make TagUI or the tool you are fixing to work, while breaking other apps that are dependent on a particular version of openssl. Will have to leave it to users to decide and make a call what is more important to be working.
Just upgraded to
macOS Catalina
, I run into this same problem. I preferred not to modify anything regarding my System Integrity Protection, so the following could fix my problem:brew uninstall --ignore-dependencies openssl brew install https://github.com/tebelorg/Tump/releases/download/v1.0.0/openssl.rb
After this procedure, this message appears
dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.64.dylib Referenced from: /usr/local/opt/php@5.6/sbin/php-fpm Reason: image not found
MacOs Catalina PHP 5.6
@marcelloinfoweb this looks like an unusual error message. macOS Catalina migrated to PHP v7.1, not sure why PHP 5.6 is still being used on your system. Do you mean you are getting above error when you run tagui
command on your macOS computer?
@kensoh Thanks for all your work debugging in this thread!
https://github.com/kelaberetiv/TagUI/issues/86#issuecomment-371766145 was the first thing I tried and it would be awesome to have JivanRoquet's disclaimer that one should be careful when running those lines added to that message, if you would consider that. :)
Thanks @heatherbooker @kolja-lucht and @JivanRoquet who originally pointed this out.
I agree that something should be done. This thread has 4000 unique visitors EVERY WEEK.
Though the official solution at the top is updated to remove this risky command, there are bits and pieces scattered in the whole thread which still has the brew upadate && brew upgrade
command.
In order to avoid collateral damage by any visitors, I have decided and removed all references of this command, including posts made by users. Though this modification will somehow warp the conversation thread of how the solution developed, and may break the flow of what other users have shared.
It is still a smaller cost than if anyone accidentally run that supposed best practice command and got into issues with the dev environment. I found that command somewhere as the recommended solution but it was too long ago and probably the source has been updated.
Where the reference can't be removed legibly, I over-wrote with below code block.
# outdated solution in this code block, see updated solution above
https://github.com/kelaberetiv/TagUI/issues/86#issue-303370944
I have a similar error after the same procedure quoted by @marcelloinfoweb , but with this error message ( Macos Catalina ) :
Library not loaded: /usr/local/opt/openssl@1.1/lib/libssl.1.1.dylib
Same issue
Really depressing - the disasterous brew upgrade command has wrecked everything! I can't even remember what problem I was trying to solve when I read that "solution"... now in a nightmare of variations on the following, no matter which advice I follow from above:
dyld: Library not loaded: /usr/local/opt/openssl@1.1/lib/libcrypto.1.1.dylib
Referenced from: /usr/local/bin/php
Reason: image not found
I use MAMP Pro on Mac Catalina - not sure if that and it's diferent installation of php are hiding the problem... I also suspect that in my eagerness to get it fixed, running brew uninstall --ignore-dependencies openssl was probably stupid, as now a load of other programs have lost their dependencies... grrrrr.
Any other suggestions appreciated - I don't want to disable SIP. Must be a better solution...!
Really depressing - the disasterous brew upgrade command has wrecked everything! I can't even remember what problem I was trying to solve when I read that "solution"... now in a nightmare of variations on the following, no matter which advice I follow from above:
dyld: Library not loaded: /usr/local/opt/openssl@1.1/lib/libcrypto.1.1.dylib Referenced from: /usr/local/bin/php Reason: image not found
I use MAMP Pro on Mac Catalina - not sure if that and it's diferent installation of php are hiding the problem... I also suspect that in my eagerness to get it fixed, running brew uninstall --ignore-dependencies openssl was probably stupid, as now a load of other programs have lost their dependencies... grrrrr.
Any other suggestions appreciated - I don't want to disable SIP. Must be a better solution...!
brew reinstall openssl@1.1
brew reinstall openssl@1.1
Brilliant - that solved one of the issues - thank you!!
But I still get the following, where it's now looking in the /openssl/ rather than /openssl@1.1/ directory:
dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
Referenced from: /usr/local/opt/mysql@5.7/bin/mysql
Reason: image not found
Is there a way to install an unversioned version?? If I try brew reinstall openssl it says: Reinstalling openssl@1.1
brew reinstall openssl@1.1
Brilliant - that solved one of the issues - thank you!!
But I still get the following, where it's now looking in the /openssl/ rather than /openssl@1.1/ directory:
dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib Referenced from: /usr/local/opt/mysql@5.7/bin/mysql Reason: image not found
Is there a way to install an unversioned version?? If I try brew reinstall openssl it says: Reinstalling openssl@1.1
you could try
brew install https://github.com/tebelorg/Tump/releases/download/v1.0.0/openssl.rb
Switch to an older openssl package, via SO
brew switch openssl 1.0.2s
@lionelyoung did that and now I have this:
dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.64.dylib
Referenced from: /usr/local/bin/php
Reason: image not found
Abort trap: 6
This issue resolved for me after upgrading wget to latest version on mac OS version: 10.14.6 (18G4032)
wget -V
GNU Wget 1.20.3 built on darwin18.7.0.
-cares +digest -gpgme +https +ipv6 +iri +large-file -metalink +nls
+ntlm +opie -psl +ssl/openssl
Wgetrc:
/usr/local/etc/wgetrc (system)
Locale:
/usr/local/Cellar/wget/1.20.3_2/share/locale
Compile:
clang -DHAVE_CONFIG_H -DSYSTEM_WGETRC="/usr/local/etc/wgetrc"
-DLOCALEDIR="/usr/local/Cellar/wget/1.20.3_2/share/locale" -I.
-I../lib -I../lib -I/usr/local/opt/openssl@1.1/include -DNDEBUG -g
-O2
Link:
clang -DNDEBUG -g -O2 -lidn2 -L/usr/local/opt/openssl@1.1/lib -lssl
-lcrypto -ldl -lz ftp-opie.o openssl.o http-ntlm.o ../lib/libgnu.a
-liconv -lintl -Wl,-framework -Wl,CoreFoundation -lunistring
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://www.gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Originally written by Hrvoje Niksic <hniksic@xemacs.org>.
Please send bug reports and questions to <bug-wget@gnu.org>.
found this link since my wget was not working, for wget reinstalling it solved the issue on 10.15.4
brew uninstall wget
brew install wget
@razvanphp / @snusmu -
If it is mac, You can find the version of openssl from here - ls /usr/local/Cellar/openssl
.
Based on version you find, you can switch your openssl version :
brew switch openssl 1.0.2r
# or
brew switch openssl 1.0.2s
# or
brew switch openssl 1.0.2t
This will resolve the wget issue.
found this link since my wget was not working, for wget reinstalling it solved the issue on 10.15.4
brew uninstall wget brew install wget
Per @snusmu, my issue was with wget
. I solved with an uninstall/re-install. I also removed wget customizations for a fresh install.
brew uninstall wget && rm -rf /usr/local/etc/wgetrc && brew install wget
Just do a brew switch openssl 1.0.2t
, in my case the only openssl 1.0.x version previously installed with brew
brew switch openssl 1.0.2t
Thank you ns11! That fixed it for me!! π
I've been having this same issue with wget, tried reinstalling openssl to no avail.
brew uninstall wget
brew install wget
^this finally made it work for me π
brew switch openssl 1.0.2t
After half a day of googling and attempting to install/reinstall openssl, this finally worked for me. Thanks
brew switch openssl 1.0.2r worked for me as 1.0.2t was showing: openssl does not have a version "1.0.2t" in the Cellar.
+1 to brew switch openssl 1.0.2t
The proper brew command should be brew uninstall --ignore-dependencies openssl;
since openssl will probably be in some dependencies (at least it was for me)
after applying this solution, I can't use pip anymore , pip cannot use https connections to download packages, is there any other than this solution (downgrading OpenSSL) ?
The perfect solution in macOS Catalina with PHP 7.2 https://github.com/kelaberetiv/TagUI/issues/86#issue-303370944
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
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
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)
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)
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?
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.
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
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!
@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)
Welcome to TagUI GitHub page :robot:! 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 :snake: 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.
===== 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
Or if you already have Homebrew installed
One last thing... If you encounter problems using
brew
, try the solution from @mrtoadsc near bottom of this page.