# \[RESOLVED\] Zigate ubuntu installation error

**URL:** <https://community.gladysassistant.com/t/resolu-zigate-ubuntu-erreur-installation/9198>\
**Category:** Configuration\
**Created:** [November 24, 2024, 9:40pm UTC](https://community.gladysassistant.com/t/resolu-zigate-ubuntu-erreur-installation/9198 "2024-11-24T21:40:48Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![thekassmachine](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/t/ed8c4c/32.png) [@thekassmachine](https://community.gladysassistant.com/u/thekassmachine)\
**Post date:** [November 24, 2024, 9:40pm UTC](https://community.gladysassistant.com/t/resolu-zigate-ubuntu-erreur-installation/9198/1 "2024-11-24T21:40:48Z")

</div>

Hello. I’m looking to troubleshoot

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [November 25, 2024, 7:08am UTC](https://community.gladysassistant.com/t/resolu-zigate-ubuntu-erreur-installation/9198/2 "2024-11-25T07:08:17Z")

</div>

For this kind of problem, ChatGPT can be good advice 😃

You’re missing build tools on your system to compile the code:

```auto
sudo apt update
sudo apt install build-essential

```

Once you’ve done that, check that cc is available:

```auto
cc --
```

---

<div class="post-metadata">

**Author:** ![thekassmachine](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/t/ed8c4c/32.png) [@thekassmachine](https://community.gladysassistant.com/u/thekassmachine)\
**Post date:** [November 25, 2024, 7:21am UTC](https://community.gladysassistant.com/t/resolu-zigate-ubuntu-erreur-installation/9198/3 "2024-11-25T07:21:36Z")

</div>

After update + build-essential here is what I get:

cc -I. -Wall -O2 -I../Source/ -DDBG\_ENABLE -DVERSION="\"56124\"" -c ../Source/uart.c  
cc -I. -Wall -O2 -I../Source/ -DDBG\_ENABLE -DVERSION="\"56124\"" -c ../Source/JN51xx\_BootLoader.c  
../Source/JN51xx\_BootLoader.c: In function ‘BL\_DownloadExtensionToRamBeforeErase’:  
../Source/JN51xx\_BootLoader.c:1612:98: warning: passing argument 4 of ‘iBL\_WriteRAM’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]  
1612 | 00400 + n, u8ChunkSize, FlashProgrammerExtension\_JN5168\_bin + n) == -1)  
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~

../Source/JN51xx\_BootLoader.c:1219:86: note: expected ‘uint8\_t \*’ {aka ‘unsigned char \*’} but argument is of type ‘const unsigned char \*’  
1219 | int iUartFd, uint32\_t u32Address, uint8\_t u8Length, uint8\_t \*pu8Buffer)  
| ~~~^~~

cc -I. -Wall -O2 -I../Source/ -DDBG\_ENABLE -DVERSION="\"56124\"" -c ../Source/Firmware.c  
cc -I. -Wall -O2 -I../Source/ -DDBG\_ENABLE -DVERSION="\"56124\"" -c ../Source/main.c  
../Source/main.c: In function ‘main’:  
../Source/main.c:115:9: warning: variable ‘iVerify’ set but not used [-Wunused-but-set-variable]  
115 | int iVerify = 0;  
| ^ ~~~~~~  
cc uart.o JN51xx\_BootLoader.o Firmware.o main.o -o JennicModuleProgrammer

That looks better but I don’t know how to interpret the result…  
Any ideas?  
Thanks

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [November 25, 2024, 7:50am UTC](https://community.gladysassistant.com/t/resolu-zigate-ubuntu-erreur-installation/9198/4 "2024-11-25T07:50:49Z")

</div>

I simply copied and pasted your message into ChatGPT:

 ![Screenshot 2024-11-25 at 08.49.57](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/b/e/bea5144295c8cfbbccbc3c2cc1aaa4bc2ea6b7c9.png)

You can continue the tutorial, everything went well 🙂

---

<div class="post-metadata">

**Author:** ![thekassmachine](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/t/ed8c4c/32.png) [@thekassmachine](https://community.gladysassistant.com/u/thekassmachine)\
**Post date:** [November 25, 2024, 8:39am UTC](https://community.gladysassistant.com/t/resolu-zigate-ubuntu-erreur-installation/9198/5 "2024-11-25T08:39:12Z")

</div>

Thank you; I’m not used to

---

<div class="post-metadata">

**Author:** ![thekassmachine](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/t/ed8c4c/32.png) [@thekassmachine](https://community.gladysassistant.com/u/thekassmachine)\
**Post date:** [November 26, 2024, 8:21pm UTC](https://community.gladysassistant.com/t/resolu-zigate-ubuntu-erreur-installation/9198/6 "2024-11-26T20:21:04Z")

</div>

Another request: I can’t find my dongle in the integrations list. Which one would be the closest to the ZiGate?  
Thanks

---

<div class="post-metadata">

**Author:** ![cicoub13](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/cicoub13/32/4482_2.png) [@cicoub13](https://community.gladysassistant.com/u/cicoub13)\
**Post date:** [November 26, 2024, 8:54pm UTC](https://community.gladysassistant.com/t/resolu-zigate-ubuntu-erreur-installation/9198/7 "2024-11-26T20:54:45Z")

</div>

Zigate is supported experimentally by zigbee2mqtt ([ZiGate adapters | Zigbee2MQTT](https://www.zigbee2mqtt.io/guide/adapters/zigate.html))

You will need to manually edit the file `/var/lib/gladysassistant/zigbee2mqtt/z2m/configuration.yaml` to add

```auto
serial:
    adapter: zigate

```

then restart the container `gladys-z2m-zigbee2mqtt`

---

<div class="post-metadata">

**Author:** ![thekassmachine](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/t/ed8c4c/32.png) [@thekassmachine](https://community.gladysassistant.com/u/thekassmachine)\
**Post date:** [December 9, 2024, 7:21pm UTC](https://community.gladysassistant.com/t/resolu-zigate-ubuntu-erreur-installation/9198/8 "2024-12-09T19:21:01Z")

</div>

Thanks, I finally decided to go with the SONOFF dongle for simplicity.
