-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Couldn't install vapor with homebrew "libssl.1.0.0.dylib not loaded" #2104
Comments
It looks like there's a hard requirement to openssl@1.0, I have openssl@1.1 |
If you go to |
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 and you can find libcrypto.1.0.0 here : for both of them just click view raw and they will download. |
@Phzytaylor Thanks 👍 |
Did it work for you? |
➜ 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:
|
Is there an understanding about how to fix this permanently? Downloading dylibs from two websites, especially dylibs specific to security and encryption, feels like a vulnerability! |
Open ssl has an official website, but I wasn't sure how to compile what they gave you. They just have to update the tool box to use the newer version of openssl because homebrew doesn't have the older one anymore. |
Sorry, maybe the question should be is that in the plan? Is the vapor team aware of this issue and is addressing it? @lil5 maybe you should keep this issue open. |
@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. |
This has been fixed in Vapor Toolbox 3.1.11.
|
@tanner0101 I tried the brew upgrade vapor to upgrade the dylib dependencies but no cigar (rickwierenga/heartbeat-tutorials#3) |
@quantum-fusion do you get this error when running the toolbox? IIRC you're on a Beta version on macOS so you're probably hitting issues because of that |
@0xTim I tried this solution (aisingapore/TagUI#635), but it did not work. brew install openssl@1.1 brew upgrade openssl@1.1 openssl version -- However, the problem is still that the dependencies for libressl are still wrong with the wrong dylib dependencies. I tried, % brew install libressl |
@0xTim see transcript brew install libressl and run libressl is keg-only, which means it was not symlinked into /usr/local, If you need to have libressl first in your PATH, run: For compilers to find libressl you may need to set: For pkg-config to find libressl you may need to set: ==> Summary |
@quantum-fusion as I said, do you get this error when running the toolbox? OpenSSL is no longer a Vapor dependency so you shouldn't need it. What version of the toolbox do you have? |
@0xTim I tried to check the version of vapor. brew upgrade vapor Warning: Treating vapor as a formula. For the cask, use homebrew/cask/vapor
|
@quantum-fusion please confirm, what command causes you to hit the error and what's the full error output? |
vapor build /Users/hottelet/Desktop/heartbeat-tutorials-master/CoreML-API/CoreML-API/Sources/App/Controllers/Classifier.swift:22:45: error: cannot find 'Resnet50' in scope |
@0xTim I was able to get the ResNet50 model installed like this ticket (rickwierenga/heartbeat-tutorials#3). I was able to download the Resnet model and create the xcodeproject file. Once, the Resnet50 model is installed, then it builds in Xcode. Even with the upgrade to openssl to version 1.1: The build still fails. The error message is: |
Ok, the actual error has nothing to do with OpenSSL. You haven't linked whatever includes CIContext and CIImage to your project. As for the answer - I'm not sure. this isn't a Vapor issue. I would however recommend upgrading to Vapor 4 - you'll get better support and there are no dependencies on OpenSSL |
0xTim I tried to upgrade vapor, however I don't see the vapor 4 version number. Is there a command that upgrades and then checks for the vapor version? %brew upgrade vapor Warning: Treating vapor as a formula. For the cask, use homebrew/cask/vapor |
@quantum-fusion theres a difference between the toolbox and framework. The toolbox is the CLI that you do The framework is version 4 and that's defined in the Package.swift file. Upgrading from 3 to 4 is not a simple task but there are docs for it. I suggest if you hit any more problems you should post them on the Vapor Discord as there are more people to help and it avoids crowding this issue. |
0xTim I just upgraded to vapor4, and have attached the Package.swift file. // swift-tools-version:5.2 let package = Package( The results of the build are below, and show a dependency on fluent-kit, even thought the project does not depend on it. |
As I said, please move any questions for upgrading to Vapor Discord |
0xTim I joined discord as quantum-fusion , and It doesn't let me chat. |
0xTim your discord channel is read only, so I sent you a question about fluent-kit , which repo is it in? on Discord chat. |
Steps to reproduce
Tried installing vapor with homebrew with the official docs.
Running all commands in zsh:
Expected behavior
vapor --help
running properly without errorsActual behavior
Environment
The text was updated successfully, but these errors were encountered: