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

Error building ZMQ on Windows #90

Closed
AndyGreenwell opened this issue Aug 24, 2015 · 11 comments
Closed

Error building ZMQ on Windows #90

AndyGreenwell opened this issue Aug 24, 2015 · 11 comments

Comments

@AndyGreenwell
Copy link

While attempting to install ZMQ.jl as part of an IJulia installation for a 32-bit Julia 0.3.11 on a 64-bit Windows Server 2012 environment (I have justification for such madness), I am receiving build errors for both Nettle and ZMQ. I have filed a similar issue under Nettle.jl.

Below is the terminal output when attempting to do a Pkg.add("IJulia") as part of a new Julia installation on a new OS installation:


               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: https://docs.julialang.org
   _ _   _| |_  __ _   |  Type "help()" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.3.11 (2015-07-27 06:18 UTC)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |  i686-w64-mingw32

julia> Pkg.add("IJulia")
INFO: Initializing package repository C:\Users\Administrator\.julia\v0.3
INFO: Cloning METADATA from git:https://github.com/JuliaLang/METADATA.jl
INFO: Cloning cache of BinDeps from git:https://github.com/JuliaLang/BinDeps.jl.git
INFO: Cloning cache of Compat from git:https://github.com/JuliaLang/Compat.jl.git
INFO: Cloning cache of IJulia from git:https://github.com/JuliaLang/IJulia.jl.git
INFO: Cloning cache of JSON from git:https://github.com/JuliaLang/JSON.jl.git
INFO: Cloning cache of LibExpat from git:https://github.com/amitmurthy/LibExpat.jl.git

INFO: Cloning cache of Nettle from git:https://github.com/staticfloat/Nettle.jl.git
INFO: Cloning cache of REPLCompletions from git:https://github.com/Keno/REPLCompletion
s.jl.git
INFO: Cloning cache of SHA from git:https://github.com/staticfloat/SHA.jl.git
INFO: Cloning cache of URIParser from git:https://github.com/JuliaWeb/URIParser.jl.git

INFO: Cloning cache of WinRPM from git:https://github.com/JuliaLang/WinRPM.jl.git
INFO: Cloning cache of ZMQ from git:https://github.com/JuliaLang/ZMQ.jl.git
INFO: Cloning cache of Zlib from git:https://github.com/dcjones/Zlib.jl.git
INFO: Installing BinDeps v0.3.15
INFO: Installing Compat v0.6.0
INFO: Installing IJulia v0.2.5
INFO: Installing JSON v0.4.5
INFO: Installing LibExpat v0.0.8
INFO: Installing Nettle v0.1.10
INFO: Installing REPLCompletions v0.0.3
INFO: Installing SHA v0.1.1
INFO: Installing URIParser v0.0.5
INFO: Installing WinRPM v0.1.12
INFO: Installing ZMQ v0.2.0
INFO: Installing Zlib v0.1.8
INFO: Building WinRPM
WARNING: skipping repodata/repomd.xml, not in cache -- call WinRPM.update() to d
ownload
WARNING: skipping repodata/repomd.xml, not in cache -- call WinRPM.update() to d
ownload
INFO: Downloading https://cache.e.ip.saba.us/https://download.opensuse.org/reposi
tories/windows:/mingw:/win32/openSUSE_13.1/repodata/repomd.xml
WARNING: Unknown download failure, error code: 2148270094
WARNING: Retry 1/5 downloading: https://cache.e.ip.saba.us/https://download.opens
use.org/repositories/windows:/mingw:/win32/openSUSE_13.1/repodata/repomd.xml
WARNING: Unknown download failure, error code: 2148270094
WARNING: Retry 2/5 downloading: https://cache.e.ip.saba.us/https://download.opens
use.org/repositories/windows:/mingw:/win32/openSUSE_13.1/repodata/repomd.xml
WARNING: Unknown download failure, error code: 2148270094
WARNING: Retry 3/5 downloading: https://cache.e.ip.saba.us/https://download.opens
use.org/repositories/windows:/mingw:/win32/openSUSE_13.1/repodata/repomd.xml
WARNING: Unknown download failure, error code: 2148270094
WARNING: Retry 4/5 downloading: https://cache.e.ip.saba.us/https://download.opens
use.org/repositories/windows:/mingw:/win32/openSUSE_13.1/repodata/repomd.xml
WARNING: Unknown download failure, error code: 2148270094
WARNING: Retry 5/5 downloading: https://cache.e.ip.saba.us/https://download.opens
use.org/repositories/windows:/mingw:/win32/openSUSE_13.1/repodata/repomd.xml
WARNING: received error 0 while downloading https://cache.e.ip.saba.us/https://do
wnload.opensuse.org/repositories/windows:/mingw:/win32/openSUSE_13.1/repodata/re
pomd.xml
INFO: Downloading https://cache.e.ip.saba.us/https://download.opensuse.org/reposi
tories/windows:/mingw:/win64/openSUSE_13.1/repodata/repomd.xml
WARNING: Unknown download failure, error code: 2148270094
WARNING: Retry 1/5 downloading: https://cache.e.ip.saba.us/https://download.opens
use.org/repositories/windows:/mingw:/win64/openSUSE_13.1/repodata/repomd.xml
WARNING: Unknown download failure, error code: 2148270094
WARNING: Retry 2/5 downloading: https://cache.e.ip.saba.us/https://download.opens
use.org/repositories/windows:/mingw:/win64/openSUSE_13.1/repodata/repomd.xml
WARNING: Unknown download failure, error code: 2148270094
WARNING: Retry 3/5 downloading: https://cache.e.ip.saba.us/https://download.opens
use.org/repositories/windows:/mingw:/win64/openSUSE_13.1/repodata/repomd.xml
WARNING: Unknown download failure, error code: 2148270094
WARNING: Retry 4/5 downloading: https://cache.e.ip.saba.us/https://download.opens
use.org/repositories/windows:/mingw:/win64/openSUSE_13.1/repodata/repomd.xml
WARNING: Unknown download failure, error code: 2148270094
WARNING: Retry 5/5 downloading: https://cache.e.ip.saba.us/https://download.opens
use.org/repositories/windows:/mingw:/win64/openSUSE_13.1/repodata/repomd.xml
WARNING: received error 0 while downloading https://cache.e.ip.saba.us/https://do
wnload.opensuse.org/repositories/windows:/mingw:/win64/openSUSE_13.1/repodata/re
pomd.xml
INFO: Building Nettle
INFO: Updating WinRPM package list
INFO: Downloading https://cache.e.ip.saba.us/https://download.opensuse.org/reposi
tories/windows:/mingw:/win32/openSUSE_13.1/repodata/repomd.xml
WARNING: Unknown download failure, error code: 2148270094
WARNING: Retry 1/5 downloading: https://cache.e.ip.saba.us/https://download.opens
use.org/repositories/windows:/mingw:/win32/openSUSE_13.1/repodata/repomd.xml
WARNING: Unknown download failure, error code: 2148270094
WARNING: Retry 2/5 downloading: https://cache.e.ip.saba.us/https://download.opens
use.org/repositories/windows:/mingw:/win32/openSUSE_13.1/repodata/repomd.xml
WARNING: Unknown download failure, error code: 2148270094
WARNING: Retry 3/5 downloading: https://cache.e.ip.saba.us/https://download.opens
use.org/repositories/windows:/mingw:/win32/openSUSE_13.1/repodata/repomd.xml
WARNING: Unknown download failure, error code: 2148270094
WARNING: Retry 4/5 downloading: https://cache.e.ip.saba.us/https://download.opens
use.org/repositories/windows:/mingw:/win32/openSUSE_13.1/repodata/repomd.xml
WARNING: Unknown download failure, error code: 2148270094
WARNING: Retry 5/5 downloading: https://cache.e.ip.saba.us/https://download.opens
use.org/repositories/windows:/mingw:/win32/openSUSE_13.1/repodata/repomd.xml
WARNING: received error 0 while downloading https://cache.e.ip.saba.us/https://do
wnload.opensuse.org/repositories/windows:/mingw:/win32/openSUSE_13.1/repodata/re
pomd.xml
INFO: Downloading https://cache.e.ip.saba.us/https://download.opensuse.org/reposi
tories/windows:/mingw:/win64/openSUSE_13.1/repodata/repomd.xml
WARNING: Unknown download failure, error code: 2148270094
WARNING: Retry 1/5 downloading: https://cache.e.ip.saba.us/https://download.opens
use.org/repositories/windows:/mingw:/win64/openSUSE_13.1/repodata/repomd.xml
WARNING: Unknown download failure, error code: 2148270094
WARNING: Retry 2/5 downloading: https://cache.e.ip.saba.us/https://download.opens
use.org/repositories/windows:/mingw:/win64/openSUSE_13.1/repodata/repomd.xml
WARNING: Unknown download failure, error code: 2148270094
WARNING: Retry 3/5 downloading: https://cache.e.ip.saba.us/https://download.opens
use.org/repositories/windows:/mingw:/win64/openSUSE_13.1/repodata/repomd.xml
WARNING: Unknown download failure, error code: 2148270094
WARNING: Retry 4/5 downloading: https://cache.e.ip.saba.us/https://download.opens
use.org/repositories/windows:/mingw:/win64/openSUSE_13.1/repodata/repomd.xml
WARNING: Unknown download failure, error code: 2148270094
WARNING: Retry 5/5 downloading: https://cache.e.ip.saba.us/https://download.opens
use.org/repositories/windows:/mingw:/win64/openSUSE_13.1/repodata/repomd.xml
WARNING: received error 0 while downloading https://cache.e.ip.saba.us/https://do
wnload.opensuse.org/repositories/windows:/mingw:/win64/openSUSE_13.1/repodata/re
pomd.xml
===============================[ ERROR: Nettle ]================================


None of the selected providers can install dependency nettle.
Use BinDeps.debug(package_name) to see available providers

while loading C:\Users\Administrator\.julia\v0.3\Nettle\deps\build.jl, in expres
sion starting on line 39

================================================================================

INFO: Building ZMQ
=================================[ ERROR: ZMQ ]=================================


None of the selected providers can install dependency zmq.
Use BinDeps.debug(package_name) to see available providers

while loading C:\Users\Administrator\.julia\v0.3\ZMQ\deps\build.jl, in expressio
n starting on line 23

================================================================================

INFO: Building IJulia
Found IPython version 3.2.0 ... ok.
Creating julia profile in IPython...
Changing KernelManager.kernel_cmd to ["C:\\\\Users\\\\Administrator\\\\AppData\\
\\Local\\\\Julia-0.3.11\\\\bin\\\\julia.exe","-i","-F","C:\\\\Users\\\\Administr
ator\\\\.julia\\\\v0.3\\\\IJulia\\\\src\\\\kernel.jl","{connection_file}"] in ip
ython_config.py...
(Existing IPythonWidget.execute_on_complete_input setting in ipython_qtconsole_c
onfig.py is untouched.)
(Existing FrontendWidget.lexer_class setting in ipython_qtconsole_config.py is u
ntouched.)
(Existing NotebookApp.port setting in ipython_notebook_config.py is untouched.)
(Existing ipynblogo.png file untouched.)
(Existing ipynblogo.svg file untouched.)
(Existing favicon.ico file untouched.)
(Existing custom.js file untouched.)
(Existing julia.js file untouched.)
Writing IJulia kernelspec to C:\Users\Administrator\.ipython\kernels\julia-0.3\k
ernel.json ...
(Existing logo-32x32.png file untouched.)
(Existing logo-64x64.png file untouched.)

================================[ BUILD ERRORS ]================================


WARNING: Nettle and ZMQ had build errors.

 - packages with build errors remain installed in C:\Users\Administrator\.julia\
v0.3
 - build the package(s) and all dependencies with `Pkg.build("Nettle", "ZMQ")`
 - build a single package by running its `deps/build.jl` script

================================================================================

INFO: Package database updated
@yuyichao
Copy link
Contributor

If I read correctly this is a download error?

@yuyichao
Copy link
Contributor

Ah, I see the download issue is already pointed out in the other issue. @tkelman as windows expert and I remember there's some other existing issue about downloading, especially on windows.

@vtjnash
Copy link
Contributor

vtjnash commented Aug 24, 2015

maybe an issue with https://github.com/staticfloat/cache.julialang.org?

0x800C000E : INET_E_SECURITY_PROBLEM : Navigation request has encountered a security issue.
that's not very helpful.

does Base.download("https://cache.e.ip.saba.us/https://download.opens use.org/repositories/windows:/mingw:/win64/openSUSE_13.1/repodata/repomd.xml" or Base.download("https://download.opens use.org/repositories/windows:/mingw:/win64/openSUSE_13.1/repodata/repomd.xml") work?

@vtjnash
Copy link
Contributor

vtjnash commented Aug 24, 2015

does IE consider the certificate of https://cache.e.ip.saba.us/ to be valid?

@AndyGreenwell
Copy link
Author

As the settings for IE in my OS image are at their defaults, IE Enhanced Security Configuration is configured to On for my current user. The IE session did not put up a warning when browsing to https://cache.e.ip.saba.us and I am attaching a screenshot of both the webpage and the associated certificate info viewable from the browser.

certificatescreenshot

@AndyGreenwell
Copy link
Author

Edit: The Base.download commands do not work for me.

julia> Base.download("https://cache.e.ip.saba.us/https://download.opens use.org/r
epositories/windows:/mingw:/win64/openSUSE_13.1/repodata/repomd.xml")
ERROR: automatic download failed (error: 2148270094): https://cache.e.ip.saba.us
/https://download.opens use.org/repositories/windows:/mingw:/win64/openSUSE_13.1/
repodata/repomd.xml
 in error at error.jl:21
 in download at interactiveutil.jl:329
 in download at interactiveutil.jl:336

julia> Base.download("https://download.opens use.org/repositories/windows:/mingw:
/win64/openSUSE_13.1/repodata/repomd.xml")
ERROR: automatic download failed (error: 2148270085): https://download.opens use.
org/repositories/windows:/mingw:/win64/openSUSE_13.1/repodata/repomd.xml
 in error at error.jl:21
 in download at interactiveutil.jl:329
 in download at interactiveutil.jl:336

Update: There was an extraneous space in the URL that I copied out of the browser window to test those commands.

julia> Base.download("https://cache.e.ip.saba.us/https://download.opensuse.org/re
positories/windows:/mingw:/win64/openSUSE_13.1/repodata/repomd.xml")
"C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\julB610.tmp"

julia> Base.download("https://download.opensuse.org/repositories/windows:/mingw:/
win64/openSUSE_13.1/repodata/repomd.xml")
"C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\julE616.tmp"

julia> Base.download("https://cache.e.ip.saba.us/https://download.opensuse.org/re
positories/windows:/mingw:/win32/openSUSE_13.1/repodata/repomd.xml")
"C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\jul682.tmp"

julia> Base.download("https://cache.e.ip.saba.us/https://download.opensuse.org/re
positories/windows:/mingw:/win64/openSUSE_13.1/repodata/repomd.xml")
"C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\julC4D.tmp"

@AndyGreenwell
Copy link
Author

Closing as this problem seemed to be related to the IE Enhanced Security Configuration setting being set to on, so this was essentially a firewall issue.

@tkelman
Copy link
Contributor

tkelman commented Aug 24, 2015

This is probably a duplicate of JuliaPackaging/WinRPM.jl#47 - maybe we could turn the caching back off if the certificates are giving people problems (@staticfloat anything we could do about that?), but without the caching the opensuse mirrors would occasionally be down in an annoyingly geographically-dependent way.

@staticfloat
Copy link
Contributor

I don't think there is anything wrong with the certificates; this is something special that is induced by Windows Server wanting to keep as tight a lock as possible on internet connections. @AndyGreenwell am I correct in thinking that you've sorted out this problem? If possible, I'd like to get things working for you before closing the issue.

@tkelman
Copy link
Contributor

tkelman commented Aug 24, 2015

(let's move this to JuliaPackaging/WinRPM.jl#47)

@AndyGreenwell
Copy link
Author

Whenever I was able to turn off Internet Explorer Enhanced Security Configuration appropriately, I did not have an issue with downloading these files, and then installing and building Nettle.jl and ZMQ.jl on my machine.

I just spent a bit of time building up a server on AWS to install this configuration, and for the Administrator account, once the IE ESC was disabled, the installation went smoothly for me. On non-Administrator accounts, or for accounts that I created later and then gave Administrative privileges, the IE ESC setting was still acting as though it was enabled, even after I disabled the setting in the Server Manager and in the Registry. Consequently, for those other accounts on that server that were not named "Administrator", I was not able to install either Nettle.jl or ZMQ.jl. That seems to be a Windows issue more than a Julia issue.

I will work on performing the tests that @tkelman suggests in JuliaPackaging/WinRPM.jl#47

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

5 participants