Closed kmsquire closed 4 years ago
What is this file used for in Base? I guess it could be bundled in PackageCompiler but it will always be a bit problematic to non-declaratively depend on "random" files that Julia ships with. From PackageCompiler's p.o.v, best would be to either ship it as an Artifact, or just read the content of it into the source during precompile time.
I still have this error. I'm on macOS.
~/craft/GSEA.jl/build/gsea ./bin/gsea 23:55:50
fatal: error thrown and no exception handler available.
InitError(mod=:MbedTLS, error=Base.SystemError(prefix="opening file "/Users/kwat/craft/GSEA.jl/build/gsea/share/julia/cert.pem"", errnum=2, extrainfo=nothing))
YY.systemerrorYY.69_24432.clone at /Users/kwat/craft/GSEA.jl/build/gsea/lib/julia/sys.dylib (unknown line)
systemerrorYY.YY.kw_39627.clone at /Users/kwat/craft/GSEA.jl/build/gsea/lib/julia/sys.dylib (unknown line)
systemerrorYY.YY.kw_39637.clone at /Users/kwat/craft/GSEA.jl/build/gsea/lib/julia/sys.dylib (unknown line)
YY.openYY.639_32472.clone at /Users/kwat/craft/GSEA.jl/build/gsea/lib/julia/sys.dylib (unknown line)
YY.openYY.355_38261.clone at /Users/kwat/craft/GSEA.jl/build/gsea/lib/julia/sys.dylib (unknown line)
open at ./io.jl:328 [inlined]
read at ./io.jl:436
jl_apply_generic at /Users/kwat/craft/GSEA.jl/build/gsea/lib/julia/libjulia-internal.1.7.dylib (unknown line)
__sslinit___23013.clone at /Users/kwat/craft/GSEA.jl/build/gsea/lib/julia/sys.dylib (unknown line)
__init___23025.clone at /Users/kwat/craft/GSEA.jl/build/gsea/lib/julia/sys.dylib (unknown line)
jfptr___init___23026.clone_1 at /Users/kwat/craft/GSEA.jl/build/gsea/lib/julia/sys.dylib (unknown line)
jl_apply_generic at /Users/kwat/craft/GSEA.jl/build/gsea/lib/julia/libjulia-internal.1.7.dylib (unknown line)
jl_module_run_initializer at /Users/kwat/craft/GSEA.jl/build/gsea/lib/julia/libjulia-internal.1.7.dylib (unknown line)
_finish_julia_init at /Users/kwat/craft/GSEA.jl/build/gsea/lib/julia/libjulia-internal.1.7.dylib (unknown line)
julia_init at /Users/kwat/craft/GSEA.jl/build/gsea/lib/julia/libjulia-internal.1.7.dylib (unknown line)
jl_init at /Users/kwat/craft/GSEA.jl/build/gsea/lib/julia/libjulia-internal.1.7.dylib (unknown line)
main at /Users/kwat/craft/GSEA.jl/build/gsea/bin/gsea (unknown line)
https://github.com/KwatMDPhD/GSEA.jl/issues/59
How can I fix this?
Thanks in advance.
In this line:
https://github.com/JuliaLang/MbedTLS.jl/commit/f45903118feca9aab1993a40aa82b51444c40256#diff-3f2c05e28eda33cb95585f4259519af5R758
the absolute path to
cert.pem
is recorded.When compiling under
PackageCompiler
, that points to<MyPackageCompiled>/share/julia/cert.pem
, which doesn't exist.(I got around it for now by copying the
cert.pem
file to the expected location...)Cc: @JackDunnNZ @KristofferC