vapor: Couldn't install vapor with homebrew "libssl.1.0.0.dylib not loaded"

Steps to reproduce

Tried installing vapor with homebrew with the official docs. Running all commands in zsh:

brew tap vapor/tap
brew install vapor/tap/vapor
vapor --help

Expected behavior

vapor --help running properly without errors

Actual behavior

Screenshot 2019-11-24 at 01 09 41

Environment

  • Vapor Framework version:
  • Vapor Toolbox version: /usr/local/Cellar/vapor/3.1.10
  • OS version: MacOS 10.14.6

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 2
  • Comments: 28 (8 by maintainers)

Most upvoted comments

➜  vapor-4-test git:(master) ✗ /usr/local/Cellar/vapor/3.1.10/bin/vapor
dyld: Library not loaded: /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib
  Referenced from: /usr/local/Cellar/vapor/3.1.10/bin/vapor
  Reason: image not found
[1]    38857 abort      /usr/local/Cellar/vapor/3.1.10/bin/vapor

First received this error then downloaded and added libcrypto aswel:

cp ~/Downloads/lib*.dylib /usr/local/opt/openssl/lib/

@Phzytaylor And now it works! 🎊

Tested:

  • vapor --help
  • vapor new name --template=api
  • vapor xcode

This has been fixed in Vapor Toolbox 3.1.11.

brew upgrade vapor

Will this issue happen in the future with vapor@4 (say after OpenSSL updated and vapor@4 doesn’t)? Or has this been future proved?

If not might it be an option to package OpenSSL in vapor?

You can find libssl1.0.0 here https://github.com/zoom/zoom-sdk-macos/blob/master/ZoomSDK/libssl.1.0.0.dylib

and you can find libcrypto.1.0.0 here : https://github.com/dathinaios/sc_osx_standalone/blob/master/MacOS/libcrypto.1.0.0.dylib

for both of them just click view raw and they will download. I have attached vapor’s directions README.txt

@yoiang - the Vapor team are aware of it and I’m sure there’ll be a permanent fix ASAP (especially as it’s blocking things like Vapor Cloud) but Thanksgiving is holding things up at the moment.