Problem with c1 -> SaveAs("directory/name.pdf")

Hi everybody, I am JEuser and it is my first post,

I have wrote a root macro and it is working qite well but when i try to save the canvas with this line:

this error occurs:

How can I fix this?

Thank You!!!

P.S.: ubuntu version: 14.04 LTS
ROOT version: 5.34

Looking at the output you show, I assume that your ROOT comes from the Ubuntu 14.04 distribution.
If this is the case, you probably need to install additional packages -> search for packages with names: “root-system*”, “root-plugin*” and “libroot*”.