# Nettle Fail to Build

**URL:** https://discourse.julialang.org/t/nettle-fail-to-build/4333
**Category:** General Usage
**Tags:** package, pyplot, pkg, linux
**Created:** [June 18, 2017, 3:07am UTC](https://discourse.julialang.org/t/nettle-fail-to-build/4333 "2017-06-18T03:07:08Z")
**Posts on this page:** 4
**Page:** 2

<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: [June 19, 2017, 5:20pm UTC](https://discourse.julialang.org/t/nettle-fail-to-build/4333/21 "2017-06-19T17:20:40Z")

</div>

That’s Pkg/libgit trying to avoid over-writing your local changes. You can use the command line git to run `git stash`, and then run the checkout command again. (I’m not aware of a way to do that in Pkg/libgit2 right now).

---

<div class="post-metadata">

### Author: ![nguzman](https://avatars.discourse-cdn.com/v4/letter/n/f08c70/32.png) [@nguzman](https://discourse.julialang.org/u/nguzman)
#### Post date: [June 19, 2017, 5:59pm UTC](https://discourse.julialang.org/t/nettle-fail-to-build/4333/22 "2017-06-19T17:59:43Z")

</div>

Ran `git stash` in the `Cairo` directory successfully, and then ran the `Pkg.checkout("Cairo")` again. Still getting the exact same errors errors when I run `Pkg.test("Cairo")` though. Still getting the same errors with `Plots`. Im beginning to think I should just delete the Julia directory and start from a fresh distribution.

---

<div class="post-metadata">

### Author: ![nguzman](https://avatars.discourse-cdn.com/v4/letter/n/f08c70/32.png) [@nguzman](https://discourse.julialang.org/u/nguzman)
#### Post date: [June 19, 2017, 6:03pm UTC](https://discourse.julialang.org/t/nettle-fail-to-build/4333/23 "2017-06-19T18:03:59Z")

</div>

I rescind my last comment; after starting a new Julia session, and entering

```julia
Using Cairo
Using Plots
pyplot( )

```

and it worked perfectly. Cairo also passed all tests without error when I ran

`Pkg.test("Cairo")`

Thank you so much, this is a huge relief. I really appreciate your time.

---

<div class="post-metadata">

### Author: ![lobingera](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lobingera/32/211_2.png) [@lobingera](https://discourse.julialang.org/u/lobingera)
#### Post date: [June 20, 2017, 4:52pm UTC](https://discourse.julialang.org/t/nettle-fail-to-build/4333/24 "2017-06-20T16:52:24Z")

</div>

@nguzman

So, just to confirm: You run successfully Pkg.test(“Cairo”) on Cairo.jl master (Pkg.checkout) without changing the libcairo version?

[Previous page](https://discourse.julialang.org/t/nettle-fail-to-build/4333.md?page=1)
