-
Notifications
You must be signed in to change notification settings - Fork 56
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
Cairo won't install on clean v0.6 system (macOS High Sierra, Julia v0.6.4) #230
Comments
Might be a BinDeps (in 0.6.4) or a Homebrew problem; i've seen similar - not finding the library - also on linux. This is really hard to reproduce and debug. My (local) workaround is: take care that libraries are installed and write deps.jl manually. |
So it might be possible to borrow a |
I have the same issue. |
Same issue. |
i see this reproduced in https://travis-ci.org/JuliaGraphics/Cairo.jl/jobs/401860559 |
I'm a bit puzzled why this started recently, I thought Julia v0.6 was stable, and v0.7 was where all the instability was. Cairo seems to install happily on version v0.7, and I'm even able to use the v0.7 Cairo bindeps.jl with v0.6. |
Same problem on a clean v0.6.4. (also Rsvg.jl) |
Travis is now reporting the same error for v0.7 beta on macOS. So no Cairo with Julia on the Mac anymore? (unless you try Julia v0.5...) :) |
As said above, this seems to be an interaction between BinDeps and Homebrew. I'm currently trying to get some further testing running to see, what is actually happening. I asked yesterday on slack, but didn't get any reply if there is 'other' cases. |
Yes I feel bad about reporting it here because I don't think there's a problem with Cairo.jl ... :) |
@cormullion you could report on JuliaPackaging/BinDeps.jl#366 |
tbh I didn't really know about BinDeps until you started linking it. |
So for whatever reason, it looks like the problem is that julia0.6> h = Libdl.dlopen_e("/Users/daly/.julia/v0.6/Homebrew/deps/usr/lib/libpangocairo-1.0.dylib", Libdl.RTLD_LAZY)
>> Ptr{Void} @0x0000000000000000 EDIT: I tried opening all the other libraries first ( So I think that's why it's being skipped here: |
@NHDaly Perhaps a corrupt file? Wrong library? Try comparing it with the one that gets downloaded with version 0.7... (however one does that...) |
Hmm, no it's exactly the same on |
Aha! Running Okay:
SO the problem is conflicting versions of And actually, come to think of it, I've noticed there's something wrong with
And yeah, that's definitely version 12... I wonder why! |
Huh, so based on this other random thread where people were also having (I think) unrelated problems with using Homebrew
Homebrew.brew(`reinstall fontconfig`)
Pkg.build("Cairo") Reinstalling fontconfig installs the correct version. But I have no idea why it was installing the wrong version in the first place! Would be great to figure out the root of the bug! |
good sleuthing, Sherlock! :) |
OKAY good news, I think i've found the source of the problem. I was wondering, why is Homebrew installing version
I did some googling, and i finally found that And so i've filed staticfloat/homebrew-juliadeps#131 to try to get that fixed! 😊 |
Great! i wonder if you'll be needed for v1.0 ... :) |
😛 I'm happy to help if i can.. To be honest, i'm not even using Cairo, it's just a dep of a dep of a dep of mine... -_- haha |
Okay, this seems to be fixed after merging staticfloat/homebrew-juliadeps#131! :) |
I am having a lot of problems with Cairo in 0.7/1.0. I tried following the above instructions but I get the following (i deleted non-relevant lines from below). Any suggestions? Here is some debug information
Thought maybe
This tells me
I am not sure what UPDATE success!From the error above so I did
and everything works. @cormullion Maybe edit the title to have Julia 0.7/1.0 reference also. It seems that I was getting the same error on the newer versions. |
@affans well there's another issue for 0.7... :) |
Good find, @affans! :D |
Note to mac users: while manual installation of graphite2 might get things working for any individual who uses it, Cairo will continue to be broken "by default" for most mac users. We need your help figuring out the right way to fix this that will work for everyone. None of the core developers of Cairo.jl has a mac, so we'll rely on one of you kind and talented souls to get this done! |
So i'm not sure if this is helpful, but there is an option in the
|
These is what i got from
What else do you need for help? |
Is this issue just for Julia v0.6? |
No, it would be across all versions. However, i've just seen both travis triggered by @timholy 's PR build sucessfully and i did some travis magic to get to a debug build (so you can connect into the VM via ssh) and saw Cairo install and test successfully while it doesn't on 0.7/1.0. I have the feeling something is changing in the homebrew/Homebrew environment also. |
What version of harfbuzz is Homebrew.jl trying to install here? If you're able to have a harfbuzz (and hence cairo) bottle installed from conventional brew without needing graphite2, then how is conventional brew installing something different from what Homebrew.jl is trying to install? |
Actually i'm a little on the run right now, i'll return to the computer in a few hours. |
I copypasted from the terminal two parts, brew install and Pkg.add/test in julia. |
would need to diff the logs. is the behavior substantially different between 0.6 and 0.7? |
Afaics you can run only 1 debug build in travis at a time, so this would need to be done sequentially. But it might be we are following a moving target anyway, pango 1.42.something was release a few days ago, so some packages on the line can show up updated. I'll look into this later this week. |
I tried to install Cairo, on a new installation. It fails with a pangocairo error.
Some pangocairo libraries were installed:
The text was updated successfully, but these errors were encountered: