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
/usr/bin/ld: cannot find -lclang
error after executing
#4541
Comments
I think crystal-lang/crystal_lib issues are more suitable for this. |
@Sija No one is active on there, and the issues will be ignored. |
@oltmannsdaniel I'm not sure what do you mean by "no one is active"... Last commit is from 2 days ago and the repo is maintained by the same Crystal core developers. Also, the issues on the tracker are being commented on so there's no reason to say they will be ignored. I could understand if you'd say it's less active than this one, but nevertheless your issue is strictly related to before-mentioned repo and not the Crystal itself. |
Ok @Sija . But the last issue I opened a month ago didn't get any comment. So I just wanted to try it I've here. |
@oltmannsdaniel Probably because you've opened it without using search first - which would tell you there's another such issue (crystal-lang/crystal_lib#25) open, making yours a duplicate... |
You just need to install libclang (or libclang-dev, can't remember). Any |
@asterite After installing
What I tried:
|
Oh, I don't know about that :-( |
@oltmannsdaniel Do you have |
@Sija Will try that later this day. |
@Sija It is installed. |
@oltmannsdaniel you hit #1269 for some reason, does Basically the error messages seems to say that the linker would link against |
@ysbaddaden I think the libffi error is misleading and it's just plain #1269 somehow. The solution would be to compile your own native crystal and ditch the omnibus entirely. |
@ysbaddaden @RX14 The link flag isn't working as well. The output was:
|
Any update on this? |
@sdogruyol As @RX14 said, compiling my own crystal worked to that point of time. I currently moved from Crystal to Golang. But I will use Crystal as my Playground again. |
Thanks for the update @OLDaniel 👍 |
My code:
I cloned the
crystal-lang/crystal_lib
, create a file to generate a ZLib Libary (Only for testing) with following code:Then I ran
crystal run src/main.cr -- examples/lib_z.cr
and it crashed.My error:
I followed the installation introduction and installed everything from the docs. But it still crashed, even after an update. What should I do to fix it?
My specs:
Crystal:
Crystal 0.22.0 [3c71228] (2017-04-20) LLVM 3.5.0
Ubuntu:
Ubuntu 16.04.2 LTS
The text was updated successfully, but these errors were encountered: