请老哥看看用PackageCompiler生成APP哪错了

我想用PackageCompiler.jl生成一个他所谓的“APP”

如果是一个简单的,不用任何库的程序是没问题的。

module MyApp

function main_A()::Cint
    println("Enter the number")
    a = readline()
    println("Entered the number: ", a)

    println(parse(Int64, a))

    print(typeof(a))

    return 0
end

end # module
E:\Julia projects\MyAppCompiled\bin>A
Enter the number
4
Entered the number: 4
4
String

但是如果想调用Plots.jl画个图的话就会报错。看样子好像是应该用他说的 Artifacts来解决,但实在没看懂该怎么写,有老哥帮帮忙吗

module MyApp

import Plots

function main_B()::Cint
    b=Plots.plot(rand(10), rand(10))
    display(b)
    return 0
end

end # module
E:\Julia projects\MyAppCompiled\bin>B
┌ Error: Error importing GR_jll:
│   err =
│    ArgumentError: Package GR does not have GR_jll in its dependencies:
│    - If you have GR checked out for development and have
│      added GR_jll as a dependency but haven't updated your primary
│      environment's manifest file, try `Pkg.resolve()`.
│    - Otherwise you may need to report an issue with GR
└ @ GR C:\Users\xxx\.julia\packages\GR\jpQcZ\src\funcptrs.jl:42
Your GR installation is incomplete. Rerunning build step for GR package.
┌ Info: Switching provider to GR due to error in depsfile
└   depsfile = "C:\\Users\\xxx\\.julia\\packages\\GR\\jpQcZ\\deps\\deps.jl"
LoadError: ArgumentError: Package GR does not have Pkg in its dependencies:
- If you have GR checked out for development and have
  added Pkg as a dependency but haven't updated your primary
  environment's manifest file, try `Pkg.resolve()`.
- Otherwise you may need to report an issue with GR
in expression starting at C:\Users\xxx\.julia\packages\GR\jpQcZ\deps\build.jl:1

对了,创建APP的时候是这样写的

using PackageCompiler
using Pkg

cd("E:/Julia projects")
Pkg.generate("MyApp")
cd("MyApp")
Pkg.activate(".")
Pkg.add("Plots")

create_app("MyApp", "MyAppCompiled", executables= ["A" => "main_A", "B" => "main_B"],force=true)

又试了试用其他包,好像不用调GUI的就可以,比如用UnicodePlots就没问题

module MyApp5

using UnicodePlots

function julia_main()::Cint
    try
        real_main()
    catch
        Base.invokelatest(Base.display_error, Base.catch_stack())
        return 1
    end
    return 0
end

function real_main()
    @show ARGS
    @show Base.PROGRAM_FILE
    @show DEPOT_PATH
    @show LOAD_PATH
    @show pwd()
    @show Base.active_project()
    @show Sys.BINDIR

    @show Base.JLOptions().opt_level
    @show Base.JLOptions().nthreads
    @show Base.JLOptions().check_bounds

    display(Base.loaded_modules)
    println()

    plt = lineplot([cos, sin], -π/2, 2π)
    plt = lineplot!(plt, 0.5, .2, name = "line")
    show(plt)

    return
end

end # module
E:\Julia projects\MyAppCompiled5\bin>MyApp5
ARGS = String[]
Base.PROGRAM_FILE = "MyApp5"
DEPOT_PATH = ["E:\\Julia projects\\MyAppCompiled5\\share\\julia"]
LOAD_PATH = ["E:\\Julia projects\\MyAppCompiled5\\share\\julia"]
pwd() = "E:\\Julia projects\\MyAppCompiled5\\bin"
Base.active_project() = "E:\\Julia projects\\MyAppCompiled5\\share\\julia\\Project.toml"
Sys.BINDIR = "E:\\Julia projects\\MyAppCompiled5\\bin"
(Base.JLOptions()).opt_level = 2
(Base.JLOptions()).nthreads = 0
(Base.JLOptions()).check_bounds = 0
Dict{Base.PkgId, Module} with 98 entries:
  MbedTLS_jll [c8ffd9c3-330d-5841-b78e-0817d7145fa1] => MbedTLS_jll
  Zlib_jll [83775a58-1f1d-513f-b197-d71354ab007a] => Zlib_jll
  LogExpFunctions [2ab3a3ac-af41-5b50-aa03-7779005ae688] => LogExpFunctions
  DataValueInterfaces [e2d170a0-9d28-54be-80f0-106bbe20a464] => DataValueInterfaces
  LazyArtifacts [4af54fe1-eca0-43a8-85a7-787d91b784e3] => LazyArtifacts
  Sockets [6462fe0b-24de-5631-8697-dd941f90decc] => Sockets
  ConstructionBase [187b0558-2788-49d3-abe0-74a17ed4e7c9] => ConstructionBase
  LibCURL_jll [deac9b47-8bc7-5906-a0fe-35ac56dc84c0] => LibCURL_jll
  FreeTypeAbstraction [663a7486-cb36-511b-a19d-713bb74d65c9] => FreeTypeAbstraction
  Requires [ae029012-a4dd-5104-9daa-d747884805df] => Requires
  GeometryBasics [5c1252a2-5f33-56bf-86c9-59e7332b4326] => GeometryBasics
  JLLWrappers [692b3bcd-3c85-4b1f-b108-f13ce0eb3210] => JLLWrappers
  FileIO [5789e2e9-d7fb-5bc7-8068-2c6fae9b9549] => FileIO
  CRC32c [8bf52ea8-c179-5cab-976a-9e18b702a9bc] => CRC32c
  Tar [a4e569a6-e804-4fa4-b0f3-eef7a1d5b13e] => Tar
  Profile [9abbd945-dff8-562f-b5e8-e1ebf5ef1b79] => Profile
  TableTraits [3783bdb8-4a98-5b6b-af9a-565f29a5fe9c] => TableTraits
  LibCURL [b27032c2-a3e7-50c8-80cd-2d36dbcbfd21] => LibCURL
  Reexport [189a3867-3050-52da-a836-e630ba90ab69] => Reexport
  Main [top-level] => Main
  Pkg [44cfe95a-1eb2-52ea-b672-e2afdf69b78f] => Pkg
  REPL [3fa0cd96-eef1-5676-8a61-b3b8758bbffb] => REPL
  ColorVectorSpace [c3611d14-8923-5661-9e6a-0046d554d3a4] => ColorVectorSpace
  Crayons [a8cc5b0e-0ffa-5ad4-8c14-923d3ee1735f] => Crayons
  DataAPI [9a962f9c-6df0-11e9-0e5d-c546b8b5ee8a] => DataAPI
  Unitful [1986cc42-f94f-5a68-af5c-568840ba703d] => Unitful
  ColorTypes [3da002f7-5984-5a60-b8a6-cbb66c0b333f] => ColorTypes
  EarCut_jll [5ae413db-bbd1-5e63-b57d-d24a61df00f5] => EarCut_jll
  Test [8dfed614-e22c-5e08-85e1-65c5234f0b40] => Test
  IterTools [c8e1da08-722c-5040-9ed9-7db0dc04731e] => IterTools
  DelimitedFiles [8bb1440f-4735-579b-a4ab-409b98df4dab] => DelimitedFiles
  StatsBase [2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91] => StatsBase
  IteratorInterfaceExtensions [82899510-4779-5014-852e-03e436cf321d] => IteratorInterfaceExtensions
  SparseArrays [2f01184e-e22b-5df5-ae63-d93ebab69eaf] => SparseArrays
  OrderedCollections [bac558e1-5e72-5ebc-8fee-abe8a469f55d] => OrderedCollections
  ChangesOfVariables [9e997f8a-9a97-42d5-a9f1-ce6bfc15e2c0] => ChangesOfVariables
  StructArrays [09ab397b-f2b6-538f-b94a-2f83cf4a842a] => StructArrays
  Base64 [2a0f44e3-6c83-55bd-87e4-b1978d98bd5f] => Base64
  TensorCore [62fd8b95-f654-4bbd-a8a5-9c27f68ccd50] => TensorCore
  Core [top-level] => Core
  NaNMath [77ba4419-2d1f-58cd-9bb1-8ffee604a2e3] => NaNMath
  SuiteSparse [4607b0f0-06f3-5cda-b6b1-a6196a1729e9] => SuiteSparse
  FreeType2_jll [d7e528f0-a631-5988-bf34-fe36492bcfd7] => FreeType2_jll
  p7zip_jll [3f19e933-33d8-53b3-aaab-bd5110c3b7a0] => p7zip_jll
  StaticArrays [90137ffa-7385-5640-81b9-e52037218182] => StaticArrays
  MarchingCubes [299715c1-40a9-479a-aaf9-4a633d36f717] => MarchingCubes
  SharedArrays [1a1011a3-84de-559e-8e89-a11a2f7dc383] => SharedArrays
  MozillaCACerts_jll [14a3606d-f60d-562e-9121-12d972cd8159] => MozillaCACerts_jll
  OpenSpecFun_jll [efe28fd5-8261-553b-a9e1-b2916fc3738e] => OpenSpecFun_jll
  LibGit2 [76f85450-5226-5b5a-8eaa-529ad045b433] => LibGit2
  Preferences [21216c6a-2e73-6563-6e65-726566657250] => Preferences
  TOML [fa267f1f-6049-4f14-aa54-33bafae1ed76] => TOML
  CEnum [fa961155-64e5-5f13-b03f-caf6b980ea82] => CEnum
  DataStructures [864edb3b-99cc-5e75-8d2d-829cb0a9cfe8] => DataStructures
  DocStringExtensions [ffbed154-4ef7-542d-bbb7-c09d3a79fcae] => DocStringExtensions
  IrrationalConstants [92d709cd-6900-40b7-9082-c6be49f344b6] => IrrationalConstants
  Serialization [9e88b42a-f829-5b0c-bbe9-9e923198166b] => Serialization
  ArgTools [0dad84c5-d112-42e6-8d28-ef12dabb789f] => ArgTools
  Distributed [8ba89e20-285c-5b6f-9357-94700520ee1b] => Distributed
  FileWatching [7b1f6079-737a-58dc-b8bc-7a2ca5c1b5ee] => FileWatching
  InteractiveUtils [b77e0a4c-d291-57a0-90e8-8db25a27a240] => InteractiveUtils
  Printf [de0858da-6303-5e67-8744-51eddeeeb8d7] => Printf
  Statistics [10745b16-79ce-11e8-11f9-7d13ad32a3b2] => Statistics
  Colors [5ae59095-9a9b-59fe-a467-6f913c188581] => Colors
  Markdown [d6f4376e-aef5-505a-96c1-9c027394607a] => Markdown
  Compat [34da2185-b29b-5c13-b0c7-acf172513d20] => Compat
  ChainRulesCore [d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4] => ChainRulesCore
  Future [9fa8497b-333b-5362-9e8d-4d0656e87820] => Future
  CompilerSupportLibraries_jll [e66e0078-7015-5450-92f7-15fbd957f2ae] => CompilerSupportLibraries_jll
  SortingAlgorithms [a2af1166-a08f-5f64-846c-94a0d3cef48c] => SortingAlgorithms
  Artifacts [56f22d72-fd6d-98f1-02f0-08ddc0907c33] => Artifacts
  UnicodePlots [b8865327-cd53-5732-bb35-84acbb429228] => UnicodePlots
  Logging [56ddb016-857b-54e1-b83d-db4d58db5568] => Logging
  SpecialFunctions [276daf66-3868-5448-9aa4-cd146d93841b] => SpecialFunctions
  Dates [ade2ca70-3891-5945-98fb-dc099432e06a] => Dates
  nghttp2_jll [8e850ede-7688-5339-a07c-302acd2aaf8d] => nghttp2_jll
  SHA [ea8e919c-243c-51af-8825-aaa63cd721ce] => SHA
  FixedPointNumbers [53c48c17-4a7d-5ca2-90c5-79b7896eea93] => FixedPointNumbers
  Base [top-level] => Base
  Missings [e1d29d7a-bbdc-5cf2-9ac0-f12de2c33e28] => Missings
  MyApp5 [b2e195fb-f7b5-44c7-a21b-ab5ec1942423] => MyApp5
  OpenLibm_jll [05823500-19ac-5b8b-9628-191a04bc5112] => OpenLibm_jll
  Contour [d38c429a-6771-53c6-b99e-75d170b6e991] => Contour
  FreeType [b38be410-82b0-50bf-ab77-7b57e271db43] => FreeType
  InverseFunctions [3587e190-3f89-42d0-90ee-14403ec27112] => InverseFunctions
  LibSSH2_jll [29816b5a-b9ab-546f-933c-edad1886dfa8] => LibSSH2_jll
  Mmap [a63ad114-7e13-5084-954f-fe012c677804] => Mmap
  LinearAlgebra [37e2e46d-f89d-539d-b4ee-838fcccc9c8e] => LinearAlgebra
  Libdl [8f399da3-3557-5675-b5ff-fb832c97cbdb] => Libdl
  Tables [bd369af6-aec1-5ad0-b16a-f7cc5008161c] => Tables
  UUIDs [cf7118a7-6976-5b1a-9a39-7adc72f591a4] => UUIDs
  Bzip2_jll [6e34b625-4abd-537c-b88f-471c36dfa7a0] => Bzip2_jll
  Random [9a3f8284-a2c9-5f02-9a11-845980a1fd5c] => Random
  NetworkOptions [ca575930-c2e3-43a9-ace4-1e988b2c1908] => NetworkOptions
  Adapt [79e6a3ab-5dfb-504d-930d-738a2a938a0e] => Adapt
  Unicode [4ec0a83e-493e-50e2-b9ac-8f72acf5a8f5] => Unicode
  StatsAPI [82ae8749-77ed-4fe6-ae5f-f523153014b0] => StatsAPI
  Downloads [f43a241f-c20a-4ad4-852c-f6b1247861c6] => Downloads
           ┌────────────────────────────────────────┐
         1 │⠀⠀⠀⠀⠀⠀⢀⠖⢹⠉⢢⠀⠀⢀⠞⠉⠉⢢⠤⠊⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⠞⠉⠀⠀⠀│ cos(x)
           │⠀⠀⠀⠀⠀⢠⠊⠀⢸⠀⠀⠳⣠⠊⢀⠤⠊⠁⠣⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⠃⠀⠀⠀⠀⠀│ sin(x)
           │⠀⠀⠀⠀⢀⠇⠀⠀⢸⠀⠀⢠⢷⠊⠁⠀⠀⠀⠀⢱⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⠇⠀⠀⠀⠀⠀⠀│ line
           │⠀⠀⠀⠀⡜⠀⠀⠀⢸⠤⠊⡝⠀⢧⠀⠀⠀⠀⠀⠀⢧⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡎⠀⠀⠀⠀⠀⠀⠀│
           │⠀⠀⠀⢸⠀⢀⠤⠊⢹⠀⢸⠀⠀⠘⡄⠀⠀⠀⠀⠀⠘⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⡸⠀⠀⠀⠀⠀⠀⠀⠀│
           │⠀⠀⢀⠧⠊⠁⠀⠀⢸⢀⠇⠀⠀⠀⢱⠀⠀⠀⠀⠀⠀⢱⠀⠀⠀⠀⠀⠀⠀⠀⢠⠃⠀⠀⠀⠀⠀⠀⠀⠀│
           │⡠⠊⡝⠀⠀⠀⠀⠀⢸⡜⠀⠀⠀⠀⠈⡆⠀⠀⠀⠀⠀⠈⡆⠀⠀⠀⠀⠀⠀⠀⡜⠀⠀⠀⠀⠀⠀⠀⠀⠀│
   f(x)    │⠤⠤⠧⠤⠤⠤⠤⠤⢼⠧⠤⠤⠤⠤⠤⠼⡤⠤⠤⠤⠤⠤⠼⡤⠤⠤⠤⠤⠤⢴⠥⠤⠤⠤⠤⠤⢤⠤⠤⠤│
           │⠀⠀⠀⠀⠀⠀⠀⠀⣿⠀⠀⠀⠀⠀⠀⠀⢣⠀⠀⠀⠀⠀⠀⢣⠀⠀⠀⠀⢀⠇⠀⠀⠀⠀⠀⢀⠇⠀⠀⠀│
           │⠀⠀⠀⠀⠀⠀⠀⡸⢸⠀⠀⠀⠀⠀⠀⠀⠈⡆⠀⠀⠀⠀⠀⠈⡆⠀⠀⠀⡸⠀⠀⠀⠀⠀⠀⡸⠀⠀⠀⠀│
           │⠀⠀⠀⠀⠀⠀⢀⠇⢸⠀⠀⠀⠀⠀⠀⠀⠀⢱⠀⠀⠀⠀⠀⠀⢱⠀⠀⢠⠃⠀⠀⠀⠀⠀⢠⠃⠀⠀⠀⠀│
           │⠀⠀⠀⠀⠀⠀⡞⠀⢸⠀⠀⠀⠀⠀⠀⠀⠀⠀⢇⠀⠀⠀⠀⠀⠀⢇⠀⡞⠀⠀⠀⠀⠀⠀⡎⠀⠀⠀⠀⠀│
           │⠀⠀⠀⠀⠀⡸⠀⠀⢸⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⡆⠀⠀⠀⠀⠀⠘⡾⠀⠀⠀⠀⠀⠀⡸⠀⠀⠀⠀⠀⠀│
           │⠀⠀⠀⠀⡰⠁⠀⠀⢸⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⢄⠀⠀⠀⠀⡜⠙⣄⠀⠀⠀⠀⡜⠁⠀⠀⠀⠀⠀⠀│
        -1 │⠀⢀⣀⠜⠀⠀⠀⠀⢸⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⢦⣀⣀⠜⠀⠀⠈⢦⣀⣠⠜⠀⠀⠀⠀⠀⠀⠀⠀│
           └────────────────────────────────────────┘
           ⠀-2⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀7⠀
           ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀x⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀

用GLMakie就不行

module MyApp6

using GLMakie

function julia_main()::Cint
    try
        real_main()
    catch
        Base.invokelatest(Base.display_error, Base.catch_stack())
        return 1
    end
    return 0
end

function real_main()
    @show ARGS
    @show Base.PROGRAM_FILE
    @show DEPOT_PATH
    @show LOAD_PATH
    @show pwd()
    @show Base.active_project()
    @show Sys.BINDIR

    @show Base.JLOptions().opt_level
    @show Base.JLOptions().nthreads
    @show Base.JLOptions().check_bounds

    display(Base.loaded_modules)
    println()

    fig1 = Figure()
    ax1 = Axis3(fig1[1, 1]; aspect= :data, xlabel = "x nm", ylabel = "y nm", zlabel = "z nm")
    scatter!(ax1, rand(100,3);markersize=1000, color = :red)

    display(fig1)

    return
end

end # module
E:\Julia projects\MyApp5\src>"E:\Julia projects\MyAppCompiled6\bin\MyApp6.exe"
  Downloaded artifact: MKL
  Downloaded artifact: MKL
fatal: error thrown and no exception handler available.
InitError(mod=:MKL_jll, error=ErrorException("Unable to automatically install 'MKL' from 'C:\Users\xxx\.julia\packages\MKL_jll\xglHW\Artifacts.toml'"))
error at .\error.jl:33pCompiled6\bin>MyApp6
#ensure_artifact_installed#23 at C:\Users\xxx\AppData\Local\Programs\Julia-1.6.5\share\julia\stdlib\v1.6\Pkg\src\Artifacts.jl:445
ensure_artifact_installed##kw at C:\Users\xxx\AppData\Local\Programs\Julia-1.6.5\share\julia\stdlib\v1.6\Pkg\src\Artifacts.jl:417
unknown function (ip: 00000000265c83ec)
#ensure_artifact_installed#22 at C:\Users\xxx\AppData\Local\Programs\Julia-1.6.5\share\julia\stdlib\v1.6\Pkg\src\Artifacts.jl:408
unknown function (ip: 00000000265c74ac)
ensure_artifact_installed##kw at C:\Users\xxx\AppData\Local\Programs\Julia-1.6.5\share\julia\stdlib\v1.6\Pkg\src\Artifacts.jl:403
unknown function (ip: 00000000265c71b8)
_artifact_str at C:\Users\xxx\AppData\Local\Programs\Julia-1.6.5\share\julia\stdlib\v1.6\Artifacts\src\Artifacts.jl:547
unknown function (ip: 00000000265bd55b)
jl_apply at /cygdrive/c/buildbot/worker/package_win64/build/src\julia.h:1703 [inlined]
jl_f__call_latest at /cygdrive/c/buildbot/worker/package_win64/build/src\builtins.c:714jl_apply at /cygdrive/c/buildbot/worker/package_win64/build/src\julia.h:1703 [inlined]
do_apply at /cygdrive/c/buildbot/worker/package_win64/build/src\builtins.c:670
#invokelatest#2 at .\essentials.jl:708
jl_apply at /cygdrive/c/buildbot/worker/package_win64/build/src\julia.h:1703 [inlined]
do_apply at /cygdrive/c/buildbot/worker/package_win64/build/src\builtins.c:670
invokelatest at .\essentials.jl:706
jl_apply at /cygdrive/c/buildbot/worker/package_win64/build/src\julia.h:1703 [inlined]
do_call at /cygdrive/c/buildbot/worker/package_win64/build/src\interpreter.c:115
eval_value at /cygdrive/c/buildbot/worker/package_win64/build/src\interpreter.c:204
eval_stmt_value at /cygdrive/c/buildbot/worker/package_win64/build/src\interpreter.c:155 [inlined]
eval_body at /cygdrive/c/buildbot/worker/package_win64/build/src\interpreter.c:576
jl_fptr_interpret_call at /cygdrive/c/buildbot/worker/package_win64/build/src\interpreter.c:650
macro expansion at C:\Users\xxx\AppData\Local\Programs\Julia-1.6.5\share\julia\stdlib\v1.6\Artifacts\src\Artifacts.jl:680 [inlined]
find_artifact_dir at C:\Users\xxx\.julia\packages\JLLWrappers\QpMQW\src\wrapper_generators.jl:17
__init__ at C:\Users\xxx\.julia\packages\MKL_jll\xglHW\src\wrappers\x86_64-w64-mingw32.jl:9
jl_apply at /cygdrive/c/buildbot/worker/package_win64/build/src\julia.h:1703 [inlined]
jl_module_run_initializer at /cygdrive/c/buildbot/worker/package_win64/build/src\toplevel.c:72
_julia_init at /cygdrive/c/buildbot/worker/package_win64/build/src\init.c:794
jl_init_with_image__threading at /cygdrive/c/buildbot/worker/package_win64/build/src\jlapi.c:74 [inlined]
jl_init_with_image__threading at /cygdrive/c/buildbot/worker/package_win64/build/src\jlapi.c:63 [inlined]
jl_init__threading at /cygdrive/c/buildbot/worker/package_win64/build/src\jlapi.c:90
.text at E:\Julia projects\MyAppCompiled6\bin\MyApp6.exe (unknown line)
__tmainCRTStartup at E:\Julia projects\MyAppCompiled6\bin\MyApp6.exe (unknown line)
.l_start at E:\Julia projects\MyAppCompiled6\bin\MyApp6.exe (unknown line)
BaseThreadInitThunk at C:\Windows\System32\KERNEL32.DLL (unknown line)
RtlUserThreadStart at C:\Windows\SYSTEM32\ntdll.dll (unknown line)

我这里还没有编译成功,但有个土法估计可以解决:
1 MyAppCompiled 目录下创建 pkgs 目录和 etc 目录
2 创建 MyAppCompiled/etc/julia 目录, 下面创建 startup.jl 文件
3 startup.jl 里面, popfirst!(DEPOT_PATH );pushfirst!(DEPOT_PATH, Sys.BINDIR *"/…/pkgs" );push!(LOAD_PATH, DEPOT_PATH[1] )
4 在 bin 下执行 ./julia, ] add xxx 把相关包添加进去
5 然后再 build 看看可以不。