<p>You appear to be having issues resolving the dependencies for that particular build of Plutus. In fact, all Cardano builds depend on <code>libsystemd</code> (on Linux).</p>
<p>If you have incompatible versions of <code>libsystemd</code> and <code>libsystemd-journal</code> you get the rejection that you're having in regards to the dependencies. It appears Plutus also depends on these packages.</p>
<p>Please see the following link: <a href="https://github.com/input-output-hk/cardano-haskell/blob/master/README.md#system-setup" rel="nofollow noreferrer">cardano-haskell.README.md#system-setup</a>.</p>
<p>I would try:</p>
<pre><code>sudo apt get install libsystemd-dev
</code></pre>
<p>Then, try and reboot a terminal window, checkout to the correct branch within the Plutus.git repository.</p>
<p>Ensure you checkout the tag provided within the plutus-pioneer-program.git/code/week01/cabal.project file, which I believe is <code>ea0ca4e9f9821a9dbfc5255fa0f42b6f2b3887c4</code>.</p>
<p>Then, you should be able to boot a Nix-Shell from the Plutus repo, navigate to <code>week01</code> and run <code>cabal build</code>.</p>
<p>If you've followed those steps (see below for some links that may be of help) and you're still having problems, we may need some more information.</p>
<p>Related links that may help:</p>
<ul>
<li><a href="https://forum.cardano.org/t/cardano-crypto-class-2-0-0-conflict-pkg-config-package-libsodium-any-not-found-in-the-pkg-config-database/56203" rel="nofollow noreferrer">Cardano-crypto-class-2.0.0 (conflict: pkg-config package libsodium-any, not found in the pkg-config database)</a></li>
<li><a href="https://packages.ubuntu.com/search?mode=exactfilename&amp;suite=trusty&amp;section=all&amp;arch=any&amp;keywords=libsystemd-journal.pc&amp;searchon=contents" rel="nofollow noreferrer">libsystemd-journal Packages For Ubuntu</a></li>
<li><a href="https://github.com/input-output-hk/cardano-haskell/blob/master/README.md#system-setup" rel="nofollow noreferrer">Cardano Haskell System Setup | Very Similar Issue (Same Package Conflict)</a></li>
</ul>

CC BY-SA 4.0
2021-08-17T00:30:27.803Z
2021-08-17T00:30:27.803Z
Dilworth
<p>Try in the nix-shell try this:</p>
<ol>
<li>cabal update</li>
<li>cabal build</li>
</ol>
<p>btw: first time building with cabal can take up some time</p>

CC BY-SA 4.0
2021-08-16T19:20:47.860Z
2021-08-16T19:20:47.860Z
Marthijn Wassink
<p>I'm trying to compile the Plutus source code locally, I tried <code>cabal build</code> in <code>nix-shell</code>,</p>
<p>getting this error</p>
<pre><code>After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: base, libsystemd-journal,
lobemo-scribe-systemd, Win32-network
</code></pre>
<p>This is the full error I got<a href="https://i.sstatic.net/7JQWV.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/7JQWV.png" alt="error" /></a></p>
<p>I'm working on Ubuntu 20.04LTS OS</p>
<p>Thanks,</p>
<p>Please let me know if my approach is wrong.</p>

CC BY-SA 4.0
2021-08-16T11:06:41.973Z
Please give more details of the system and the steps you completed. Did you check the documentation at https://docs.plutus-community.com/?
vcwebco
CC BY-SA 4.0
2021-08-16T12:00:09.517Z
Yes, I followed the documentation and installed Nix(Single-user) and then followed this https://docs.plutus-community.com/docs/setup/CabalBuild.html and when I did cabal build ended up in that error
Prashanth S.
CC BY-SA 4.0
2021-08-16T13:06:41.427Z
Did you execute cabal update first?
vcwebco
CC BY-SA 4.0
2021-08-16T13:25:09.383Z
Yes, this was the output
```Downloading the latest package list from hackage.haskell.org
Package list of hackage.haskell.org is up to date at index-state 2021-08-16T12:54:02Z```
Prashanth S.
CC BY-SA 4.0
2021-08-16T19:12:08.380Z
Win32-network - dependency not fulfilled is an indication that if there is a problem in the checked-out version. Would you mind checking with the version used in that particular lecture? I had faced the same issue.
raghu
CC BY-SA 4.0
2021-08-18T04:45:23.637Z
I see you're using Week 1 of the Pioneer Program.  Did you check out the correct plutus tag `(in plutus-pioneer-program/code/week01/cabal.project)` before running `nix-shell` ?
Phil Boltt
<plutus><plutus-pioneer-program><cabal><nix><nix-shell>
How to compile plutus source code locally?
# How to compile plutus source code locally?

(Asked by: username_0 on 2021-08-16)

I'm trying to compile the Plutus source code locally, I tried `cabal build` in `nix-shell`,

getting this error

```
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: base, libsystemd-journal,
lobemo-scribe-systemd, Win32-network

```

This is the full error I got[![error](https://i.sstatic.net/7JQWV.png)](https://i.sstatic.net/7JQWV.png)

I'm working on Ubuntu 20.04LTS OS

Thanks,

Please let me know if my approach is wrong.

**Tags:** plutus, plutus-pioneer-program, cabal, nix, nix-shell

> **Comments:**
> **username_1**: Please give more details of the system and the steps you completed. Did you check the documentation at https://docs.plutus-community.com/?  
> **username_0**: Yes, I followed the documentation and installed Nix(Single-user) and then followed this https://docs.plutus-community.com/docs/setup/CabalBuild.html and when I did cabal build ended up in that error  
> **username_1**: Did you execute cabal update first?  
> **username_0**: Yes, this was the output ```Downloading the latest package list from hackage.haskell.org Package list of hackage.haskell.org is up to date at index-state 2021-08-16T12:54:02Z```  
> **username_2**: Win32-network - dependency not fulfilled is an indication that if there is a problem in the checked-out version. Would you mind checking with the version used in that particular lecture? I had faced the same issue.  
> **username_3**: I see you're using Week 1 of the Pioneer Program.  Did you check out the correct plutus tag `(in plutus-pioneer-program/code/week01/cabal.project)` before running `nix-shell` ?  

---

## 2 answers

### Answer by username_4 on 2021-08-17. Score: 1 | Accepted answer

You appear to be having issues resolving the dependencies for that particular build of Plutus. In fact, all Cardano builds depend on `libsystemd` (on Linux).

If you have incompatible versions of `libsystemd` and `libsystemd-journal` you get the rejection that you're having in regards to the dependencies. It appears Plutus also depends on these packages.

Please see the following link: [cardano-haskell.README.md#system-setup](https://github.com/input-output-hk/cardano-haskell/blob/master/README.md#system-setup).

I would try:

```
sudo apt get install libsystemd-dev

```

Then, try and reboot a terminal window, checkout to the correct branch within the Plutus.git repository.

Ensure you checkout the tag provided within the plutus-pioneer-program.git/code/week01/cabal.project file, which I believe is `ea0ca4e9f9821a9dbfc5255fa0f42b6f2b3887c4`.

Then, you should be able to boot a Nix-Shell from the Plutus repo, navigate to `week01` and run `cabal build`.

If you've followed those steps (see below for some links that may be of help) and you're still having problems, we may need some more information.

Related links that may help:

* [Cardano-crypto-class-2.0.0 (conflict: pkg-config package libsodium-any, not found in the pkg-config database)](https://forum.cardano.org/t/cardano-crypto-class-2-0-0-conflict-pkg-config-package-libsodium-any-not-found-in-the-pkg-config-database/56203)
* [libsystemd-journal Packages For Ubuntu](https://packages.ubuntu.com/search?mode=exactfilename&suite=trusty&section=all&arch=any&keywords=libsystemd-journal.pc&searchon=contents)
* [Cardano Haskell System Setup | Very Similar Issue (Same Package Conflict)](https://github.com/input-output-hk/cardano-haskell/blob/master/README.md#system-setup)


---

### Answer by username_5 on 2021-08-16. Score: 1

Try in the nix-shell try this:

1. cabal update
2. cabal build

btw: first time building with cabal can take up some time


---

