# Compilando Pure Data vanilla no RPi

**Válido para o** [**Raspbian Buster with Desktop**](https://www.raspberrypi.org/downloads/raspbian/)**.**

No momento em que este tutorial foi escrito, a versão mais recente do Pure data é a 0.51-4, é a versão que instalaremos com este tutorial.

<br>

**PASSO 2** - Crie um diretório com código fonte e entre nele (opcional):

```bash
mkdir src && cd src
```

**PASSO 3** - Instale as dependências para compilação e baixe o pure data 0.50-2:

```bash
sudo apt install build-essential autoconf automake libtool gettext git libasound2-dev libjack-jackd2-dev libfftw3-3 libfftw3-dev tcl tk
```

```
wget http://msp.ucsd.edu/Software/pd-0.51-4.src.tar.gz
```

**PASSO 4** - Descompacte o código fonte baixado e entre no diretório com o código fonte:

```bash
tar -xzf pd-0.51-4.src.tar.gz
```

```
cd pd-0.51-4
```

**PASSO 5** - Configure e compile:

```
./autogen.sh
```

```
./configure --enable-jack --enable-fftw
```

```
make
```

**PASSO 6** - Após terminar a compilação, vamos abrir o pd compilado pra conferir se está funcionando:

```
cd bin
```

```
./pd
```

**PASSO 7** - Se o Pure-data funcionou direitinho, é hora de instalá-lo no sistema:

```
cd ..
```

```
sudo make install
```

Toda vez que quiser abrir o pure-data  que você compilou, basta abrir o terminal (Passo 1) e digitar:&#x20;

```
pd
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://gpi-nusom.gitbook.io/documentacao/atividades/tutoriais/raspberry-pi/compilando-pure-data-vanilla-no-rpi.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
