# Using make (gcc?) in openhabian

**URL:** <https://community.openhab.org/t/using-make-gcc-in-openhabian/23231>\
**Category:** Beginners\
**Tags:** dht22, make, gcc\
**Created:** [February 18, 2017, 2:48am UTC](https://community.openhab.org/t/using-make-gcc-in-openhabian/23231 "2017-02-18T02:48:01Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![joshua002](https://community.openhab.org/letter_avatar_proxy/v4/letter/j/8797f3/32.png) [@joshua002](https://community.openhab.org/u/joshua002)\
**Post date:** [February 18, 2017, 2:48am UTC](https://community.openhab.org/t/using-make-gcc-in-openhabian/23231/1 "2017-02-18T02:48:01Z")

</div>

I am following this tutorial on youtube to read from a DHT22 temp and humidity sensor ([https://www.youtube.com/watch?v=IHTnU1T8ETk](https://www.youtube.com/watch?v=IHTnU1T8ETk)).  
When I try to run make I get:

[21:39:34] pi@openHABianPi:~/PIGPIO$ make  
-bash: make: command not found

I searched for how to install make. I think make is a part of the gcc tools? Can anyone tell me what I should install to get what I need? Obviously Openhabian is a headless server so I won’t need any gui tools.

Any suggestions would be appreciated.

---

<div class="post-metadata">

**Author:** ![Udo\_Hartmann](https://community.openhab.org/user_avatar/community.openhab.org/udo_hartmann/32/70871_2.png) [@Udo\_Hartmann](https://community.openhab.org/u/Udo_Hartmann)\
**Post date:** [February 19, 2017, 9:42pm UTC](https://community.openhab.org/t/using-make-gcc-in-openhabian/23231/2 "2017-02-19T21:42:46Z")

</div>

openhabian is sort of debian, so `sudo apt-get update && sudo apt-get install make` should do the trick…

---

<div class="post-metadata">

**Author:** ![joshua002](https://community.openhab.org/letter_avatar_proxy/v4/letter/j/8797f3/32.png) [@joshua002](https://community.openhab.org/u/joshua002)\
**Post date:** [February 20, 2017, 4:34pm UTC](https://community.openhab.org/t/using-make-gcc-in-openhabian/23231/3 "2017-02-20T16:34:57Z")

</div>

I ran that and then I got an error “make: gcc: Command not found”

So I installed gcc too. Is that all that is needed to compile a program and will it interfere with openhab2 at all?

---

<div class="post-metadata">

**Author:** ![ThomDietrich](https://community.openhab.org/user_avatar/community.openhab.org/thomdietrich/32/71239_2.png) [@ThomDietrich](https://community.openhab.org/u/ThomDietrich)\
**Post date:** [February 20, 2017, 4:52pm UTC](https://community.openhab.org/t/using-make-gcc-in-openhabian/23231/4 "2017-02-20T16:52:45Z")

</div>

(I’m on the road) I believe what you are looking for is the meta package “build-essentials”

---

<div class="post-metadata">

**Author:** ![joshua002](https://community.openhab.org/letter_avatar_proxy/v4/letter/j/8797f3/32.png) [@joshua002](https://community.openhab.org/u/joshua002)\
**Post date:** [February 21, 2017, 2:57am UTC](https://community.openhab.org/t/using-make-gcc-in-openhabian/23231/5 "2017-02-21T02:57:06Z")

</div>

> [@ThomDietrich](#):
>
> build-essentials

I tried:  
[21:56:00] pi@openHABianPi:/etc/openhab2/items$ sudo apt-get install build-essentials  
Reading package lists… Done  
Building dependency tree  
Reading state information… Done  
E: Unable to locate package build-essentials

Is it listed as a different name?

---

<div class="post-metadata">

**Author:** ![ThomDietrich](https://community.openhab.org/user_avatar/community.openhab.org/thomdietrich/32/71239_2.png) [@ThomDietrich](https://community.openhab.org/u/ThomDietrich)\
**Post date:** [February 21, 2017, 12:52pm UTC](https://community.openhab.org/t/using-make-gcc-in-openhabian/23231/6 "2017-02-21T12:52:43Z")

</div>

\*build-essential

---

<div class="post-metadata">

**Author:** ![joshua002](https://community.openhab.org/letter_avatar_proxy/v4/letter/j/8797f3/32.png) [@joshua002](https://community.openhab.org/u/joshua002)\
**Post date:** [February 22, 2017, 12:50am UTC](https://community.openhab.org/t/using-make-gcc-in-openhabian/23231/7 "2017-02-22T00:50:49Z")

</div>

Same result. Am I missing something in like a config file to reach a certain repository? That’s all I can think of that I am missing an entry or something.

[18:21:26] pi@openHABianPi:~/scripts$ sudo apt-get install \*build-essential  
[sudo] password for pi:  
Reading package lists… Done  
Building dependency tree  
Reading state information… Done  
E: Unable to locate package \*build-essential  
E: Regex compilation error - Invalid preceding regular expression  
E: Couldn’t find any package by regex ‘\*build-essential’

---

<div class="post-metadata">

**Author:** ![ThomDietrich](https://community.openhab.org/user_avatar/community.openhab.org/thomdietrich/32/71239_2.png) [@ThomDietrich](https://community.openhab.org/u/ThomDietrich)\
**Post date:** [February 22, 2017, 4:58pm UTC](https://community.openhab.org/t/using-make-gcc-in-openhabian/23231/8 "2017-02-22T16:58:05Z")

</div>

Oh 😅 sorry, the asterisk is often used as an indicator for “correction”. What I wanted to say is “It’s not build-essentials” but “build-essential”. The asterisk is not part of the package name.

On a side note, you would have been quicker googling this: [Google](https://www.google.com/#q=build-essentials)

So what you want to do is:

```plaintext
sudo apt install build-essential

```
