I have put import Gadfly
in userimage.jl, then use
include(joinpath(JULIA_HOME, Base.DATAROOTDIR, "julia", "build_sysimg.jl"))
build_sysimg(default_sysimg_path(), "native", "C:/Users/AStupidBear/userimg.jl"; force=true)
to build a new image.
But get the following errors
C:\PortableSoftware\JuliaPro-0.5.0.1\Julia-0.5.0\share\julia\base\precompile.jl
LoadError("sysimg.jl",381,LoadError("C:\\PortableSoftware\\JuliaPro-0.5.0.1\\Julia-0.5.0\\share\\julia\\base\\userimg.jl",1,LoadError("C:\\PortableSoftware\\JuliaPro-0.5.0.1\\pkgs-0.5.0.1\\v0.5\\Gadfly\\src\\Gadfly.jl",7,LoadError("C:\\PortableSoftware\\JuliaPro-0.5.0.1\\pkgs-0.5.0.1\\v0.5\\Compose\\src\\Compose.jl",174,BoundsError(String[],(1,))))))
ERROR: failed process: Process(`'C:\PortableSoftware\JuliaPro-0.5.0.1\Julia-0.5.0\bin\julia' -C native --output-ji 'C:\PortableSoftware\JuliaPro-0.5.0.1\Julia-0.5.0\bin\..\lib\julia\sys.ji' --output-o 'C:\PortableSoftware\JuliaPro-0.5.0.1\Julia-0.5.0\bin\..\lib\julia\sys.o' -J 'C:\PortableSoftware\JuliaPro-0.5.0.1\Julia-0.5.0\bin\..\lib\julia\inference.ji' --startup-file=no sysimg.jl`, ProcessExited(1)) [1]
in pipeline_error(::Base.Process) at .\process.jl:616
in run at .\process.jl:592 [inlined]
in (::##2#3{Bool,String})() at C:\PortableSoftware\JuliaPro-0.5.0.1\Julia-0.5.0\share\julia\build_sysimg.jl:81
in cd(::##2#3{Bool,String}, ::String) at .\file.jl:48
in #build_sysimg#1(::Bool, ::Bool, ::Function, ::String, ::String, ::String) at C:\PortableSoftware\JuliaPro-0.5.0.1\Julia-0.5.0\share\julia\build_sysimg.jl:48
in (::#kw##build_sysimg)(::Array{Any,1}, ::#build_sysimg, ::String, ::String, ::String) at .\<missing>:0