When trying to install Makie on Windows 7 for Julia 1.0, an error occurs:
[..]
┌ Warning: failed to extract archive downloaded from https://api.github.com/repos/JuliaImages/ImageCore.jl/tarball/b274f3abdcc10a0885187af3b7c7b2d67b73d0fe
â”” @ Pkg.Operations C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0\Pkg\src\Operations.jl:452
[...]
+ Error: Error building `ImageMagick`:
¦ [ Info: Downloading https://github.com/bicycle1885/ZlibBuilder/releases/download/v1.0.2/Zlib.v1.2.11.x86_64-w64-mingw32.tar.gz to HOME\.julia\packages\ImageMagick\d5KBL\deps\usr\downloads\Z
lib.v1.2.11.x86_64-w64-mingw32.tar.gz...
¦ [ Info: Downloading https://github.com/SimonDanisch/LibpngBuilder/releases/download/1.0.0/libpng.v1.6.31.x86_64-w64-mingw32.tar.gz to HOME\.julia\packages\ImageMagick\d5KBL\deps\usr\downloa
ds\libpng.v1.6.31.x86_64-w64-mingw32.tar.gz...
¦ ERROR: LoadError: LoadError: Could not unpack HOME\.julia\packages\ImageMagick\d5KBL\deps\usr\downloads\libpng.v1.6.31.x86_64-w64-mingw32.tar.gz into HOME\.julia\packages\ImageMagi
ck\d5KBL\deps\usr
¦ Stacktrace:
¦ [1] error(::String) at .\error.jl:33
¦ [2] #unpack#98(::Bool, ::Function, ::String, ::String) at HOME\.julia\packages\BinaryProvider\UTYxu\src\PlatformEngines.jl:600
¦ [3] #unpack at .\none:0 [inlined]
¦ [4] macro expansion at .\logging.jl:322 [inlined]
¦ [5] #install#115(::Prefix, ::String, ::Bool, ::Bool, ::Bool, ::Function, ::String, ::String) at HOME\.julia\packages\BinaryProvider\UTYxu\src\Prefix.jl:358
¦ [6] (::getfield(BinaryProvider, Symbol("#kw##install")))(::NamedTuple{(:prefix, :force, :verbose),Tuple{Prefix,Bool,Bool}}, ::typeof(install), ::String, ::String) at .\none:0
¦ [7] top-level scope at HOME\.julia\packages\ImageMagick\d5KBL\deps\build_libpng.v1.0.0.jl:36
¦ [8] include at .\boot.jl:317 [inlined]
¦ [9] top-level scope at HOME\.julia\packages\ImageMagick\d5KBL\deps\build.jl:15 [inlined]
¦ [10] top-level scope at .\none:0
¦ [11] include at .\boot.jl:317 [inlined]
¦ [12] include_relative(::Module, ::String) at .\loading.jl:1038
¦ [13] include(::Module, ::String) at .\sysimg.jl:29
¦ [14] include(::String) at .\client.jl:388
¦ [15] top-level scope at none:0
¦ in expression starting at HOME\.julia\packages\ImageMagick\d5KBL\deps\build_libpng.v1.0.0.jl:32
¦ in expression starting at HOME\.julia\packages\ImageMagick\d5KBL\deps\build.jl:11
¦ ... execution of C:\Users\otter\.julia\config\startup.jl
¦ ... Julia package directories: ["HOME\\.julia"]
¦ ... ENV["PYTHON"] = "D:\otter\Programme\Anaconda3\python.exe"
¦ ... ENV["DLR_VISUALIZATION"] = "D:\otter\_subversion\rm-vehicles\trunk\Visualization\Extras\SimVis"
¦ ... Starting Julia in HOME\.julia\dev
¦
¦ 7-Zip [64] 16.04 : Copyright (c) 1999-2016 Igor Pavlov : 2016-10-04
¦
¦
¦ Extracting archive:
¦ ERROR: Can not create symbolic link : Zugriff verweigert : HOME\.julia\packages\ImageMagick\d5KBL\deps\usr\bin\libpng-config
¦ --
¦ Path =
¦ Type = tar
¦ Code Page = UTF-8
¦
¦ ERROR: Can not create symbolic link : Zugriff verweigert : HOME\.julia\packages\ImageMagick\d5KBL\deps\usr\lib\libpng.dll.a
¦ ERROR: Can not create symbolic link : Zugriff verweigert : HOME\.julia\packages\ImageMagick\d5KBL\deps\usr\lib\pkgconfig\libpng.pc
¦ ERROR: Can not create symbolic link : Zugriff verweigert : HOME\.julia\packages\ImageMagick\d5KBL\deps\usr\lib\libpng.a
¦
¦ Sub items Errors: 4
¦
¦ Archives with Errors: 1
¦
¦ Sub items Errors: 4
+ @ Pkg.Operations C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0\Pkg\src\Operations.jl:1068
Building ModernGL ---? `HOME\.julia\packages\ModernGL\osk9o\deps\build.log`
Building FreeType ---? `HOME\.julia\packages\FreeType\2dE5w\deps\build.log`
The reason is that libpng.v1.6.31.x86_64-w64-mingw32.tar.gz file introduces symbolic links when unpacking. However, under Windows creation of symbolic links requires Administrator rights that typical users do not have.
This problem is also described in this ticket for the Sundials integrator suite. The fix is to use a copy operation on Windows instead of using symbolic links. In Sundials the necessary code changes to build_tarballs.jl are here. I guess this solution could be copied here.
The Sundials solution was made by @ChrisRackauckas.
@MartinOtter You can run REPL as administrator to avoid these problems. It worked for me.
Or you can enable developer mode. The problem is that the archive that is downloaded has symlinks inside and on Windows you need to be admin to create them.
You can run REPL as administrator to avoid these problems. It worked for me.
Yes I know. The problem is that users of organizations usually do not have administrator rights and need to ask the IT department to perform the installation.
This is an ImageMagick issue
Most helpful comment
Yes I know. The problem is that users of organizations usually do not have administrator rights and need to ask the IT department to perform the installation.