# Pkg.update() seems to have broken my Plots install

**URL:** <https://discourse.julialang.org/t/pkg-update-seems-to-have-broken-my-plots-install/2050>\
**Category:** Visualization\
**Tags:** plotting\
**Created:** [February 12, 2017, 12:55am UTC](https://discourse.julialang.org/t/pkg-update-seems-to-have-broken-my-plots-install/2050 "2017-02-12T00:55:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![purplishrock](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/purplishrock/32/13451_2.png) [@purplishrock](https://discourse.julialang.org/u/purplishrock)\
**Post date:** [February 12, 2017, 12:55am UTC](https://discourse.julialang.org/t/pkg-update-seems-to-have-broken-my-plots-install/2050/1 "2017-02-12T00:55:36Z")

</div>

Given the trouble i was having with pyplot i decided to try and intall GR  
it did this:

```julia
INFO: Precompiling module GR.
WARNING: Module Compat with uuid 3037559065285 is missing from the cache.
This may mean module Compat does not support precompilation but is imported by a module that does.
ERROR: LoadError: Declaring __precompile__ (false) is not allowed in files that are being precompiled.
 in require(::Symbol) at ./loading.jl:385
 in include_from_node1(::String) at ./loading.jl:488
 in macro expansion; at ./none:2 [inlined]
 in anonymous at ./<missing>:?
 in eval(::Module, ::Any) at ./boot.jl:234
 in process_options(::Base.JLOptions) at ./client.jl:239
 in _start() at ./client.jl:318
while loading /home/nfs4/briand/.julia/v0.5/GR/src/GR.jl, in expression starting on line 5
WARNING: Couldn't initialize gr. (might need to install it?)
INFO: To do a standard install of gr, copy and run this:

Pkg.add("GR")
Pkg.build("GR")

```

so i did and now GR is downloading the same linux pre-complied binary it did the first time i tried to add it.

Alll of this seems to have started after I did a Pkg.update.  
Should I just kill the package directory and start over ?  
No matter what the language, package handling seems to be very fragile.

---

<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 12, 2017, 2:24am UTC](https://discourse.julialang.org/t/pkg-update-seems-to-have-broken-my-plots-install/2050/2 "2017-02-12T02:24:48Z")

</div>

This is a known issue due to precompilation that can come up. A quick fix is to delete your `~/.julia/lib` folder (contains the precompilation caches).

---

<div class="post-metadata">

**Author:** ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Post date:** [February 12, 2017, 3:02am UTC](https://discourse.julialang.org/t/pkg-update-seems-to-have-broken-my-plots-install/2050/3 "2017-02-12T03:02:47Z")

</div>

Usually just restarting Julia fixes this.

---

<div class="post-metadata">

**Author:** ![purplishrock](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/purplishrock/32/13451_2.png) [@purplishrock](https://discourse.julialang.org/u/purplishrock)\
**Post date:** [February 12, 2017, 5:00am UTC](https://discourse.julialang.org/t/pkg-update-seems-to-have-broken-my-plots-install/2050/4 "2017-02-12T05:00:02Z")

</div>

restarting julia definitely didn’t fix it.  
i deleted everything in .julia and started over.  
edit: that did the trick.

---

<div class="post-metadata">

**Author:** ![twadleigh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/twadleigh/32/22778_2.png) [@twadleigh](https://discourse.julialang.org/u/twadleigh)\
**Post date:** [July 13, 2017, 9:31pm UTC](https://discourse.julialang.org/t/pkg-update-seems-to-have-broken-my-plots-install/2050/5 "2017-07-13T21:31:06Z")

</div>

I ran into this issue this week. My special wrinkle: I have `JULIA_PKGDIR` set to point to a non-default location (a network share, in fact). Deleting the `lib/v0.6` directories in both the usual place and under the directory specifed by `JULIA_PKGDIR` and restarting was insufficient to fix things for me. The extra tweak I made that got things to work was to prepend the `<my_pkgdir>/lib/v0.6` path to `Base.LOAD_CACHE_PATH` and then rebuild the failing packages.
