# Error :Pkg.add("WinRPM")

**URL:** <https://discourse.julialang.org/t/error-pkg-add-winrpm/1900>\
**Category:** General Usage\
**Created:** [February 4, 2017, 2:58am UTC](https://discourse.julialang.org/t/error-pkg-add-winrpm/1900 "2017-02-04T02:58:57Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![songroom2016](https://avatars.discourse-cdn.com/v4/letter/s/71c47a/32.png) [@songroom2016](https://discourse.julialang.org/u/songroom2016)\
**Post date:** [February 4, 2017, 2:58am UTC](https://discourse.julialang.org/t/error-pkg-add-winrpm/1900/1 "2017-02-04T02:58:57Z")

</div>

```julia
julia> Pkg.add("WinRPM")
INFO: Cloning cache of BinDeps from https://github.com/JuliaLang/BinDeps.jl.git
INFO: Cloning cache of BufferedStreams from https://github.com/BioJulia/BufferedStreams.jl.git
INFO: Cloning cache of LibExpat from https://github.com/JuliaIO/LibExpat.jl.git
INFO: Cloning cache of Libz from https://github.com/BioJulia/Libz.jl.git
INFO: Cloning cache of SHA from https://github.com/staticfloat/SHA.jl.git
INFO: Cloning cache of URIParser from https://github.com/JuliaWeb/URIParser.jl.git
INFO: Cloning cache of WinRPM from https://github.com/JuliaPackaging/WinRPM.jl.git
INFO: Installing BinDeps v0.4.5
INFO: Installing BufferedStreams v0.2.3
INFO: Installing LibExpat v0.2.4
INFO: Installing Libz v0.2.2
INFO: Installing SHA v0.3.0
INFO: Installing URIParser v0.1.8
INFO: Installing WinRPM v0.2.3
INFO: Building WinRPM
WARNING: skipping repodata/repomd.xml, not in cache -- call WinRPM.update() to download
WARNING: skipping repodata/repomd.xml, not in cache -- call WinRPM.update() to download
INFO: Downloading https://cache.julialang.org/http://download.opensuse.org/repositories/windows:/mingw:/win32/openSUSE_42.2/repodata/repomd.xml
WARNING: Unknown download failure, error code: 2148270088
WARNING: Retry 1/5 downloading: https://cache.julialang.org/http://download.opensuse.org/repositories/windows:/mingw:/win32/openSUSE_42.2/repodata/repomd.xml
WARNING: Unknown download failure, error code: 2148270088
WARNING: Retry 2/5 downloading: https://cache.julialang.org/http://download.opensuse.org/repositories/windows:/mingw:/win32/openSUSE_42.2/repodata/repomd.xml
WARNING: Unknown download failure, error code: 2148270088
WARNING: Retry 3/5 downloading: https://cache.julialang.org/http://download.opensuse.org/repositories/windows:/mingw:/win32/openSUSE_42.2/repodata/repomd.xml
WARNING: Unknown download failure, error code: 2148270088
WARNING: Retry 4/5 downloading: https://cache.julialang.org/http://download.opensuse.org/repositories/windows:/mingw:/win32/openSUSE_42.2/repodata/repomd.xml
WARNING: Unknown download failure, error code: 2148270088
WARNING: Retry 5/5 downloading: https://cache.julialang.org/http://download.opensuse.org/repositories/windows:/mingw:/win32/openSUSE_42.2/repodata/repomd.xml
WARNING: received error 0 while downloading https://cache.julialang.org/http://download.opensuse.org/repositories/windows:/mingw:/win32/openSUSE_42.2/repodata/repomd.xml
INFO: Downloading https://cache.julialang.org/http://download.opensuse.org/repositories/windows:/mingw:/win64/openSUSE_42.2/repodata/repomd.xml
WARNING: Unknown download failure, error code: 2148270088
WARNING: Retry 1/5 downloading: https://cache.julialang.org/http://download.opensuse.org/repositories/windows:/mingw:/win64/openSUSE_42.2/repodata/repomd.xml
WARNING: Unknown download failure, error code: 2148270088
WARNING: Retry 2/5 downloading: https://cache.julialang.org/http://download.opensuse.org/repositories/windows:/mingw:/win64/openSUSE_42.2/repodata/repomd.xml
WARNING: Unknown download failure, error code: 2148270088
WARNING: Retry 3/5 downloading: https://cache.julialang.org/http://download.opensuse.org/repositories/windows:/mingw:/win64/openSUSE_42.2/repodata/repomd.xml
INFO: Downloading https://cache.julialang.org/http://download.opensuse.org/repositories/windows:/mingw:/win64/openSUSE_42.2/repodata/733574dd77bf5f28e90f943711332a4a872b4df0dfbabe93ef5b5ca66671dac2-primary.xml.gz
INFO: Package database updated

```

```julia
julia> versioninfo()
Julia Version 0.6.0-dev.2511
Commit e0ab6a8* (2017-02-01 19:43 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
  LAPACK: libopenblas64_
  LIBM: libopenlibm
  LLVM: libLLVM-3.9.1 (ORCJIT, skylake)

```

---

<div class="post-metadata">

**Author:** ![ihnorton](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ihnorton/32/26_2.png) [@ihnorton](https://discourse.julialang.org/u/ihnorton)\
**Post date:** [February 4, 2017, 5:16am UTC](https://discourse.julialang.org/t/error-pkg-add-winrpm/1900/2 "2017-02-04T05:16:47Z")

</div>

The current release version is 0.5, please try that first.

If that doesn’t work, see [https://github.com/JuliaPackaging/WinRPM.jl/issues/80](https://github.com/JuliaPackaging/WinRPM.jl/issues/80) (likely a certificate issue, proxy issue).

---

<div class="post-metadata">

**Author:** ![songroom2016](https://avatars.discourse-cdn.com/v4/letter/s/71c47a/32.png) [@songroom2016](https://discourse.julialang.org/u/songroom2016)\
**Post date:** [February 4, 2017, 12:45pm UTC](https://discourse.julialang.org/t/error-pkg-add-winrpm/1900/3 "2017-02-04T12:45:57Z")

</div>

how to solve this problem in 0.6?

---

<div class="post-metadata">

**Author:** ![ihnorton](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ihnorton/32/26_2.png) [@ihnorton](https://discourse.julialang.org/u/ihnorton)\
**Post date:** [February 4, 2017, 1:14pm UTC](https://discourse.julialang.org/t/error-pkg-add-winrpm/1900/4 "2017-02-04T13:14:46Z")

</div>

Does 0.5 work? That is useful information for understanding the problem.

---

<div class="post-metadata">

**Author:** ![songroom2016](https://avatars.discourse-cdn.com/v4/letter/s/71c47a/32.png) [@songroom2016](https://discourse.julialang.org/u/songroom2016)\
**Post date:** [February 12, 2017, 1:57am UTC](https://discourse.julialang.org/t/error-pkg-add-winrpm/1900/5 "2017-02-12T01:57:24Z")

</div>

it works in 0.5, but not in 0.6

---

<div class="post-metadata">

**Author:** ![xgdgsc](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/xgdgsc/32/608_2.png) [@xgdgsc](https://discourse.julialang.org/u/xgdgsc)\
**Post date:** [February 15, 2017, 2:09am UTC](https://discourse.julialang.org/t/error-pkg-add-winrpm/1900/6 "2017-02-15T02:09:24Z")

</div>

It doesn’ t work for me in 0.5.

---

<div class="post-metadata">

**Author:** ![ChrisRackauckas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chrisrackauckas/32/77_2.png) [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Post date:** [February 15, 2017, 3:17am UTC](https://discourse.julialang.org/t/error-pkg-add-winrpm/1900/7 "2017-02-15T03:17:21Z")

</div>

> [@songroom2016](#):
>
> it works in 0.5, but not in 0.6

From: [Download Julia](http://julialang.org/downloads/)

> The nightly builds are for developer previews and not intended for normal use. You can expect many packages not to work with this version. Most users are advised to use the latest official release version of Julia, above.

That said, here’s the issue to track if you want to work on it:

> <https://github.com/JuliaPackaging/WinRPM.jl/issues/88>
>
> \`\`\`
> C:\\Users\\s2sajs\>C:\\cygwin64\\home\\s2sajs\\julia-master\\usr\\bin\\julia.exe
> … \_
> \_ \_ \_(\_)\_ | A fresh approach to technical computing
> (\_) | (\_) (\_) | Documentation: http://docs.julialang.org
> \_ \_ \_| |\_ \_\_ \_ | Type "?help" for help.
> | | | | | | |/ \_\` | |
> | | |\_| | | | (\_| | | Version 0.6.0-dev.1671 (2016-12-23 05:10 UTC)
> \_/ |\\\_\_'\_|\_|\_|\\\_\_'\_| | Commit 44d7677 (0 days old master)
> |\_\_/ | x86\_64-w64-mingw32
> 
> julia\> Pkg.add("WinRPM")
> INFO: Nothing to be done
> 
> julia\> Pkg.build("WinRPM")
> INFO: Building WinRPM
> ===============================\[ERROR: WinRPM \]================================
> 
> 
> LoadError: LoadError: LoadError: LoadError: syntax: expected identifier after "const"
> while loading C:\\Users\\s2sajs\\.julia\\v0.6\\LibExpat\\src\\lX\_common\_h.jl, in expression starting on line 14
> while loading C:\\Users\\s2sajs\\.julia\\v0.6\\LibExpat\\src\\LibExpat.jl, in expression starting on line 13
> while loading C:\\Users\\s2sajs\\.julia\\v0.6\\WinRPM\\src\\WinRPM.jl, in expression starting on line 11
> while loading C:\\Users\\s2sajs\\.julia\\v0.6\\WinRPM\\deps\\build.jl, in expression starting on line 1
> 
> ================================================================================
> 
> 
> ================================\[BUILD ERRORS \]================================
> 
> 
> WARNING: WinRPM had build errors.
> 
> - packages with build errors remain installed in C:\\Users\\s2sajs\\.julia\\v0.6
> - build the package(s) and all dependencies with \`Pkg.build("WinRPM")\`
> - build a single package by running its \`deps/build.jl\` script
> 
> ================================================================================
> \`\`\`
