<p>The <code>Could not resolve dependencies</code> error is due to not running the command in the nix-shell.</p>

CC BY-SA 4.0
2022-02-17T22:56:30.737Z
2022-02-18T00:53:46.553Z
2022-02-18T00:53:46.553Z
Matthias Sieber
<p>Ciao folks!</p>
<p>I followed the instruction to build the EnglishAuction.hs contract but I am getting the following when run the <code>cabal build</code> command.</p>
<pre><code>Warning: Requested index-state 2021-10-20T00:00:00Z is newer than
'hackage.haskell.org'! Falling back to older state (2021-10-19T23:39:06Z).
Resolving dependencies...
cabal: Could not resolve dependencies:
[__0] trying: Win32-network-0.1.0.0 (user goal)
[__1] trying: base-4.14.1.0/installed-4.14.1.0 (dependency of Win32-network)
[__2] trying: lobemo-scribe-systemd-0.1.0.0 (user goal)
[__3] next goal: libsystemd-journal (dependency of lobemo-scribe-systemd)
[__3] rejecting: libsystemd-journal-1.4.5 (conflict: pkg-config package
libsystemd&gt;=209, not found in the pkg-config database)
[__3] rejecting: libsystemd-journal-1.4.4 (conflict:
base==4.14.1.0/installed-4.14.1.0, libsystemd-journal =&gt; base&gt;=4.6 &amp;&amp; &lt;4.13)
[__3] skipping: libsystemd-journal-1.4.3, libsystemd-journal-1.4.2,
libsystemd-journal-1.4.1, libsystemd-journal-1.4.0, libsystemd-journal-1.3.4,
libsystemd-journal-1.3.3, libsystemd-journal-1.3.1, libsystemd-journal-1.3.0,
libsystemd-journal-1.2.0, libsystemd-journal-1.1.0, libsystemd-journal-1.0.0
(has the same characteristics that caused the previous version to fail:
excludes 'base' version 4.14.1.0)
[__3] fail (backjumping, conflict set: base, libsystemd-journal,
lobemo-scribe-systemd)
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
Try running with --minimize-conflict-set to improve the error message.
</code></pre>
<p>I am running it from the <code>nix-shell</code> after a successful <code>cabal update</code></p>
<p>Can you help me?</p>

CC BY-SA 4.0
2022-01-18T13:28:41.733Z
I remember receiving the same error while being in the wrong commit. Did you do `git checkout 41149926c108c71831cfe8d244c83b0ee4bf5c8a` inside plutus-apps before `nix-shell`?
Mateus
CC BY-SA 4.0
2022-01-18T13:29:09.490Z
`git rev-parse HEAD` will show your current commit
Mateus
CC BY-SA 4.0
2022-01-18T14:43:06.143Z
Dumb me! was executing the commands outside the nix-shell
Angelo Badellino
<plutus-pioneer-program>
Cabal build error
# Cabal build error

(Asked by: username_0 on 2022-01-18)

Ciao folks!
I followed the instruction to build the EnglishAuction.hs contract but I am getting the following when run the cabal build command.
Warning: Requested index-state 2021-10-20T00:00:00Z is newer than
'hackage.haskell.org'! Falling back to older state (2021-10-19T23:39:06Z).
Resolving dependencies...
cabal: Could not resolve dependencies:
[__0] trying: Win32-network-0.1.0.0 (user goal)
[__1] trying: base-4.14.1.0/installed-4.14.1.0 (dependency of Win32-network)
[__2] trying: lobemo-scribe-systemd-0.1.0.0 (user goal)
[__3] next goal: libsystemd-journal (dependency of lobemo-scribe-systemd)
[__3] rejecting: libsystemd-journal-1.4.5 (conflict: pkg-config package
libsystemd>=209, not found in the pkg-config database)
[__3] rejecting: libsystemd-journal-1.4.4 (conflict:
base==4.14.1.0/installed-4.14.1.0, libsystemd-journal => base>=4.6 && <4.13)
[__3] skipping: libsystemd-journal-1.4.3, libsystemd-journal-1.4.2,
libsystemd-journal-1.4.1, libsystemd-journal-1.4.0, libsystemd-journal-1.3.4,
libsystemd-journal-1.3.3, libsystemd-journal-1.3.1, libsystemd-journal-1.3.0,
libsystemd-journal-1.2.0, libsystemd-journal-1.1.0, libsystemd-journal-1.0.0
(has the same characteristics that caused the previous version to fail:
excludes 'base' version 4.14.1.0)
[__3] fail (backjumping, conflict set: base, libsystemd-journal,
lobemo-scribe-systemd)
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
Try running with --minimize-conflict-set to improve the error message.

I am running it from the nix-shell after a successful cabal update
Can you help me?

**Tags:** plutus-pioneer-program
> **Comments:**
> **username_1**: I remember receiving the same error while being in the wrong commit. Did you do `git checkout 41149926c108c71831cfe8d244c83b0ee4bf5c8a` inside plutus-apps before `nix-shell`?  
> **username_1**: `git rev-parse HEAD` will show your current commit  
> **username_0**: Dumb me! was executing the commands outside the nix-shell  

---

## 1 answers

### Answer by username_2 on 2022-02-17. Score: 1 | Accepted answer

The `Could not resolve dependencies` error is due to not running the command in the nix-shell.


---

