Failed to precompile Gadfly

When I tried to use the Gadfly package, I got the error message:

Failed to precompile Gadfly to /home/Yifan/.julia/lib/v0.6/Gadfly.ji.
compilecache(::String) at loading.jl:703
_require(::Symbol) at loading.jl:490
require(::Symbol) at loading.jl:398
(::Atom.##63#66)() at eval.jl:104
withpath(::Atom.##63#66, ::Void) at utils.jl:30
withpath(::Function, ::Void) at eval.jl:38
macro expansion at eval.jl:103 [inlined]
(::Atom.##62#65{Dict{String,Any}})() at task.jl:80

I am running Julia 0.6.0 on Atom on Fedora 25 workstation.