# Build error RocketChat Electron app

**URL:** <https://forums.rocket.chat/t/build-error-rocketchat-electron-app/2275>\
**Category:** Community Support\
**Created:** [October 17, 2018, 2:32pm UTC](https://forums.rocket.chat/t/build-error-rocketchat-electron-app/2275 "2018-10-17T14:32:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![roman.zharikov](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/roman.zharikov/32/617_2.png) [@roman.zharikov](https://forums.rocket.chat/u/roman.zharikov)\
**Post date:** [October 17, 2018, 2:32pm UTC](https://forums.rocket.chat/t/build-error-rocketchat-electron-app/2275/1 "2018-10-17T14:32:58Z")

</div>

#RocketChatElectron

Good afternoon and thanks for the free tool RocketChat!

We have our own RocketChat server with some of our improvements. Now we need to create a distributed **desktop application** and I follow the instructions from here [https://github.com/RocketChat/Rocket.Chat.Electron#development](https://github.com/RocketChat/Rocket.Chat.Electron#development).

But after I want to compile the executable file with the `yarn release` command, an error occurs.

`[16:13:55] 'release:linux' errored after 7.05 min`  
`[16:13:55] Error: /usr/local/nvm/v8.11.3/bin/node exited with code 1`  
`[16:13:55] Error in plugin "run-sequence(release:linux)"`  
`In file included from /usr/include/stdlib.h:24:0, from ../vendor/hunspell/src/hunspell/affentry.cxx:4: /usr/include/features.h:367:25: fatal error: sys/cdefs.h: There is no such file or directory. compilation terminated.`

![1539941649096](https://us1.discourse-cdn.com/flex021/uploads/rocketchat/original/1X/2be70015e82cf0ebd93958d0469036e82c202d62.jpeg)

all dependencies and libraries are installed. node version 8.11.3, yarn 1.10.1, npm 5.6.0,

Help to understand what is the error and where to look about?

---

<div class="post-metadata">

**Author:** ![roman.zharikov](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/roman.zharikov/32/617_2.png) [@roman.zharikov](https://forums.rocket.chat/u/roman.zharikov)\
**Post date:** [March 19, 2019, 7:29am UTC](https://forums.rocket.chat/t/build-error-rocketchat-electron-app/2275/2 "2019-03-19T07:29:10Z")

</div>

I found and fixed the problem myself. If anyone needs it, a note (in russian lang) on my blog ([https://zharikov.site/note/fix\_node\_gyp\_rebuild\_error\_rocket\_chat\_electron.html](https://zharikov.site/note/fix_node_gyp_rebuild_error_rocket_chat_electron.html))
