JuliaCrypto / Nettle.jl

Julia wrapper around nettle cryptographic hashing/encryption library providing MD5, SHA1, SHA2 hashing and HMAC functionality, as well as AES encryption/decryption

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problem installing on Windows

simonp0420 opened this issue · comments

After installing Julia 0.3.0-prelease on a 64-bit Windows 7 machine at work, I get the following error when trying to install Nettle:

              _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: http://docs.julialang.org
   _ _   _| |_  __ _   |  Type "help()" to list help topics
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.3.0-prerelease+1570 (2014-02-14 21:07 UTC)
 _/ |\__'_|_|_|\__'_|  |  Commit a6f6461* (16 days old master)
|__/                   |  x86_64-w64-mingw32

julia> Pkg.installed()
Dict{ASCIIString,VersionNumber}()

julia> Pkg.add("Nettle")
INFO: Installing BinDeps v0.2.12
INFO: Installing HTTPClient v0.1.0
INFO: Installing LibCURL v0.1.0
INFO: Installing LibExpat v0.0.3
INFO: Installing Nettle v0.1.3
INFO: Installing URIParser v0.0.1
INFO: Installing URLParse v0.0.0
INFO: Installing WinRPM v0.0.12
INFO: Installing Zlib v0.1.5
INFO: Building Nettle
===============================[ ERROR: Nettle ]================================


"ErrorException(\"Error parsing document : 0\"), mismatched tag, 33, 3, 1061"
while loading C:\Users\simonp\.julia\WinRPM\src\WinRPM.jl, in expression startin
g on line 391
while loading C:\Users\simonp\.julia\Nettle\deps\build.jl, in expression startin
g on line 8

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


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


WARNING: Nettle had build errors.

 - packages with build errors remain installed in C:\Users\simonp\.julia
 - build a package and all its dependencies with `Pkg.build(pkg)`
 - build a single package by running its `deps/build.jl` script

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

INFO: Package database updated

I tried following this with Pkg.update() but Julia reported that no packges needed updating.

@vtjnash any ideas why this would be happening?

clear the WinRPM cache folder perhaps? LibExpat is complaining that it was given invalid XML

I tried removing everything from the WinRPM/cache folder (except .gitignore) and rebuilding Nettle. Still having problems:

               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: http://docs.julialang.org
   _ _   _| |_  __ _   |  Type "help()" to list help topics
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.3.0-prerelease+1570 (2014-02-14 21:07 UTC)
 _/ |\__'_|_|_|\__'_|  |  Commit a6f6461* (16 days old master)
|__/                   |  x86_64-w64-mingw32

julia> Pkg.build("Nettle")
INFO: Building Nettle
WARNING: skipping repodata/repomd.xml, not in cache
WARNING: skipping repodata/repomd.xml, not in cache
INFO: Updating WinRPM package list
INFO: Downloading http://download.opensuse.org/repositories/windows:/mingw:/win3
2/openSUSE_Factory//repodata/repomd.xml
===============================[ ERROR: Nettle ]================================


"ErrorException(\"Error parsing document : 0\"), mismatched tag, 33, 3, 1061"
while loading C:\Users\simonp\.julia\Nettle\deps\build.jl, in expression startin
g on line 35

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


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


WARNING: Nettle had build errors.

 - packages with build errors remain installed in C:\Users\simonp\.julia
 - build a package and all its dependencies with `Pkg.build(pkg)`
 - build a single package by running its `deps/build.jl` script

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

Note that this is a machine at work, behind a firewall. Does that make any difference?

Is the proxy not returning the expected gzip file (check the cache)?

There are no gzipped files in WinRPM's cache directory. Any suggested workarounds?

Should I close this and open an issue on WinRPM?

Right, I forgot they get stored uncompressed. Is it XML descriptions or an HTML proxy error? (I hate proxies)

Sure, move to winrpm -- not a libnettle issue

Closing--moving to WinRPM