Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building CodecZlib.jl on windows requires admin privileges #43

Closed
felipenoris opened this issue Mar 27, 2019 · 7 comments
Closed

Building CodecZlib.jl on windows requires admin privileges #43

felipenoris opened this issue Mar 27, 2019 · 7 comments

Comments

@felipenoris
Copy link

felipenoris commented Mar 27, 2019

This is bad for corporate users. I'll be opening similar issues on affected important packages.

  Building CodecZlib → `D:\Users\FNORO\.julia\packages\CodecZlib\9jDi1\deps\build.log`
┌ Error: Error building `CodecZlib`:
│ ┌ Warning: On Windows, creating file symlinks requires Administrator privileges
│ └ @ Base.Filesystem file.jl:794
│ [ Info: Downloading https://github.com/bicycle1885/ZlibBuilder/releases/download/v1.0.4/Zlib.v1.2.11.x86_64-w64-mingw32.tar.gz to D:\Users\FNORO\.julia\packages\CodecZlib\9jDi1\deps\usr\downloads\Zlib.v1.2.11.x86_64-w64-mingw32.tar.gz...
│ ERROR: LoadError: Could not download https://github.com/bicycle1885/ZlibBuilder/releases/download/v1.0.4/Zlib.v1.2.11.x86_64-w64-mingw32.tar.gz to D:\Users\FNORO\.julia\packages\CodecZlib\9jDi1\deps\usr\downloads\Zlib.v1.2.11.x86_64-w64-mingw32.tar.gz:
│ ErrorException("")
│ Stacktrace:
│  [1] error(::String) at .\error.jl:33
│  [2] #download#93(::Bool, ::Function, ::String, ::String) at D:\Users\FNORO\.julia\packages\BinaryProvider\4F5Hq\src\PlatformEngines.jl:498
│  [3] #download at .\none:0 [inlined]
│  [4] #download_verify#94(::Bool, ::Bool, ::Bool, ::Function, ::String, ::String, ::String) at D:\Users\FNORO\.julia\packages\BinaryProvider\4F5Hq\src\PlatformEngines.jl:567
│  [5] #download_verify at .\none:0 [inlined]
│  [6] #install#133(::Prefix, ::String, ::Bool, ::Bool, ::Bool, ::Function, ::String, ::String) at D:\Users\FNORO\.julia\packages\BinaryProvider\4F5Hq\src\Prefix.jl:314
│  [7] (::getfield(BinaryProvider, Symbol("#kw##install")))(::NamedTuple{(:prefix, :force, :verbose),Tuple{Prefix,Bool,Bool}}, ::typeof(install), ::String, ::String) at .\none:0
│  [8] top-level scope at D:\Users\FNORO\.julia\packages\CodecZlib\9jDi1\deps\build.jl:89
│  [9] include at .\boot.jl:326 [inlined]
│  [10] include_relative(::Module, ::String) at .\loading.jl:1038
│  [11] include(::Module, ::String) at .\sysimg.jl:29
│  [12] include(::String) at .\client.jl:403
│  [13] top-level scope at none:0
│ in expression starting at D:\Users\FNORO\.julia\packages\CodecZlib\9jDi1\deps\build.jl:78
│ Exce��o ao chamar "DownloadFile" com "2" argumento(s): "O servidor remoto retornou um erro: (407) Autentica��o de
│ Proxy Obrigat�ria."
│ No linha:5 caractere:1
│ + $webclient.DownloadFile("https://github.com/bicycle1885/ZlibBuilder/r ...
│ + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
│     + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
│     + FullyQualifiedErrorId : WebException
│
└ @ Pkg.Operations C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.1\Pkg\src\Operations.jl:1075

Ref:
JuliaIO/EzXML.jl#103

@davidanthoff
Copy link

I think that is JuliaPackaging/BinaryProvider.jl#149?

@felipenoris
Copy link
Author

Likely, yes. BinaryBuilder should use hard copies instead of sym links.

@bicycle1885
Copy link
Member

AppVeyor says all green on Windows. So, this does not happen all Windows machines, or AppVeyor uses administrator privileges? https://ci.appveyor.com/project/bicycle1885/codeczlib-jl

@felipenoris
Copy link
Author

@bicycle1885
Copy link
Member

Oh, so AppVeyor seems to use administrator privileges. I have no idea how common it is to use admin privileges on Windows, but I think this is a kind of problem of BinaryProvider.jl (and/or BinaryBuilder.jl). I'll post at Slack to get more attention to this problem.

@bicycle1885
Copy link
Member

bicycle1885 commented Mar 28, 2019

Perhaps, admin privileges have nothing to do with the install error as Elliot said on Slack. Please check your network configuration such as proxy settings.

@KristofferC
Copy link
Member

This just looks like the download fail. Might work better with the newly merged artifact system

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants