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 goterror

I'm working on Ubuntu 20.04LTS OS


Please let me know if my approach is wrong.

  • Please give more details of the system and the steps you completed. Did you check the documentation at docs.plutus-community.com?
    – vcwebco
    Aug 16, 2021 at 11:06
  • Yes, I followed the documentation and installed Nix(Single-user) and then followed this docs.plutus-community.com/docs/setup/CabalBuild.html and when I did cabal build ended up in that error Aug 16, 2021 at 12:00
  • Did you execute cabal update first?
    – vcwebco
    Aug 16, 2021 at 13:06
  • 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 Aug 16, 2021 at 13:25
  • 1
    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
    Aug 16, 2021 at 19:12

2 Answers 2


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:


Try in the nix-shell try this:

  1. cabal update
  2. cabal build

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.