MKL build失败

(@v1.5) pkg> build MKL
Building MKL → C:\Users\mkk\.julia\packages\MKL\1aXoN\deps\build.log
┌ Error: Error building MKL:
│ [ Info: Splicing in code to load MKL in D:\Julia 1.5.2\bin…\share\julia\base\sysimg.jl
│ [ Info: getting precompile script from: https://raw.githubusercontent.com/JuliaLang/julia/release-1.5/contrib/generate_precompile.jl
│ ┌ Error: Download failed: curl: (6) Could not resolve host: raw.githubusercontent.com
│ └ @ Base download.jl:43
│ ERROR: LoadError: failed process: Process('C:\Windows\System32\curl.exe' -s -S -g -L -f -o 'C:\Users\mkk\AppData\Local\Temp\jl_R8CMaAFBhW' https://raw.githubusercontent.com/JuliaLang/julia/release-1.5/contrib/generate_precompile.jl, ProcessExited(6)) [6]

│ Stacktrace:
│ [1] pipeline_error at .\process.jl:525 [inlined]
│ [2] download_curl(::String, ::String, ::String) at .\download.jl:44
│ [3] download at .\download.jl:62 [inlined]
│ [4] get_precompile_statments_file() at C:\Users\mkk.julia\packages\MKL\1aXoN\src\install.jl:96
│ [5] top-level scope at C:\Users\mkk.julia\packages\MKL\1aXoN\src\install.jl:128
│ [6] eval at .\boot.jl:331 [inlined]
│ [7] change_blas_library(::String) at C:\Users\mkk.julia\packages\MKL\1aXoN\src\install.jl:126
│ [8] enable_mkl_startup() at C:\Users\mkk.julia\packages\MKL\1aXoN\src\install.jl:103
│ [9] top-level scope at C:\Users\mkk.julia\packages\MKL\1aXoN\deps\build.jl:9
│ [10] include(::String) at .\client.jl:457
│ [11] top-level scope at none:5
│ in expression starting at C:\Users\mkk.julia\packages\MKL\1aXoN\deps\build.jl:9
└ @ Pkg.Operations D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\Pkg\src\Operations.jl:949

你这是网络问题,建议挂代理.

Error: Download failed: curl: (6) Could not resolve host: raw.githubusercontent.com


这样设置吗 好像还是不行
build结果
Building MKL → C:\Users\mkk\.julia\packages\MKL\1aXoN\deps\build.log
┌ Error: Error building MKL:
│ Generating precompile statements… 1852 generated in 95.306423 seconds (overhead 71.871404 seconds)
│ [ Info: Splicing in code to load MKL in D:\Julia 1.5.2\bin…\share\julia\base\sysimg.jl
│ [ Info: getting precompile script from: https://raw.githubusercontent.com/JuliaLang/julia/release-1.5/contrib/generate_precompile.jl
│ [ Info: PackageCompiler: creating base system image (incremental=false)…
│ [ Info: PackageCompiler: creating system image object file, this might take a while…
│ ERROR: LoadError: IOError: unlink: permission denied (EACCES)
│ Stacktrace:
│ [1] uv_error at .\libuv.jl:97 [inlined]
│ [2] unlink(::String) at .\file.jl:888
│ [3] rm(::String; force::Bool, recursive::Bool) at .\file.jl:268
│ [4] rename(::String, ::String; force::Bool) at .\file.jl:898
│ [5] rename at .\file.jl:894 [inlined]
│ [6] #mv#13 at .\file.jl:393 [inlined]
│ [7] mv at .\file.jl:392 [inlined]
│ [8] move_default_sysimage_if_windows() at C:\Users\mkk.julia\packages\PackageCompiler\AerNj\src\PackageCompiler.jl:83
│ [9] create_sysimage(::Array{Symbol,1}; sysimage_path::Nothing, project::String, precompile_execution_file::Array{String,1}, precompile_statements_file::Array{String,1}, incremental::Bool, filter_stdlibs::Bool, replace_default::Bool, cpu_target::String, script::String, base_sysimage::Nothing, isapp::Bool) at C:\Users\mkk.julia\packages\PackageCompiler\AerNj\src\PackageCompiler.jl:442
│ [10] top-level scope at C:\Users\mkk.julia\packages\MKL\1aXoN\src\install.jl:128
│ [11] eval at .\boot.jl:331 [inlined]
│ [12] change_blas_library(::String) at C:\Users\mkk.julia\packages\MKL\1aXoN\src\install.jl:126
│ [13] enable_mkl_startup() at C:\Users\mkk.julia\packages\MKL\1aXoN\src\install.jl:103
│ [14] top-level scope at C:\Users\mkk.julia\packages\MKL\1aXoN\deps\build.jl:9
│ [15] include(::String) at .\client.jl:457
│ [16] top-level scope at none:5
│ in expression starting at C:\Users\mkk.julia\packages\MKL\1aXoN\deps\build.jl:9
└ @ Pkg.Operations D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\Pkg\src\Operations.jl:949

PkgServer 和代理是两回事, 当你需要从 github 下东西的时候 PkgServer 没有帮助,需要使用代理。

不太懂 怎么挂代理

我也在win10的机子上遇到这个问题了。 但是我用linux build成功过。似乎是win10的问题? 不知道楼主解决了没有