# Can't install "MultivariateMoments", error: unable to automatically install "XML2"

**URL:** <https://discourse.julialang.org/t/cant-install-multivariatemoments-error-unable-to-automatically-install-xml2/42623>\
**Category:** General Usage\
**Tags:** package, installation\
**Created:** [July 6, 2020, 5:06pm UTC](https://discourse.julialang.org/t/cant-install-multivariatemoments-error-unable-to-automatically-install-xml2/42623 "2020-07-06T17:06:45Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![aliceee](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@aliceee](https://discourse.julialang.org/u/aliceee)\
**Post date:** [July 6, 2020, 5:06pm UTC](https://discourse.julialang.org/t/cant-install-multivariatemoments-error-unable-to-automatically-install-xml2/42623/1 "2020-07-06T17:06:45Z")

</div>

Hi, I was trying to install the package “MultivariateMoments”.

```julia
import Pkg; Pkg.add("MultivariateMoments")

```

It failed with the following error:

```julia
Unable to automatically install 'XML2' from '/Users/My_Name/.julia/packages/XML2_jll/QkZTc/Artifacts.toml'

```

What should I do to fix this? Thanks in advance!

---

<div class="post-metadata">

**Author:** ![aliceee](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@aliceee](https://discourse.julialang.org/u/aliceee)\
**Post date:** [July 6, 2020, 5:16pm UTC](https://discourse.julialang.org/t/cant-install-multivariatemoments-error-unable-to-automatically-install-xml2/42623/2 "2020-07-06T17:16:41Z")

</div>

I then installed the “DebugArtifacts” package and tried the following:

```julia
using DebugArtifacts
debug_artifact("XML2")

```

However, I’m getting the following error:

```julia
Could not download https://raw.githubusercontent.com/JuliaBinaryWrappers/XML2_jll.jl/master/Artifacts.toml to /var/folders/zh/731yt5nd0373pfdd6pcwn09m0000gn/T/jl_TSW0qm/Artifacts.toml:
ProcessFailedException(Base.Process[Process(`curl -C - '-#' -f -o /var/folders/zh/731yt5nd0373pfdd6pcwn09m0000gn/T/jl_TSW0qm/Artifacts.toml -L https://raw.githubusercontent.com/JuliaBinaryWrappers/XML2_jll.jl/master/Artifacts.toml`, ProcessExited(51))])

```

---

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [July 6, 2020, 5:30pm UTC](https://discourse.julialang.org/t/cant-install-multivariatemoments-error-unable-to-automatically-install-xml2/42623/3 "2020-07-06T17:30:24Z")

</div>

Are you behind a firewall or something like that? it looks like you can’t access GitHub

---

<div class="post-metadata">

**Author:** ![aliceee](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@aliceee](https://discourse.julialang.org/u/aliceee)\
**Post date:** [July 6, 2020, 5:39pm UTC](https://discourse.julialang.org/t/cant-install-multivariatemoments-error-unable-to-automatically-install-xml2/42623/4 "2020-07-06T17:39:33Z")

</div>

I don’t think so. I can access my repositories without any problem. Although, it is very weird that I just ignored the error I got from `debug_artifact("XML2")` and tried again `using MultivariateMoments`. It just worked.

---

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [July 6, 2020, 5:51pm UTC](https://discourse.julialang.org/t/cant-install-multivariatemoments-error-unable-to-automatically-install-xml2/42623/5 "2020-07-06T17:51:30Z")

</div>

Maybe a temporary error? Do you still get the same error when trying to run `debug_artifact`?

---

<div class="post-metadata">

**Author:** ![aliceee](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@aliceee](https://discourse.julialang.org/u/aliceee)\
**Post date:** [July 6, 2020, 6:56pm UTC](https://discourse.julialang.org/t/cant-install-multivariatemoments-error-unable-to-automatically-install-xml2/42623/6 "2020-07-06T18:56:09Z")

</div>

I still get the same error while running d`ebug_artifact("XML2")`…

---

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [July 6, 2020, 7:03pm UTC](https://discourse.julialang.org/t/cant-install-multivariatemoments-error-unable-to-automatically-install-xml2/42623/7 "2020-07-06T19:03:40Z")

</div>

Can you visit [https://raw.githubusercontent.com/JuliaBinaryWrappers/XML2\_jll.jl/master/Artifacts.toml](https://raw.githubusercontent.com/JuliaBinaryWrappers/XML2_jll.jl/master/Artifacts.toml) with your brower?

---

<div class="post-metadata">

**Author:** ![aliceee](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@aliceee](https://discourse.julialang.org/u/aliceee)\
**Post date:** [July 6, 2020, 7:48pm UTC](https://discourse.julialang.org/t/cant-install-multivariatemoments-error-unable-to-automatically-install-xml2/42623/8 "2020-07-06T19:48:43Z")

</div>

Yes, I can view this link. It looks like

```julia
[[XML2]]
arch = "aarch64"
git-tree-sha1 = "4adb90df7937269b13c71622da61692844573464"
libc = "glibc"
os = "linux"

    [[XML2.download]]
    sha256 = "bacd995836fb5c8230ee1641d76faf4a2ddf196382203595694ff909d22f03f7"
    url = "https://github.com/JuliaBinaryWrappers/XML2_jll.jl/releases/download/XML2-v2.9.10+0/XML2.v2.9.10.aarch64-linux-gnu.tar.gz"
[[XML2]]
arch = "aarch64"
git-tree-sha1 = "f4c5b9139bba8533e9e0752f3ba97ce6a6c2f770"
libc = "musl"
os = "linux"
.......

```

---

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [July 6, 2020, 8:46pm UTC](https://discourse.julialang.org/t/cant-install-multivariatemoments-error-unable-to-automatically-install-xml2/42623/9 "2020-07-06T20:46:47Z")

</div>

Ok, looking better to the error message, `curl` here returned 51, which should be an error relative to certificates.

Anyway, glad that you manage to install the package 🙂
