Library not loaded: libcrypto.1.0.0.dylib issue in mac

You might have come across this error while dealing with the openssl module.

Inorder to solve this issue follow the following steps

Step 1: Install openssl using brew

brew install openssl

Step 2: Copy copy libssl.1.0.0.dylib and libcrypto.1.0.0.dylib

cd /usr/local/Cellar/openssl/1.0.1f/lib

sudo cp libssl.1.0.0.dylib libcrypto.1.0.0.dylib /usr/lib/

Note the bold folder name. There will be change in that depending on your openssl version

Edit (2019 July) If you are getting permission denied error even after sudo. Try copying to `/usr/local/lib ` instead. Thanks to George Hotz from comments to pointing it out.

Step 3: Remove the existing links

sudo rm libssl.dylib libcrypto.dylib

sudo ln -s libssl.1.0.0.dylib libssl.dylib

sudo ln -s libcrypto.1.0.0.dylib libcrypto.dylib

That’s it. Now try installing what you have been trying to install.

I hope this helps. If you need any further clarification, do comment.

Enjoy smile


Comments

23 responses to “Library not loaded: libcrypto.1.0.0.dylib issue in mac”

  1. Thank you very much. This one was the best solution I found

    1. smile

  2. This is a fantastic solution. Thank you so much.

    1. smile

  3. Thank you!
    Now I’m getting a “Symbol not found: _SSLv2_client_method” “Expected in: /usr/lib/libssl.1.0.0.dylib”
    Found a StackOverflow issue about it here: https://stackoverflow.com/questions/25492787/ruby-bundle-symbol-not-found-sslv2-client-method-loaderror
    My system is a bit out-of-sync due to a major hard disk crash.

  4. Thank you very much!
    Even if I didn’t have a clue about what I was really doing, everything went fine and I can now enjoy quitrent!
    Thanks for this short and effective tutorial wink

  5. in my case,
    i was already having homebrew and openssl

    just needed to unlink and link:

    brew unlink openssl
    brew link openssl –force

    did the trick

    1. Yes!, that did the trick for me as well, thanks!

    2. thanks, it works, but I had to add write access rights to some folders

    3. Worked perfectly. Thank you!

  6. Thanks very much!
    May I know the purpose of step2:
    Copy copy libssl.1.0.0.dylib and libcrypto.1.0.0.dylib

    Thanks.

  7. Kamaal Aboothalib Avatar
    Kamaal Aboothalib

    Thanks, i just done till step 2 my homestead start working.

  8. Thank you very much, you helped me a lot!

  9. […] Steps explained pretty nicely at this link mithun.co/hacks/… […]

  10. Worked great, thank you!

  11. So good,Thanks!

  12. Thank you so much! It worked for me too. You saved my day!

  13. Thank you so much!

  14. Did a brew unlink openssl to get the path and version and then followed the tutorial.
    Awesome !

  15. For sudo cp libssl.1.0.0.dylib libcrypto.1.0.0.dylib /usr/lib/ it says operation not permitted

    1. George Hotz Avatar
      George Hotz

      copy in /usr/local/lib instead.

  16. Keith Norman Avatar
    Keith Norman

    Woohoo! Worked for me, thank you!

  17. thanks @Mithun.. The steps are so clear and it worked.
    You are awesome smile

Leave a Reply to Sarang ManjrekarCancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.