<p>Are you running the command in nix-shell?</p>
<p>If not, I'd suggest you clone the Plutus project, run <code>nix-shell</code> from within the Plutus repository.</p>
<p>Afterwards, try building the libs again</p>

CC BY-SA 4.0
2021-10-25T14:29:35.150Z
Oh, I also newbie for nix-shell. I gonna try, thank you.
3ORZ
CC BY-SA 4.0
2021-10-25T15:13:13.487Z
@Aoaddeola I do not think he's trying to set up the Plutus environment.
Skelli
CC BY-SA 4.0
2021-10-25T17:14:54.627Z
@Kelli Ahh, yes, I just trying to set up a stake pool.
3ORZ
CC BY-SA 4.0
2021-10-25T13:29:14.140Z
2021-10-25T13:29:14.140Z
Aoaddeola
<p>It looks like the issue is with Cabal and its dependencies versions, specifically the packages (base, libsystemd-journal,lobemo-scribe-systemd and Win32-network).</p>
<p>I think this link will help:</p>
<p><a href="https://forum.cardano.org/t/error-message-trying-the-comand-cabal-build-installing-my-cardano-node/41605/8" rel="nofollow noreferrer">https://forum.cardano.org/t/error-message-trying-the-comand-cabal-build-installing-my-cardano-node/41605/8</a></p>
<p>Other similar issues:</p>
<p><a href="https://stackoverflow.com/questions/68558825/could-not-resolve-dependencies-while-installing-libraries-with-cabal">https://stackoverflow.com/questions/68558825/could-not-resolve-dependencies-while-installing-libraries-with-cabal</a></p>
<p><a href="https://stackoverflow.com/questions/67154347/how-can-i-fix-haskell-version-conflicts-with-dependencies">https://stackoverflow.com/questions/67154347/how-can-i-fix-haskell-version-conflicts-with-dependencies</a></p>

CC BY-SA 4.0
2021-10-25T15:11:50.943Z
2021-10-25T15:11:50.943Z
Skelli
<p>I'm a newbie to Cardano. I'm trying to set up a stake pool as this link explained.</p>
<p><a href="https://www.coincashew.com/coins/overview-ada/guide-how-to-build-a-haskell-stakepool-node" rel="nofollow noreferrer">https://www.coincashew.com/coins/overview-ada/guide-how-to-build-a-haskell-stakepool-node</a></p>
<p>I stuck with <code>cabal build cardano-cli cardano-node</code> step with the following error.</p>
<pre><code>Warning: Requested index-state 2021-04-30T00:00:00Z is newer than
'hackage.haskell.org'! Falling back to older state (2021-04-29T23:07:55Z).
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>Anyone can enlighten me to solve this, please?</p>

<stake-pool><cardano-node><cabal><staking>
How to solve "cabal: Could not resolve dependencies" when building cardano-cli cardano-node
# How to solve "cabal: Could not resolve dependencies" when building cardano-cli cardano-node

(Asked by: username_0 on 2021-10-25)

I'm a newbie to Cardano. I'm trying to set up a stake pool as this link explained.
https://www.coincashew.com/coins/overview-ada/guide-how-to-build-a-haskell-stakepool-node
I stuck with cabal build cardano-cli cardano-node step with the following error.
Warning: Requested index-state 2021-04-30T00:00:00Z is newer than
'hackage.haskell.org'! Falling back to older state (2021-04-29T23:07:55Z).
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.

Anyone can enlighten me to solve this, please?

**Tags:** stake-pool, cardano-node, cabal, staking

---

## 2 answers

### Answer by username_1 on 2021-10-25. Score: 1

Are you running the command in nix-shell?

If not, I'd suggest you clone the Plutus project, run `nix-shell` from within the Plutus repository.

Afterwards, try building the libs again

> **Comments:**
> **username_0**: Oh, I also newbie for nix-shell. I gonna try, thank you.  
> **username_2**: @Aoaddeola I do not think he's trying to set up the Plutus environment.  
> **username_0**: @Kelli Ahh, yes, I just trying to set up a stake pool.  

---

### Answer by username_2 on 2021-10-25. Score: 0

It looks like the issue is with Cabal and its dependencies versions, specifically the packages (base, libsystemd-journal,lobemo-scribe-systemd and Win32-network).

I think this link will help:

<https://forum.cardano.org/t/error-message-trying-the-comand-cabal-build-installing-my-cardano-node/41605/8>

Other similar issues:

<https://stackoverflow.com/questions/68558825/could-not-resolve-dependencies-while-installing-libraries-with-cabal>

<https://stackoverflow.com/questions/67154347/how-can-i-fix-haskell-version-conflicts-with-dependencies>


---

