<p>I had plutus-playground up and running with a prior commit, but am trying to get the latest version running. I have cloned everything fresh in a new folder. I have successfully run the following inside the plutus-apps directory.</p>
<blockquote><pre>
git checkout 41149926c108c71831cfe8d244c83b0ee4bf5c8a
<p>nix-build -A plutus-playground.client
nix-build -A plutus-playground.server</p>
<p>nix-build -A plutus-playground.generate-purescript
nix-build -A plutus-playground.start-backend
</pre></blockquote></p>
<p>Now I am at plutus-pab. I am in bash. I have tried the following and received the following errors:</p>
<blockquote>
bash-3.2$ nix-build -A plutus-pab<br>
error: attribute 'plutus-pab' in selection path 'plutus-pab' not found<br>
bash-3.2$ GC_DONT_GC=1 nix-build -A plutus-pab<br>
error: attribute 'plutus-pab' in selection path 'plutus-pab' not found<br>
bash-3.2$ nix-build ./default.nix -A plutus-apps.haskell.packages.plutus-pab<br>
Segmentation fault: 11<br>
bash-3.2$ GC_DONT_GC=1 nix-build ./default.nix -A plutus-apps.haskell.packages.plutus-pab<br>
this derivation will be built:<br>
  /nix/store/yz5wyg4yv21xvwq9nmwb3bcb6fcvx30y-plutus-pab-0.1.0.0-coverage-report.drv<br>
building '/nix/store/yz5wyg4yv21xvwq9nmwb3bcb6fcvx30y-plutus-pab-0.1.0.0-coverage-report.drv'...<br>
sandbox-exec: pattern serialization length 83683 exceeds maximum (65535)<br>
error: builder for '/nix/store/yz5wyg4yv21xvwq9nmwb3bcb6fcvx30y-plutus-pab-0.1.0.0-coverage-report.drv' failed with exit code 65;<br>
       last 1 log lines:<br>
       > sandbox-exec: pattern serialization length 83683 exceeds maximum (65535)<br>
       For full logs, run 'nix log /nix/store/yz5wyg4yv21xvwq9nmwb3bcb6fcvx30y-plutus-pab-0.1.0.0-coverage-report.drv'.<br>
bash-3.2$ GC_DONT_GC=1 nix-build ./default.nix -A plutus-pab<br>
error: attribute 'plutus-pab' in selection path 'plutus-pab' not found<br>
bash-3.2$ 
</blockquote>
<p>This is really feeling like broken code. What needs to be fixed to get this to work?</p>

CC BY-SA 4.0
2022-01-14T08:38:50.350Z
Which instructions are you following? The `plutus-pab` is a library.
angerman
CC BY-SA 4.0
2022-01-14T09:30:05.697Z
The "canonical" instructions here, step 11.  https://docs.plutus-community.com/docs/setup/MacOS.html  I've gotten those other variations of the instructions for elsewhere, including Discord. Libraries still need to be built, don't they? My understanding is that all this code is actively being developed and changing. This does not act like a stable commit.
XiTouch
CC BY-SA 4.0
2022-01-16T13:49:41.060Z
The issues you are seeing are from the `nix` tool that's being used. Sorry for asking more questions, as I can't reproduce this. What operating system is this, and what does `nix --version` report?
angerman
CC BY-SA 4.0
2022-01-16T16:59:46.683Z
macOS Catalina 10.15.7 on two separate machines. Nix version 2.51. The problem may have been due to having "sandbox - true" in /etc/nix/nix.conf. That was a suggestion elsewhere but appears to not be currently correct. I now have everything successfully running and am attempting to re-trace my steps on another virgin machine (Mojave) while carefully documenting (for future generations!) what actually works for me, today.
XiTouch
CC BY-SA 4.0
2022-01-17T04:33:22.620Z
Yes. `sandbox = true` on macOS with nix is not well supported at all. Especially not with more complicated nix expressions.
angerman
<plutus-playground><plutus-pab>
plutus-pab still not building
# plutus-pab still not building

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

I had plutus-playground up and running with a prior commit, but am trying to get the latest version running. I have cloned everything fresh in a new folder. I have successfully run the following inside the plutus-apps directory.

git checkout 41149926c108c71831cfe8d244c83b0ee4bf5c8a
nix-build -A plutus-playground.client
nix-build -A plutus-playground.server
nix-build -A plutus-playground.generate-purescript
nix-build -A plutus-playground.start-backend

Now I am at plutus-pab. I am in bash. I have tried the following and received the following errors:

bash-3.2$ nix-build -A plutus-pab
error: attribute 'plutus-pab' in selection path 'plutus-pab' not found
bash-3.2$ GC_DONT_GC=1 nix-build -A plutus-pab
error: attribute 'plutus-pab' in selection path 'plutus-pab' not found
bash-3.2$ nix-build ./default.nix -A plutus-apps.haskell.packages.plutus-pab
Segmentation fault: 11
bash-3.2$ GC_DONT_GC=1 nix-build ./default.nix -A plutus-apps.haskell.packages.plutus-pab
this derivation will be built:
  /nix/store/yz5wyg4yv21xvwq9nmwb3bcb6fcvx30y-plutus-pab-0.1.0.0-coverage-report.drv
building '/nix/store/yz5wyg4yv21xvwq9nmwb3bcb6fcvx30y-plutus-pab-0.1.0.0-coverage-report.drv'...
sandbox-exec: pattern serialization length 83683 exceeds maximum (65535)
error: builder for '/nix/store/yz5wyg4yv21xvwq9nmwb3bcb6fcvx30y-plutus-pab-0.1.0.0-coverage-report.drv' failed with exit code 65;
       last 1 log lines:
       > sandbox-exec: pattern serialization length 83683 exceeds maximum (65535)
       For full logs, run 'nix log /nix/store/yz5wyg4yv21xvwq9nmwb3bcb6fcvx30y-plutus-pab-0.1.0.0-coverage-report.drv'.
bash-3.2$ GC_DONT_GC=1 nix-build ./default.nix -A plutus-pab
error: attribute 'plutus-pab' in selection path 'plutus-pab' not found
bash-3.2$ 

This is really feeling like broken code. What needs to be fixed to get this to work?

**Tags:** plutus-playground, plutus-pab
> **Comments:**
> **username_1**: Which instructions are you following? The `plutus-pab` is a library.  
> **username_0**: The "canonical" instructions here, step 11.  https://docs.plutus-community.com/docs/setup/MacOS.html  I've gotten those other variations of the instructions for elsewhere, including Discord. Libraries still need to be built, don't they? My understanding is that all this code is actively being developed and changing. This does not act like a stable commit.  
> **username_1**: The issues you are seeing are from the `nix` tool that's being used. Sorry for asking more questions, as I can't reproduce this. What operating system is this, and what does `nix --version` report?  
> **username_0**: macOS Catalina 10.15.7 on two separate machines. Nix version 2.51. The problem may have been due to having "sandbox - true" in /etc/nix/nix.conf. That was a suggestion elsewhere but appears to not be currently correct. I now have everything successfully running and am attempting to re-trace my steps on another virgin machine (Mojave) while carefully documenting (for future generations!) what actually works for me, today.  
> **username_1**: Yes. `sandbox = true` on macOS with nix is not well supported at all. Especially not with more complicated nix expressions.  

---

## 0 answers

