# Plots.jl build error

**URL:** <https://discourse.julialang.org/t/plots-jl-build-error/7096>\
**Category:** New to Julia\
**Tags:** package\
**Created:** [November 16, 2017, 8:00am UTC](https://discourse.julialang.org/t/plots-jl-build-error/7096 "2017-11-16T08:00:50Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![zhangliye](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zhangliye/32/3208_2.png) [@zhangliye](https://discourse.julialang.org/u/zhangliye)\
**Post date:** [November 16, 2017, 8:00am UTC](https://discourse.julialang.org/t/plots-jl-build-error/7096/1 "2017-11-16T08:00:50Z")

</div>

Get error during installing Plots.jl, Julia0.61 Windows 7, 64 Bit, Plots.jl v0.13.1  
The error is as followings.

 ![aa](https://global.discourse-cdn.com/julialang/original/3X/8/b/8b0c6ccd09e5457187e4b7b174c36652b682f933.png)

---

<div class="post-metadata">

**Author:** ![zhangliye](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zhangliye/32/3208_2.png) [@zhangliye](https://discourse.julialang.org/u/zhangliye)\
**Post date:** [November 16, 2017, 8:31am UTC](https://discourse.julialang.org/t/plots-jl-build-error/7096/2 "2017-11-16T08:31:21Z")

</div>

when I use the package. It crashed.

 ![bb](https://global.discourse-cdn.com/julialang/original/3X/b/c/bcd2f1363a856780e40bc2e492c02afcdf3e8116.png)

---

<div class="post-metadata">

**Author:** ![mkborregaard](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkborregaard/32/556_2.png) [@mkborregaard](https://discourse.julialang.org/u/mkborregaard)\
**Post date:** [November 16, 2017, 9:08am UTC](https://discourse.julialang.org/t/plots-jl-build-error/7096/3 "2017-11-16T09:08:29Z")

</div>

Can you try to build again?

---

<div class="post-metadata">

**Author:** ![zhangliye](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zhangliye/32/3208_2.png) [@zhangliye](https://discourse.julialang.org/u/zhangliye)\
**Post date:** [November 16, 2017, 9:14am UTC](https://discourse.julialang.org/t/plots-jl-build-error/7096/4 "2017-11-16T09:14:03Z")

</div>

I tried Pkg.build(“Plots”) again. The error message is the same.  
Thanks for your swift reply!

---

<div class="post-metadata">

**Author:** ![mkborregaard](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkborregaard/32/556_2.png) [@mkborregaard](https://discourse.julialang.org/u/mkborregaard)\
**Post date:** [November 16, 2017, 10:45am UTC](https://discourse.julialang.org/t/plots-jl-build-error/7096/5 "2017-11-16T10:45:47Z")

</div>

could be a connection problem? Can you go to [https://cdn.plot.ly/plotly-latest.min.js](https://cdn.plot.ly/plotly-latest.min.js) on your web browser?  
(you could always download it manually and put it in the folder 🙂 )

---

<div class="post-metadata">

**Author:** ![zhangliye](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zhangliye/32/3208_2.png) [@zhangliye](https://discourse.julialang.org/u/zhangliye)\
**Post date:** [November 17, 2017, 1:56am UTC](https://discourse.julialang.org/t/plots-jl-build-error/7096/6 "2017-11-17T01:56:29Z")

</div>

I can download [https://cdn.plot.ly/plotly-latest.min.js](https://cdn.plot.ly/plotly-latest.min.js)  
Where should I put this file? Thank you.

In fact, I tried run Julia.exe using Administration Right. I also tried to build the package using the internet at home. The error is still the same.  
I think there should be some bug. I also encounter this error in 0.5.

---

<div class="post-metadata">

**Author:** ![zhangliye](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zhangliye/32/3208_2.png) [@zhangliye](https://discourse.julialang.org/u/zhangliye)\
**Post date:** [November 17, 2017, 2:22am UTC](https://discourse.julialang.org/t/plots-jl-build-error/7096/7 "2017-11-17T02:22:15Z")

</div>

Thank you so much, @mkborregaard ! I put .js file in plots/deps/ and can build the Package. However, the when I plot the graph, Julia crashed with runtime error as follows.

 ![a](https://global.discourse-cdn.com/julialang/original/3X/9/1/91cdfe6b8f146931227a6679c6b9f08512660e6f.png)

---

<div class="post-metadata">

**Author:** ![IljaK91](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/iljak91/32/44301_2.png) [@IljaK91](https://discourse.julialang.org/u/IljaK91)\
**Post date:** [November 18, 2017, 9:52am UTC](https://discourse.julialang.org/t/plots-jl-build-error/7096/8 "2017-11-18T09:52:54Z")

</div>

Just for completeness, here as well: include `ENV["MPLBACKEND"]="qt4agg"` before `using Plots`, as there is a problem with the default PyPlot backend.

---

<div class="post-metadata">

**Author:** ![zhangliye](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zhangliye/32/3208_2.png) [@zhangliye](https://discourse.julialang.org/u/zhangliye)\
**Post date:** [November 18, 2017, 4:24pm UTC](https://discourse.julialang.org/t/plots-jl-build-error/7096/9 "2017-11-18T16:24:04Z")

</div>

Thank you so much! This method works.

---

<div class="post-metadata">

**Author:** ![renbro](https://avatars.discourse-cdn.com/v4/letter/r/919ad9/32.png) [@renbro](https://discourse.julialang.org/u/renbro)\
**Post date:** [December 5, 2017, 1:39am UTC](https://discourse.julialang.org/t/plots-jl-build-error/7096/10 "2017-12-05T01:39:24Z")

</div>

@IIjaK91: Do we have to always run the script ENV[“MPLBACKEND”]=“qt4agg” before using Plots. I mean is one time enough?

---

<div class="post-metadata">

**Author:** ![IljaK91](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/iljak91/32/44301_2.png) [@IljaK91](https://discourse.julialang.org/u/IljaK91)\
**Post date:** [December 5, 2017, 12:12pm UTC](https://discourse.julialang.org/t/plots-jl-build-error/7096/11 "2017-12-05T12:12:29Z")

</div>

Yes, if you use the Pyplot Backend, which is the default, I think. So you should have that line every time before you write using Plots.

---

<div class="post-metadata">

**Author:** ![renbro](https://avatars.discourse-cdn.com/v4/letter/r/919ad9/32.png) [@renbro](https://discourse.julialang.org/u/renbro)\
**Post date:** [December 7, 2017, 12:45am UTC](https://discourse.julialang.org/t/plots-jl-build-error/7096/12 "2017-12-07T00:45:02Z")

</div>

Thanks
