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

Problem with openssl version on macOS for Ruby 2.6.5 #38

Closed
mrexox opened this issue Nov 21, 2019 · 6 comments
Closed

Problem with openssl version on macOS for Ruby 2.6.5 #38

mrexox opened this issue Nov 21, 2019 · 6 comments

Comments

@mrexox
Copy link

mrexox commented Nov 21, 2019

ffi_lib ['libssl.so.1.0.0', 'libssl.so.10', 'libssl1.0.0', 'ssl']

Should add 'libssl.1.0.0' in the begining of the list. Like this:

    ffi_lib ['libssl.1.0.0', 'libssl.so.1.0.0', 'libssl.so.10', 'libssl1.0.0', 'ssl']
mrexox added a commit to mrexox/money-tree that referenced this issue Nov 22, 2019
DangerDawson pushed a commit to Cygnetise/money-tree that referenced this issue Nov 27, 2019
@nakwa
Copy link

nakwa commented Feb 13, 2020

Same here (I believe)
MoneyTree is causing Rails to crash after updating OpenSSL to the latest version.

@fero46
Copy link

fero46 commented Apr 4, 2020

So after a long research, I think I solved the problem.
For some reason linking without versioning is not possible anymore:

Clients should not load the unversioned libssl dylib as it does not have a stable ABI.
So I had openssl1.1

Steps to fix:

  1. brew update & brew upgrade & brew install openssl
  2. cd in your openssl lib folder in my case: usr/local/opt/openssl@1.1/lib
  3. copy files in /usr/lib:
    sudo cp libssl.1.1.dylib libcrypto.1.1.dylib /usr/local/lib/
  4. make softlink
    sudo ln -s libssl.1.1.dylib libssl.dylib
    sudo ln -s libcrypto.1.1.dylib libcrypto.dylib

Hope I could help you.

@NikolayRys
Copy link

@fero46 Add one step:
3.5. cd /usr/local/lib/

@zeptonaut
Copy link

Just want to follow up re: @fero46's comment, which is very useful for individual developers: running those commands locally may be a great way to get the gem working locally, but having to run 3 or 4 shell commands in order to make a Gem work is very difficult on large teams (asking each developer to run those commands), or when onboarding new people to a team (what command makes this work again?). Multiply 3 or 4 commands by the average number of gems that a project relies on and it becomes clear that gems need to "just run" without any additional work in order to guarantee a reproducible setup without too much work.

@q9f
Copy link
Collaborator

q9f commented Nov 29, 2021

Just want to follow up re: @fero46's comment, which is very useful for individual developers: running those commands locally may be a great way to get the gem working locally, but having to run 3 or 4 shell commands in order to make a Gem work is very difficult on large teams (asking each developer to run those commands), or when onboarding new people to a team (what command makes this work again?). Multiply 3 or 4 commands by the average number of gems that a project relies on and it becomes clear that gems need to "just run" without any additional work in order to guarantee a reproducible setup without too much work.

100%

@q9f
Copy link
Collaborator

q9f commented Dec 3, 2021

fix is in #43 and let's merge this discussion with #44

@q9f q9f closed this as completed Dec 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants