-
-
Notifications
You must be signed in to change notification settings - Fork 250
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
added a troubleshooting section for macOS mojave #312
added a troubleshooting section for macOS mojave #312
Conversation
Other relevant issue: crystal-lang/crystal#6875 |
Can't someone who uses homebrew just work out a solution to make homebrew package crystal properly? If it doesn't work out the box, it's a packaging problem, not crystal's problem. |
I concur, it’s a HomeBrew’s issue that devs have to googling manually for more than one way and work differently on different terminals. Could not recommend adding this advice on Crystal book. |
@RX14 The Crystal Playground will not work on macOS Mojave without this troubleshooting step. I, as someone new to crystal thought it was really frustrating to figure out and considered not bothering since it was not an easy search. I was just casually checking it out which I think is common. In my opinion if it is a problem that occurs for all or most X users you should add it to the troubleshooting guide to make the Crystal experience better for those users. Crystal now installs pkg-config by default, but it doesn't expose that to OpenSSL installation and thus the crystal playground will always be broken until it is linked for macOS Mojave users. Up to you guys :) appreciate your taking the time to review the pull request |
@codingdracula I checked yesterday pkg-config wasn’t installed by default |
@proyb6 apologies, everyone should ignore the last part of my post. I didn't realize it was still open |
@codingdracula Thank you! Your contribution is very welcome. I think we should definitely merge this as a service to Crystal users in MacOS. Unless there is a way to avoid this problem altogether as @RX14 asked. That would be even better, if no troubleshooting was required in the first place. |
In the short term we should merge this PR, but only after we've bought up this issue with homebrew, or the issue will end up being neglected. |
@dustinlahr thanks for helping me solve my problem |
@dustinlahr Could you apply the suggestions from @bcardiff ? |
Co-Authored-By: dustinlahr <dustin.lahr.367@my.csun.edu>
Co-Authored-By: dustinlahr <dustin.lahr.367@my.csun.edu>
Co-Authored-By: dustinlahr <dustin.lahr.367@my.csun.edu>
Co-Authored-By: dustinlahr <dustin.lahr.367@my.csun.edu>
Co-Authored-By: dustinlahr <dustin.lahr.367@my.csun.edu>
Co-Authored-By: dustinlahr <dustin.lahr.367@my.csun.edu>
Not sure if it belongs as part of this PR or another one, but this page on the website needs to be updated as well: https://luckyframework.org/guides/installing/ Right now it says:
but I think Mojave needs to be listed there as well |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added requested changes @bcardiff. Not sure if there is anything else I need to do. If there is let me know :)!
Thanks @dustinlahr |
Has anyone been working on fixing this packaging issue? I'd do it myself if I had a mac. |
@RX14 what could be changed to delay the issue is to avoid the dependency of ssl with the playground agent. Using pipes or sockets will be enough. Other than that, when compiling an http server eventually the user will need some ssl and pkg-config configured accordingly. |
Something doesn't feel quite right. Crystal is installed via a package manager. Then it subsequently cannot use the SSL dependency that was pulled in by the same package manager. At worst crystal should have a warning message in its brew package (at install time) but this should probably "just work" ... sadly it appears the instruction page is a bit outdated (you don't need to install openssl anymore, manually, and the path is now |
I agree, eventually crystal via brew might have a wrapper script that will set up accordings paths to link directly to OpenSSL in brew probably. |
I ran into this issue recently trying out crystal and hoped to contribute!
crystal-7209