When I follow the instructions to install cairo, logged into my Heroku shell, with
~ $ su apt-get install libcairo2-dev
(http://www.cairographics.org/download/)
I get
password:
Does anyone know if a Heroku account gives you superuser access? No password I know of works.
Ultimately, I am trying to accomplish installing R with PNG support, which has a dependency on cairo for chart output.
Installing something directly on a Dyno has no effect: the dyno's filesystem is reverted back to its "original" (post-compilation, what's know as "slug") every reboot, or every time a new dyno is spun up for your app.
To have Cairo, you need to add it as part of your slug's build process. You can either:
1) Read up on Vulcan (https://github.com/heroku/vulcan) and do it yourself, or:
2) Use a build pack that already has Cairo (buildpacks: https://devcenter.heroku.com/articles/third-party-buildpacks#using-a-custom-buildpack; one that has Cairo: https://github.com/rumblelabs/heroku-buildpack-cairo for example, or https://github.com/mojodna/heroku-buildpack-nodejs#cairo)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With