-
-
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
linker command failed with some Readline methods #4067
Comments
I think this is an issue with OSX and readline, not Crystal. Crystal simply links against whatever readline you have installed in your system. An update to readline on your machine should fix this (though I don't know how to do that right now). |
I have the latest readline 7.0 installed. I'm not familiar with how linking C packages work, but if I can get a similar example running in straight readline outside of crystal, would that help? I think @Sija had tried this on linux as well and got the same error. Does this example work on your machine? Maybe we can see what the difference is to see what linked package is missing? |
@jwoertink Truth to be told I've been trying that on my macOS (10.11.6) machine :) I have |
Ah. Ok, so same as me then. How do we link it to see if that's the issue? |
@jwoertink |
Still same error:
|
@jwoertink did you clear your |
yeah, I had cleared that out. In fact, trying to fix another issue I had, I had to completely uninstall crystal and clear out a bunch of things, so I was able to start fresh. Are you saying that you were able to get it to work on macOS, @Sija? |
@jwoertink nope, but didn't tried very hard (mostly thinking of changing versions and relinking the lib through homebrew). |
Running the same code on an Ubuntu install does work. So it seems there is a version mismatch or something else wrong with libreadline on OSX. Ubuntu Version:
Installed versions of libreadline
|
Not sure if this helps shed some light or not, but I tried using
but it gave a lot more output |
@jwoertink Did you try older version of libreadline (6.x)? |
@Sija No. I only have 7.0 on my machine, and I can't find a 6.x version through homebrew. |
ok, I found a 6.3.8 version and was able to install, but I get the same error. |
Not relevant any more, see #8364 |
When using a few of the Readline methods, I get the following error:
Here's the code:
Running
Crystal 0.21.0 (2017-02-21)
on macOS 10.12.3The text was updated successfully, but these errors were encountered: