<p>Why are you using sudo? Try without.
And update of course.</p>

CC BY-SA 4.0
2022-01-14T04:56:39.680Z
If I don't I get an access denied error. I tried with update and it does not work.
Efthyvoulos Tsouderos
CC BY-SA 4.0
2022-01-13T19:29:27.883Z
2022-01-13T19:29:27.883Z
d_fajardo
<p>try &quot;cabal update&quot; before &quot;cabal build&quot;.</p>

CC BY-SA 4.0
2022-01-14T05:10:55.650Z
I tried it and it still does not work. Thanks anyway.
Efthyvoulos Tsouderos
CC BY-SA 4.0
2022-01-13T18:33:25.603Z
2022-01-13T18:33:25.603Z
sumit bakhli
<p>Check and make sure that your version of the repo has the correct commit-id.</p>

CC BY-SA 4.0
2022-01-14T10:17:23.317Z
2022-01-29T02:40:25.767Z
2022-01-29T02:40:25.767Z
simon
<p>I followed the instructions on lecture one - part 3 and I was trying to start week 1 project.
When I run cabal build got the following error:</p>
<p>[nix-shell:~/plutus-pioneer-program/code/week01]$ sudo cabal build</p>
<pre><code>Warning: The build command is a part of the legacy v1 style of cabal usage.

Please switch to using either the new project style and the new-build command
or the legacy v1-build alias as new-style projects will become the default in
the next version of cabal-install. Please file a bug if you cannot replicate a
working v1- use case with the new-style commands.

For more information, see: https://wiki.haskell.org/Cabal/NewBuild

Resolving dependencies...
Warning: solver failed to find a solution:
Could not resolve dependencies:
[__0] trying: plutus-pioneer-program-week01-0.1.0.0 (user goal)
[__1] next goal: base (dependency of plutus-pioneer-program-week01)
[__1] rejecting: base-4.12.0.0/installed-4.1... (conflict:
plutus-pioneer-program-week01 =&gt; base^&gt;=4.14.1.0)
[__1] fail (backjumping, conflict set: base, plutus-pioneer-program-week01)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: plutus-pioneer-program-week01, base
Trying configure anyway.
Configuring plutus-pioneer-program-week01-0.1.0.0...
cabal: Encountered missing dependencies:
aeson -any,
base &gt;=4.14.1.0 &amp;&amp; &lt;4.15,
data-default -any,
playground-common -any,
plutus-contract -any,
plutus-ledger -any,
plutus-ledger-constraints -any,
plutus-tx -any,
plutus-tx-plugin -any
</code></pre>
<p><strong>Could not resolve dependencies</strong> and <strong>cabal: Encountered missing dependencies</strong> is the errors here as far I can understand. I tried again by running cabal update and then cabal build but again I get the same error(s) that I described above. Any ideas? What am I doing wrong?</p>

<plutus-pioneer-program><cabal>
Error on cabal build - Encounterd missing dependesies
# Error on cabal build - Encounterd missing dependesies

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

I followed the instructions on lecture one - part 3 and I was trying to start week 1 project.
When I run cabal build got the following error:
[nix-shell:~/plutus-pioneer-program/code/week01]$ sudo cabal build
Warning: The build command is a part of the legacy v1 style of cabal usage.

Please switch to using either the new project style and the new-build command
or the legacy v1-build alias as new-style projects will become the default in
the next version of cabal-install. Please file a bug if you cannot replicate a
working v1- use case with the new-style commands.

For more information, see: https://wiki.haskell.org/Cabal/NewBuild

Resolving dependencies...
Warning: solver failed to find a solution:
Could not resolve dependencies:
[__0] trying: plutus-pioneer-program-week01-0.1.0.0 (user goal)
[__1] next goal: base (dependency of plutus-pioneer-program-week01)
[__1] rejecting: base-4.12.0.0/installed-4.1... (conflict:
plutus-pioneer-program-week01 => base^>=4.14.1.0)
[__1] fail (backjumping, conflict set: base, plutus-pioneer-program-week01)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: plutus-pioneer-program-week01, base
Trying configure anyway.
Configuring plutus-pioneer-program-week01-0.1.0.0...
cabal: Encountered missing dependencies:
aeson -any,
base >=4.14.1.0 && <4.15,
data-default -any,
playground-common -any,
plutus-contract -any,
plutus-ledger -any,
plutus-ledger-constraints -any,
plutus-tx -any,
plutus-tx-plugin -any

Could not resolve dependencies and cabal: Encountered missing dependencies is the errors here as far I can understand. I tried again by running cabal update and then cabal build but again I get the same error(s) that I described above. Any ideas? What am I doing wrong?

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

---

## 3 answers

### Answer by username_1 on 2022-01-13. Score: 1

Why are you using sudo? Try without.
And update of course.

> **Comments:**
> **username_0**: If I don't I get an access denied error. I tried with update and it does not work.  

---

### Answer by username_2 on 2022-01-13. Score: 1

try "cabal update" before "cabal build".

> **Comments:**
> **username_0**: I tried it and it still does not work. Thanks anyway.  

---

### Answer by username_3 on 2022-01-14. Score: 1

Check and make sure that your version of the repo has the correct commit-id.


---

