# Problems Compiling on Windows

**URL:** <https://discourse.pijul.org/t/problems-compiling-on-windows/337>\
**Category:** Uncategorized\
**Created:** [May 11, 2019, 5:07am UTC](https://discourse.pijul.org/t/problems-compiling-on-windows/337 "2019-05-11T05:07:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![krixano](https://avatars.discourse-cdn.com/v4/letter/k/f1d935/32.png) [@krixano](https://discourse.pijul.org/u/krixano)\
**Post date:** [May 11, 2019, 5:07am UTC](https://discourse.pijul.org/t/problems-compiling-on-windows/337/1 "2019-05-11T05:07:56Z")

</div>

Ok… so, got openssl compiled through vcpkg. Got libsodium downloaded. Set the OPENSSL\_DIR and SODIUM\_LIB\_DIR environment variables, and started compiling pijul, which got pretty far … only to need nettle at the very end.

There doesn’t seem to be instructions for nettle for Windows.  
Also, you guys used to release Windows binaries (up to version 0.11), but it seems you aren’t anymore? It’d be useful if you could continue this, or at least provide instructions to compile on Windows.

---

<div class="post-metadata">

**Author:** ![nick.mellor](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.pijul.org/nick.mellor/32/194_2.png) [@nick.mellor](https://discourse.pijul.org/u/nick.mellor)\
**Post date:** [August 1, 2019, 6:49am UTC](https://discourse.pijul.org/t/problems-compiling-on-windows/337/2 "2019-08-01T06:49:18Z")

</div>

Agree, I’m in the same boat. I tried all sorts of things with Nettle and ran out of time.

I’m willing to write up instructions for building Pijul on Windows but I would appreciate some pointers on the Nettle step-- which may well be the final stretch.

---

<div class="post-metadata">

**Author:** ![pmeunier](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.pijul.org/pmeunier/32/4_2.png) [@pmeunier](https://discourse.pijul.org/u/pmeunier)\
**Post date:** [August 1, 2019, 7:38am UTC](https://discourse.pijul.org/t/problems-compiling-on-windows/337/3 "2019-08-01T07:38:47Z")

</div>

> [@nick.mellor](#):
>
> I’m willing to write up instructions for building Pijul on Windows

🤩

I believe Pijul 0.12.2 is easier to build, including on Windows. In particular nettle was updated.

---

<div class="post-metadata">

**Author:** ![FrankDMartinez](https://avatars.discourse-cdn.com/v4/letter/f/3d9bf3/32.png) [@FrankDMartinez](https://discourse.pijul.org/u/FrankDMartinez)\
**Post date:** [December 16, 2020, 5:16pm UTC](https://discourse.pijul.org/t/problems-compiling-on-windows/337/4 "2020-12-16T17:16:44Z")

</div>

Hi, Nick! I know this is a year and a half later but did you ever write up those instructions?

---

<div class="post-metadata">

**Author:** ![pmeunier](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.pijul.org/pmeunier/32/4_2.png) [@pmeunier](https://discourse.pijul.org/u/pmeunier)\
**Post date:** [December 16, 2020, 5:30pm UTC](https://discourse.pijul.org/t/problems-compiling-on-windows/337/5 "2020-12-16T17:30:56Z")

</div>

This isn’t needed anymore, Pijul doesn’t ship with PGP now. Things are way easier now:

- Install Rust (for example via Rustup).
- Install OpenSSL and set your `OPENSSL_LIB_DIR` environment variable to point to wherever openssl.lib is.
- Use vcpkg to install libsodium, xxhash and zstd
- `cargo install pijul --version 1.0.0-alpha.22` (or if you read these instructions in the future, whatever is the latest version on [https://crates.io/crates/pijul](https://crates.io/crates/pijul))
