<p>I am new to <em>nix</em>, but my understanding is as follows:</p>
<p>Both the <em>plutus</em> and <em>plutus-pioneer-program</em> repos need to be extracted on disk. Check out the <em>plutus</em> commit of the coding week you want to work on (in cabal.project in root of week code folder).</p>
<p>Start all the <em>nix-shell</em> instances you require in the root of the <em>plutus</em> repository. I start 3: one each for playground server and client, and programming in Hashkell (<em>cabal repl</em>). For each shell you have to <em>cd</em> to the correct folder. This way all components are in sync.</p>
<p>Don't forget to set up the cache at the start.
I am really impressed how <em>nix</em> make this so easy.</p>

CC BY-SA 4.0
2021-07-18T15:51:36.780Z
2021-07-18T18:01:31.057Z
2021-07-18T18:01:31.057Z
vcwebco
<p>I had the similar problem, this recipe works for me:</p>
<p>Run <code>nix-shell</code> inside <code>plutus</code> project and move to <code>plutus-pioneer-program/code/week01</code> directory from nix shell, then start <code>cabal build</code>.</p>
<p>UPD:
<a href="https://github.com/input-output-hk/plutus-pioneer-program" rel="nofollow noreferrer">plutus-pioneer-program</a> repo contains README with steps how to run <code>plutus-playground</code>, one of steps is to clone <a href="https://github.com/input-output-hk/plutus" rel="nofollow noreferrer">Plutus</a> repo and to checkout it to the specific commit. Inside that <code>Plutus</code> directory you can run <code>nix-shell</code> and then go to pioneer directory.</p>

CC BY-SA 4.0
2021-06-15T22:37:43.390Z
How can i do that? when i try to run nix-shell  i get Error: getting status of '/home/test/plutus/plutus-pioneer-program/default.nix': No such file or directory ,  where is the plutus project? is it a file or a location? sry if it seems tooo silly !!!
Alicia Basilio
CC BY-SA 4.0
2021-06-17T01:13:30.100Z
[Plutus repo](https://github.com/input-output-hk/plutus) it is mentioned in the Week #1 homework in the [plutus-pioneer-program repo](https://github.com/input-output-hk/plutus-pioneer-program).
Olga Klimenko
CC BY-SA 4.0
2021-06-17T01:23:37.310Z
Thank you , so I must install this library using nix, as well as cabal before running cabal - build ?
Alicia Basilio
CC BY-SA 4.0
2021-06-17T01:29:37.080Z
Not exactly, you should just clone `plutus` repo, and every time when you want to run some code from pioneer program you should firstly run nix shell from plutus and go to desired project in that shell to run cabal commands.
Olga Klimenko
CC BY-SA 4.0
2021-06-08T04:58:30.587Z
2021-06-17T01:21:59.927Z
2021-06-17T01:21:59.927Z
Olga Klimenko
<p>I had a similar issue and solved it by running <code>nix-shell</code> in the plutus library, then navigating to the plutus-pioneer/code/week01 and running <code>cabal update</code>. I hope this helps!</p>

CC BY-SA 4.0
2021-06-09T14:59:01.957Z
I could run cabal update and cabal build. When I try to execute cabal run an error message saying that 'Cannot run the target '' which refers to the package plutus-pioneer-program-week01-0.1.0.0 because it does not contain any executables.' shows.
Ramiro
CC BY-SA 4.0
2021-06-09T15:29:28.060Z
Ahh, I think you should be using `cabal repl` in the week01 folder. **note the lowercase w in week01. This folder should contain these files: cabal.project  hie.yaml  LICENSE  plutus-pioneer-program-week01.cabal  src
Isaac Padberg
CC BY-SA 4.0
2021-06-15T22:44:51.940Z
Hello Isaac, could you please tell me how can i get to the plutus library?
Alicia Basilio
CC BY-SA 4.0
2021-06-21T21:21:20.403Z
You can us "cd /nameofdirectory" in the terminal on linux. I would familiarize yourself with terminal commands and Vim :)
Isaac Padberg
CC BY-SA 4.0
2021-06-08T14:57:31.177Z
2021-06-08T14:57:31.177Z
Isaac Padberg
<p>I started following the lectures on youtube and got this error when I try to build the English Auction</p>
<p>Warning: The build command is a part of the legacy v1 style of cabal usage.</p>
<p>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.</p>
<p>For more information, see: <a href="https://wiki.haskell.org/Cabal/NewBuild" rel="noreferrer">https://wiki.haskell.org/Cabal/NewBuild</a></p>
<p>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,
playground-common -any,
plutus-contract -any,
plutus-ledger -any,
plutus-tx -any,
plutus-tx-plugin -any</p>
<p>tried to run nix-shell at the top-level directory of the plutus-repository but I couldn't. Got</p>
<p>Error: getting status of '/home/test/plutus/plutus-pioneer-program/default.nix': No such file or directory</p>

<plutus><plutus-pioneer-program><cabal><nix>
Plutus Pioneer Program - Lecture #1- Cabal Build error
# Plutus Pioneer Program - Lecture #1- Cabal Build error

(Asked by: username_0 on 2021-06-07)

I started following the lectures on youtube and got this error when I try to build the English Auction

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,
playground-common -any,
plutus-contract -any,
plutus-ledger -any,
plutus-tx -any,
plutus-tx-plugin -any

tried to run nix-shell at the top-level directory of the plutus-repository but I couldn't. Got

Error: getting status of '/home/test/plutus/plutus-pioneer-program/default.nix': No such file or directory

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

---

## 3 answers

### Answer by username_4 on 2021-06-08. Score: 4

I had a similar issue and solved it by running `nix-shell` in the plutus library, then navigating to the plutus-pioneer/code/week01 and running `cabal update`. I hope this helps!

> **Comments:**
> **username_0**: I could run cabal update and cabal build. When I try to execute cabal run an error message saying that 'Cannot run the target '' which refers to the package plutus-pioneer-program-week01-0.1.0.0 because it does not contain any executables.' shows.  
> **username_4**: Ahh, I think you should be using `cabal repl` in the week01 folder. **note the lowercase w in week01. This folder should contain these files: cabal.project  hie.yaml  LICENSE  plutus-pioneer-program-week01.cabal  src  
> **username_3**: Hello Isaac, could you please tell me how can i get to the plutus library?  
> **username_4**: You can us "cd /nameofdirectory" in the terminal on linux. I would familiarize yourself with terminal commands and Vim :)  

---

### Answer by username_1 on 2021-07-18. Score: 1

I am new to *nix*, but my understanding is as follows:

Both the *plutus* and *plutus-pioneer-program* repos need to be extracted on disk. Check out the *plutus* commit of the coding week you want to work on (in cabal.project in root of week code folder).

Start all the *nix-shell* instances you require in the root of the *plutus* repository. I start 3: one each for playground server and client, and programming in Hashkell (*cabal repl*). For each shell you have to *cd* to the correct folder. This way all components are in sync.

Don't forget to set up the cache at the start.
I am really impressed how *nix* make this so easy.


---

### Answer by username_2 on 2021-06-08. Score: 1

I had the similar problem, this recipe works for me:

Run `nix-shell` inside `plutus` project and move to `plutus-pioneer-program/code/week01` directory from nix shell, then start `cabal build`.

UPD:
[plutus-pioneer-program](https://github.com/input-output-hk/plutus-pioneer-program) repo contains README with steps how to run `plutus-playground`, one of steps is to clone [Plutus](https://github.com/input-output-hk/plutus) repo and to checkout it to the specific commit. Inside that `Plutus` directory you can run `nix-shell` and then go to pioneer directory.

> **Comments:**
> **username_3**: How can i do that? when i try to run nix-shell  i get Error: getting status of '/home/test/plutus/plutus-pioneer-program/default.nix': No such file or directory ,  where is the plutus project? is it a file or a location? sry if it seems tooo silly !!!  
> **username_2**: [Plutus repo](https://github.com/input-output-hk/plutus) it is mentioned in the Week #1 homework in the [plutus-pioneer-program repo](https://github.com/input-output-hk/plutus-pioneer-program).  
> **username_3**: Thank you , so I must install this library using nix, as well as cabal before running cabal - build ?  
> **username_2**: Not exactly, you should just clone `plutus` repo, and every time when you want to run some code from pioneer program you should firstly run nix shell from plutus and go to desired project in that shell to run cabal commands.  

---

