Cannot save Gadfy plot, requires Cairo+Fontconfig although its installed



I am struggling with saving a simple Gadfly plot in PNG format.

using Cairo
using Fontconfig
using Gadfly
myplot =plot(x=rand(10), y=rand(10), Geom.point, Geom.line)

draw(PNG("myplot.png", 4inch, 3inch), myplot)

The code above gives the following error:

Cairo and Fontconfig are necessary for the PNG backend. Run:
You also have to delete C:\\\\\\\\\\\\\\\\\\\\\\\\\\\Users\Bruker\AppData\Local\JuliaPro-\pkgs-\v0.6v0.6\Compose.ji
and restart your REPL session afterwards.
in PNG at Compose\src\Compose.jl:170

When running


i get notified that the packages are already installed. I would very much appreciate any help with this :slight_smile:


Have you done this also and rebuild Compose?


I eventually found the file, deleted it and ran"Compose") and restarted Julia. Now it runs like a dream. Thx