-
Notifications
You must be signed in to change notification settings - Fork 5
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
X11 needed #1
Comments
I actually haven't tried to do any graphing with it, but let me try some things out. |
PDF work fine, but no luck for PNG and SVG. I'm not sure about others. |
Don't call png twice. Just once like so: pnt(file=t,type='cairo',...) |
Well I still get the same error but with the second call only: Error in png(t, type = "cairo", width = 200, height = 200) : X11 is not available |
What does the output of capabilities() say? On Tue, Nov 15, 2011 at 2:14 PM, Joseph Ridgway
|
|
Is that too hard to read? :) Looks like all graphics are false. |
There you go: no png, no cairo capabilities() so you won't be able to On Tue, Nov 15, 2011 at 2:18 PM, Joseph Ridgway
|
Do you have any idea how I can install cairo, png etc? |
Oh, if you can install R from source, then you can install cairo and On Tue, Nov 15, 2011 at 2:22 PM, Joseph Ridgway
|
Heroku already has libcairo installed, so it should just be a matter of the right config flags as Jeff said. You can look at https://github.com/noahhl/rookonheroku/blob/master/bin/installR.sh and try adjusting accordingly and building from a |
I figured that was the next step. Thanks! |
Thanks guys! |
I've finally recompiled with the --with-cairo and --with-libpng flags but capabilities() still returns false for cairo: jpeg png tiff tcltk X11 aqua http/ftp sockets Any idea what I should try next? |
Noah, what makes you think Heroku has Cairo installed already? All I can find is /usr/lib/libcairo.so.2 and /usr/lib/libcairo.so.2.10800.10. Also, while compiling R, I get:
|
I got this working after a lot of trial and error - I installed cairo, which also entailed fontconfig and pixman. It was a while back, so I don't remember each and every step, but here are the rough steps I jotted down (run from Heroku): export PKG_CONFIG_PATH=/app/bin/lib/pkgconfig fontconfigcurl fontconfig pixmancurl pixman cairocurl cairo configure cairo./configure --prefix=/app/bin |
I'm looking to get PNG, Cairo etc. working on Heroku with R... trying to get my mind wrapped around custom buildpacks... so the installation of fontconfig, pixmand, cairo etc. you included as part of your vulcan build? |
I have the same problem, "so the installation of fontconfig, pixmand, cairo etc. you included as part of your vulcan build?" I don't understand how to do that. |
I'm unable to generate graphics, because X11 isn't available on Heroku. Have you run into this problem? I get "Error in png(file=t) : X11 is not available" with the following code:
The text was updated successfully, but these errors were encountered: