Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing cairo on Ubuntu/Heroku - what's my Heroku superuser?

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.

like image 936
metalaureate Avatar asked Dec 17 '25 17:12

metalaureate


1 Answers

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)

like image 56
Nitzan Shaked Avatar answered Dec 19 '25 15:12

Nitzan Shaked