# restart while wiringPi compile

**URL:** https://dietpi.com/forum/t/restart-while-wiringpi-compile/1024
**Category:** Troubleshooting
**Created:** [19 February 2017 17:37 UTC](https://dietpi.com/forum/t/restart-while-wiringpi-compile/1024 "2017-02-19T17:37:40Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![samezrp](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/s/e480ec/32.png) [@samezrp](https://dietpi.com/forum/u/samezrp)
#### Post date: [19 February 2017 17:37 UTC](https://dietpi.com/forum/t/restart-while-wiringpi-compile/1024/1 "2017-02-19T17:37:40Z")

</div>

Hi,  
I wanted to reinstall whole DietPi (I had problems with motion camera, it stuck after few days of working, but it is another problem).  
Nevertheless I want to install **wiringPi** package proceeding following commands:

```nohighlight
apt-get update
apt-get upgrade
apt-get install git-core
git clone git://git.drogon.net/wiringPi
cd wiringPi
apt-get install make
apt-get install gcc

git pull origin
./build

```

unfortunatelly when running ./build script DietPi restarts showing this info:

```nohighlight
root@DietPKu:~/wiringPi# ./build
wiringPi Build script
=====================

WiringPi Library
[UnInstall]
[Compile] wiringSerial.c
[Compile] wiringShift.c
[Compile] wiringPi.c
[Compile] piHiPri.c
[Compile] piThread.c
[Compile] wiringPiI2C.c
[Compile] wiringPiSPI.c
[Compile] softPwm.c
[Compile] softTone.c
[Compile] mcp23008.c
[Compile] mcp23016.c
[Compile] mcp23017.c
[Compile] mcp23s08.c
[Compile] mcp23s17.c
[Compile] sr595.c
[Compile] pcf8574.c

```

Logs are not available, or I cannot find any correct ones.  
Any ideas? On version 141 it worked.

---

<div class="post-metadata">

### Author: ![Fourdee](https://dietpi.com/forum/user_avatar/dietpi.com/fourdee/32/11_2.png) [@Fourdee](https://dietpi.com/forum/u/Fourdee)
#### Post date: [25 February 2017 16:45 UTC](https://dietpi.com/forum/t/restart-while-wiringpi-compile/1024/2 "2017-02-25T16:45:21Z")

</div>

> [@samezrp](#):
>
> apt-get install make  
> apt-get install gcc

Hi,

Most likely require build-essential:

```plaintext
apt-get install build-essential

```

Then try to compile it again.
