-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Crystal Play linker issue: -lssl error #7209
Comments
Hey @codingdracula, the error message says you need to install the libssl development package. Do you have that installed? I'm not a Mac user but AFAIK those You can probably resolve this by running |
Hey @straight-shoota I am aware some dependencies are missing, but there is no documentation that states what I need. There is no libssl package to download for example. (At least I can't easily find one.) As far as I can gather on the internet it is part of OpenSSL, which why I showed in my original post that I had OpenSSL...likely there is another package I need, but I don't know what that package is. This specifically happens when running the crystal playground. I can compile files and use the crystal compiler fine. I have tried this on multiple computers and am convinced it is a common issue with MacOS Mojave users. Hopefully, it is a simple fix and then can be added to the Troubleshooting section in the documentation. That is why I posted the Xcode stuff, I read the documentation and it wasn't specifically for this issue, but I wanted to show I tried everything. I was not expecting "magic" |
Have you taken a look at the solutions proposed in #6875? |
@straight-shoota Thank you! This does seem to have the fix. All I needed to do after installing crystal is this,
|
I'm glad this could be solved! |
@codingdracula the issue happen right after launching the crystal playground server or after you try to compile some code input in the browser? If the later, can you share it? |
@bcardiff The issue does not happen right away. It happens after you go to the URL. By that I mean as soon as you put that link in your browser and hit enter the error occurs. |
I first encountered this issue while install Crystal on my Mac and second time while installing Easiest way I was able to make it work was by doing:
(Make sure your openssl version is correct) and then
Then continue with installation... |
I had to do these to get |
I was trying out crystal for the first time, so I followed: https://crystal-lang.org/docs/installation/on_mac_osx_using_homebrew.html
I did the following
I encountered the following error
I then did the following
I restarted my machine and once again ran,
The error does not occur right away, it occurs once I visit the playground i.e.
http://127.0.0.1:8080
The text was updated successfully, but these errors were encountered: