# Problem installing Plots.jl (a FFMPEG issue)

**URL:** <https://discourse.julialang.org/t/problem-installing-plots-jl-a-ffmpeg-issue/28766>\
**Category:** New to Julia\
**Tags:** package\
**Created:** [September 14, 2019, 7:30pm UTC](https://discourse.julialang.org/t/problem-installing-plots-jl-a-ffmpeg-issue/28766 "2019-09-14T19:30:04Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![sdanisch](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sdanisch/32/1406_2.png) [@sdanisch](https://discourse.julialang.org/u/sdanisch)\
**Post date:** [September 26, 2019, 1:56pm UTC](https://discourse.julialang.org/t/problem-installing-plots-jl-a-ffmpeg-issue/28766/22 "2019-09-26T13:56:44Z")

</div>

Hmpf… Can you try master? That should improve your problem, but it should, in theory, still use the same download method for the actual binaries… But who knows, maybe it’s smarter with that, or it actually manages to pick up the system FFMPEG!

---

<div class="post-metadata">

**Author:** ![BeastyBlacksmith](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/beastyblacksmith/32/4741_2.png) [@BeastyBlacksmith](https://discourse.julialang.org/u/BeastyBlacksmith)\
**Post date:** [September 26, 2019, 2:00pm UTC](https://discourse.julialang.org/t/problem-installing-plots-jl-a-ffmpeg-issue/28766/23 "2019-09-26T14:00:31Z")

</div>

That does not help. I also tried manually downloading the files and putting them in the deps folder, but it still tries do download them (at least the `.tar` archive, it picking up the `.jl` file).

---

<div class="post-metadata">

**Author:** ![sdanisch](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sdanisch/32/1406_2.png) [@sdanisch](https://discourse.julialang.org/u/sdanisch)\
**Post date:** [September 26, 2019, 2:02pm UTC](https://discourse.julialang.org/t/problem-installing-plots-jl-a-ffmpeg-issue/28766/24 "2019-09-26T14:02:00Z")

</div>

Does it error in the same place, or later when trying to download the binaries?

---

<div class="post-metadata">

**Author:** ![BeastyBlacksmith](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/beastyblacksmith/32/4741_2.png) [@BeastyBlacksmith](https://discourse.julialang.org/u/BeastyBlacksmith)\
**Post date:** [September 26, 2019, 4:20pm UTC](https://discourse.julialang.org/t/problem-installing-plots-jl-a-ffmpeg-issue/28766/25 "2019-09-26T16:20:23Z")

</div>

That was a long journey… it turned out that there was a libcurl4.5.0 in the lib folder of my julia installation and after deleting this everything was fine

---

<div class="post-metadata">

**Author:** ![aerdely](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/aerdely/32/37506_2.png) [@aerdely](https://discourse.julialang.org/u/aerdely)\
**Post date:** [October 5, 2019, 5:39pm UTC](https://discourse.julialang.org/t/problem-installing-plots-jl-a-ffmpeg-issue/28766/26 "2019-10-05T17:39:37Z")

</div>

You say it is a little unusual that my Julia installation is using `C:\WINDOWS\System32\curl.exe` but checking the Julia code for `https://github.com/JuliaLang/julia/blob/master/base/download.jl` it seems that it is explicitly pointing to `C:\WINDOWS\System32\curl.exe` in line 29. I have already checked my `powersehell` and `curl` and they appear to work fine. I also tried the same procedure in 5 different computers with Windows (laptops, desktops and a workstation), and in ALL of them I get the same error. 😢

---

<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:** [October 5, 2019, 6:33pm UTC](https://discourse.julialang.org/t/problem-installing-plots-jl-a-ffmpeg-issue/28766/27 "2019-10-05T18:33:05Z")

</div>

What does `Base.find_curl()` return for you?

If it’s something different from `nothing`, let’s try to temporarily override it to use powershell instead: in the REPL, add the following method definition

```julia
Base.find_curl() = nothing

```

and try installing/building `FFMPEG` again.

---

<div class="post-metadata">

**Author:** ![aerdely](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/aerdely/32/37506_2.png) [@aerdely](https://discourse.julialang.org/u/aerdely)\
**Post date:** [October 5, 2019, 8:16pm UTC](https://discourse.julialang.org/t/problem-installing-plots-jl-a-ffmpeg-issue/28766/28 "2019-10-05T20:16:38Z")

</div>

I get:

```julia
julia> Base.find_curl()
"C:\\WINDOWS\\System32\\curl.exe"

```

After doing:

```julia
Base.find_curl() = nothing

```

I get a problem again:

 ![curl2](https://global.discourse-cdn.com/julialang/original/3X/0/9/09522d7d544d418974e746bf6a20f363b59bcdb6.png)

---

<div class="post-metadata">

**Author:** ![aerdely](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/aerdely/32/37506_2.png) [@aerdely](https://discourse.julialang.org/u/aerdely)\
**Post date:** [October 5, 2019, 9:22pm UTC](https://discourse.julialang.org/t/problem-installing-plots-jl-a-ffmpeg-issue/28766/29 "2019-10-05T21:22:12Z")

</div>

I also downloaded and installed the latest version of `curl.exe` and tried:

```julia
Base.find_curl() = "C:\\curl\\curl.exe"

```

but got exactly the same error message. I checked https://github.com/JuliaLang/julia/blob/master/base/download.jl  
and in lines 29-30 I get the impression that `download` will always look for `C:\\WINDOWS\\System32\\curl.exe` no matter what 😢

---

<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:** [October 5, 2019, 9:30pm UTC](https://discourse.julialang.org/t/problem-installing-plots-jl-a-ffmpeg-issue/28766/30 "2019-10-05T21:30:21Z")

</div>

This looks like a CURL problem, there is an error message about schannel

---

<div class="post-metadata">

**Author:** ![aerdely](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/aerdely/32/37506_2.png) [@aerdely](https://discourse.julialang.org/u/aerdely)\
**Post date:** [October 5, 2019, 9:32pm UTC](https://discourse.julialang.org/t/problem-installing-plots-jl-a-ffmpeg-issue/28766/31 "2019-10-05T21:32:13Z")

</div>

What alternative do I have, then?

---

<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:** [October 5, 2019, 9:35pm UTC](https://discourse.julialang.org/t/problem-installing-plots-jl-a-ffmpeg-issue/28766/32 "2019-10-05T21:35:13Z")

</div>

1. Google the error and try to fix it (being a screenshot it’s not particularly easy for me to google it for you)
2. Try renaming `C:\WINDOWS\System32\curl.exe` to something else, so that Julia will not find it and fallback to PowerShell. If you’re lucky, that may work better. if you’re unlucky, you’ll have other problems to fix

---

<div class="post-metadata">

**Author:** ![aerdely](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/aerdely/32/37506_2.png) [@aerdely](https://discourse.julialang.org/u/aerdely)\
**Post date:** [October 5, 2019, 10:46pm UTC](https://discourse.julialang.org/t/problem-installing-plots-jl-a-ffmpeg-issue/28766/33 "2019-10-05T22:46:23Z")

</div>

Thanks for your time. I’ve done my best, but it seems to me that I will end going back to R, as a statistician and non computer specialist, to deal with this kind of issues is hard: “come for the syntax, stay for the speed, and run away if you are not a computer professional” 😢

---

<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:** [October 5, 2019, 11:18pm UTC](https://discourse.julialang.org/t/problem-installing-plots-jl-a-ffmpeg-issue/28766/34 "2019-10-05T23:18:04Z")

</div>

I’m sorry to hear this, I hope you’ll reconsider your decision in the near future.

I just want to point out that the issue is not due to you not being a computer professional, but to the fact that it’s incredibly hard to find a reliable tool to download files from the Internet. Ideally, downloading a file should be something transparent for the user, I’m confident that a solution will be found soon.

---

<div class="post-metadata">

**Author:** ![aerdely](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/aerdely/32/37506_2.png) [@aerdely](https://discourse.julialang.org/u/aerdely)\
**Post date:** [October 5, 2019, 11:50pm UTC](https://discourse.julialang.org/t/problem-installing-plots-jl-a-ffmpeg-issue/28766/35 "2019-10-05T23:50:56Z")

</div>

I have been using R for more than 20 years, and NEVER had this kind of issues downloading packages in R, neither security problems. Probably I should wait a few more years to try Julia again, I thought that after a 1.0 version of Julia was the right moment for a statistician to jump into it. My mistake 😢

---

<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:** [October 6, 2019, 1:24am UTC](https://discourse.julialang.org/t/problem-installing-plots-jl-a-ffmpeg-issue/28766/36 "2019-10-06T01:24:40Z")

</div>

I see that you work at UNAM, maybe a chat with @dpsanders will make you change your mind 🙂

---

<div class="post-metadata">

**Author:** ![aerdely](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/aerdely/32/37506_2.png) [@aerdely](https://discourse.julialang.org/u/aerdely)\
**Post date:** [October 6, 2019, 5:45am UTC](https://discourse.julialang.org/t/problem-installing-plots-jl-a-ffmpeg-issue/28766/37 "2019-10-06T05:45:37Z")

</div>

Good tip! 😃👍 I’ll get in touch with him. Thanks a lot!

---

<div class="post-metadata">

**Author:** ![aerdely](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/aerdely/32/37506_2.png) [@aerdely](https://discourse.julialang.org/u/aerdely)\
**Post date:** [October 6, 2019, 5:09pm UTC](https://discourse.julialang.org/t/problem-installing-plots-jl-a-ffmpeg-issue/28766/38 "2019-10-06T17:09:47Z")

</div>

I was finally able to precompile Plots through:

```julia
julia> 
(v1.2) pkg> add https://github.com/giordano/FFMPEG.jl#tmp
   Cloning git-repo `https://github.com/giordano/FFMPEG.jl`
  Updating git-repo `https://github.com/giordano/FFMPEG.jl`
 Resolving package versions...
  Updating `C:\Users\aerde\.juliapro\JuliaPro_v1.2.0-1\environments\v1.2\Project.toml`
  [c87230d0] ↑ FFMPEG v0.2.2 ⇒ v0.2.3 #tmp (https://github.com/giordano/FFMPEG.jl)
  Updating `C:\Users\aerde\.juliapro\JuliaPro_v1.2.0-1\environments\v1.2\Manifest.toml`
  [c87230d0] ↑ FFMPEG v0.2.2 ⇒ v0.2.3 #tmp (https://github.com/giordano/FFMPEG.jl)
  Building FFMPEG → `C:\Users\aerde\.juliapro\JuliaPro_v1.2.0-1\packages\FFMPEG\Q8BJv\deps\build.log`

(v1.2) pkg> 

julia> using Plots
[Info: Precompiling Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80]

```

But why one has to do this sort of things to make things work for such a simple task as installing a package? So your personal fork is more reliable than Julia’s `https://github.com/JuliaIO/FFMPEG.jl`?

---

<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:** [October 6, 2019, 5:18pm UTC](https://discourse.julialang.org/t/problem-installing-plots-jl-a-ffmpeg-issue/28766/39 "2019-10-06T17:18:17Z")

</div>

> [@aerdely](#):
>
> But why one has to do this sort of things to make things work for such a simple task as installing a package?

Because this is a new way to provide binaries and we’re rounding off the rough edges. The problem with FFMPEG in particular is quite unfortunate, as it wasn’t initially caught by the continuous integration service that we use (AppVeyor) and the Windows installation on Travis is incomplete and broken for use with FFMPEG, thus unreliable.

> [@aerdely](#):
>
> So your personal fork is more reliable than Julia’s `https://github.com/JuliaIO/FFMPEG.jl` ?

The fix will go in the official `FFMPEG.jl` package in the next days. I made the fork to quickly test a possible fix that I found 🙂

---

<div class="post-metadata">

**Author:** ![aerdely](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/aerdely/32/37506_2.png) [@aerdely](https://discourse.julialang.org/u/aerdely)\
**Post date:** [October 6, 2019, 5:23pm UTC](https://discourse.julialang.org/t/problem-installing-plots-jl-a-ffmpeg-issue/28766/40 "2019-10-06T17:23:04Z")

</div>

Thanks a lot for your help and time, I really appreciate it 😃 👍

---

<div class="post-metadata">

**Author:** ![aramirezreyes](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/aramirezreyes/32/42573_2.png) [@aramirezreyes](https://discourse.julialang.org/u/aramirezreyes)\
**Post date:** [October 7, 2019, 3:13pm UTC](https://discourse.julialang.org/t/problem-installing-plots-jl-a-ffmpeg-issue/28766/41 "2019-10-07T15:13:14Z")

</div>

Would it be a good idea to take a look how is R doing this in windows reliably?

[Previous page](https://discourse.julialang.org/t/problem-installing-plots-jl-a-ffmpeg-issue/28766.md?page=1)

[Next page](https://discourse.julialang.org/t/problem-installing-plots-jl-a-ffmpeg-issue/28766.md?page=3)
