user2094: 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
I'm working on Ubuntu 20.04LTS OS
Thanks,
Please let me know if my approach is wrong.

user939: Try in the nix-shell try this:

cabal update
cabal build

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

user1229: 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.
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)
libsystemd-journal Packages For Ubuntu
Cardano Haskell System Setup | Very Similar Issue (Same Package Conflict)


2094: <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.stack.imgur.com/7JQWV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/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>
 939: <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>
 1229: <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>
