安装pgfplots出错,求大佬支援一下


#1

Pkg.add(“PGFPlots”)出错。
有一个warning,

Warning: failed to extract archive downloaded from https://api.github.com/repos/JuliaImages/ImageCore.jl/tarball/38d9e5c3d0ab79b6062de40ad6cfbf47574c25b6
└ @ Pkg.Operations C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.1\Pkg\src\Operations.jl:475.。

再build ImageMagick出错,

Error: Error building `ImageMagick`:
┌ Error: Error building `ImageMagick`:
│ ┌ Warning: On Windows, creating file symlinks requires Administrator privileges
│ └ @ Base.Filesystem file.jl:794
│ ┌ Warning: platform_key() is deprecated, use platform_key_abi() from now on
│ │   caller = ip:0x0
│ └ @ Core :-1
│ [ Info: Downloading https://github.com/bicycle1885/ZlibBuilder/releases/download/v1.0.2/Zlib.v1.2.11.x86_64-w64-mingw32.tar.gz to C:\Users\lsqufo\.julia\packages\ImageMagick\J74FC\deps\usr\downloads\Zlib.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 C:\Users\lsqufo\.julia\packages\ImageMagick\J74FC\deps\usr\downloads\libpng.v1.6.31.x86_64-w64-mingw32.tar.gz...
│ ERROR: LoadError: LoadError: Could not unpack C:\Users\lsqufo\.julia\packages\ImageMagick\J74FC\deps\usr\downloads\libpng.v1.6.31.x86_64-w64-mingw32.tar.gz into C:\Users\lsqufo\.julia\packages\ImageMagick\J74FC\deps\usr

错误提示是不能unpack,大家帮帮忙:rofl::rofl::rofl::rofl:


#2

你看看这个包能否打开,或者直接从GitHub上下了覆盖它,再试试。

ps: 上面有个 warning 让你开管理员权限


#3

嗯,这个包的安装,怎么开管理者权限。 我已经覆盖了,还是不行。可能这个过程就是默认采用程序来覆盖吧。。现在是pgfplots包都下载好了,build imageMagicx 出问题。是不是我系统有问题呢,

(v1.1) pkg> build ImageMagick
  Building Conda ──────→ `C:\Users\lsqufo\.julia\packages\Conda\CpuvI\deps\build.log`
  Building FFTW ───────→ `C:\Users\lsqufo\.julia\packages\FFTW\p7sLQ\deps\build.log`
  Building ImageMagick → `C:\Users\lsqufo\.julia\packages\ImageMagick\J74FC\deps\build.log`
┌ Error: Error building `ImageMagick`:
│ ┌ Warning: On Windows, creating file symlinks requires Administrator privileges
│ └ @ Base.Filesystem file.jl:794
│ ┌ Warning: platform_key() is deprecated, use platform_key_abi() from now on
│ │   caller = ip:0x0
│ └ @ Core :-1
│ ERROR: LoadError: LoadError: Could not unpack C:\Users\lsqufo\.julia\packages\ImageMagick\J74FC\deps\usr\downloads\libpng.v1.6.31.x86_64-w64-mingw32.tar.gz into C:\Users\lsqufo\.julia\packages\ImageMagick\J74FC\deps\usr
│ Stacktrace:
│  [1] error(::String) at .\error.jl:33
│  [2] #unpack#98(::Bool, ::Function, ::String, ::String) at C:\Users\lsqufo\.julia\packages\BinaryProvider\TcAwt\src\PlatformEngines.jl:660
│  [3] #unpack at .\none:0 [inlined]
│  [4] #install#133(::Prefix, ::String, ::Bool, ::Bool, ::Bool, ::Function, ::String, ::String) at C:\Users\lsqufo\.julia\packages\BinaryProvider\TcAwt\src\Prefix.jl:347
│  [5] (::getfield(BinaryProvider, Symbol("#kw##install")))(::NamedTuple{(:prefix, :force, :verbose),Tuple{Prefix,Bool,Bool}}, ::typeof(install), ::String, ::String) at .\none:0
│  [6] top-level scope at C:\Users\lsqufo\.julia\packages\ImageMagick\J74FC\deps\build_libpng.v1.0.0.jl:36
│  [7] include at .\boot.jl:326 [inlined]
│  [8] top-level scope at C:\Users\lsqufo\.julia\packages\ImageMagick\J74FC\deps\build.jl:15 [inlined]
│  [9] top-level scope at .\none:0
│  [10] include at .\boot.jl:326 [inlined]
│  [11] include_relative(::Module, ::String) at .\loading.jl:1038
│  [12] include(::Module, ::String) at .\sysimg.jl:29
│  [13] include(::String) at .\client.jl:403
│  [14] top-level scope at none:0
│ in expression starting at C:\Users\lsqufo\.julia\packages\ImageMagick\J74FC\deps\build_libpng.v1.0.0.jl:32
│ in expression starting at C:\Users\lsqufo\.julia\packages\ImageMagick\J74FC\deps\build.jl:11
│
│ 7-Zip 18.05 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2018-04-30
│
│
│ Extracting archive:
│ ERROR: Can not create symbolic link : �ͻ���û���������Ȩ�� : C:\Users\lsqufo\.julia\packages\ImageMagick\J74FC\deps\usr\bin\libpng-config
│ --
│ Path =
│ Type = tar
│ Code Page = UTF-8
│
│ ERROR: Can not create symbolic link : �ͻ���û���������Ȩ�� : C:\Users\lsqufo\.julia\packages\ImageMagick\J74FC\deps\usr\lib\libpng.dll.a
│ ERROR: Can not create symbolic link : �ͻ���û���������Ȩ�� : C:\Users\lsqufo\.julia\packages\ImageMagick\J74FC\deps\usr\lib\pkgconfig\libpng.pc
│ ERROR: Can not create symbolic link : �ͻ���û���������Ȩ�� : C:\Users\lsqufo\.julia\packages\ImageMagick\J74FC\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.1\Pkg\src\Operations.jl:1075
```julia

#4

试试这个


#5

感觉装这个库挺玄学的,昨天我就以管理员身份打开Julia来build ImageMagick,还是失败。我看到你给我找的issue里面说到了以为管理员身份打开会有效,就又试了下,结果装好了:rofl::rofl: