# httpServer do not compile

**URL:** <https://forum.legato.io/t/httpserver-do-not-compile/6218>\
**Category:** Legato Application Framework\
**Created:** [June 2, 2022, 10:36pm UTC](https://forum.legato.io/t/httpserver-do-not-compile/6218 "2022-06-02T22:36:48Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheGod](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/thegod/32/252_2.png) [@TheGod](https://forum.legato.io/u/TheGod)\
**Post date:** [June 2, 2022, 10:36pm UTC](https://forum.legato.io/t/httpserver-do-not-compile/6218/1 "2022-06-02T22:36:49Z")

</div>

Hi,  
I have downloaded httpServer app from:  
[https://github.com/legatoproject/legato-af/tree/master/apps/sample/httpServer](https://github.com/legatoproject/legato-af/tree/master/apps/sample/httpServer)

I cannot compile the project. I use VSCode wp76 legato version 18.06.3 and wp77 legato version 19.11.5. I have got following error:

[78/600] Running external build step  
FAILED: lighttpdExternalBuild\_line0  
…  
ninja: build stopped: subcommand failed.

Could you help. Thanks

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [June 3, 2022, 5:12am UTC](https://forum.legato.io/t/httpserver-do-not-compile/6218/2 "2022-06-03T05:12:05Z")

</div>

You can see here, it should be fine

> [@httpServer app can't link to lighttpd](https://forum.legato.io/t/httpserver-app-cant-link-to-lighttpd/5354/7):
>
> Thanks for the reply, I am still getting that HTTP 500 error message. And when I try to right click and save the .py on my computer it saves a web page with the HTTP 500 message. I see this log message when I start up httpServer: Aug 17 15:06:44 swi-mdm9x28-wp user.notice kernel: [22314.249780] audit: type=1400 audit(1597676804.719:13): lsm=SMACK fn=smack\_inode\_getattr action=denied subject="app.httpServer" object="admin" requested=r pid=8755 comm="lighttpd" path="pipe:[122222]" dev="pipefs" i…

---

<div class="post-metadata">

**Author:** ![TheGod](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/thegod/32/252_2.png) [@TheGod](https://forum.legato.io/u/TheGod)\
**Post date:** [June 3, 2022, 7:40am UTC](https://forum.legato.io/t/httpserver-do-not-compile/6218/3 "2022-06-03T07:40:57Z")

</div>

Thanks for quick reply, but I do not have problem with not working link. I have got problem with compiling the httpServer app.  
I have changed version to swi-fx30-catm\_3.0.0 and I have got components/sslCertComponent/gen.sh: Permission denied

 ![image](https://us1.discourse-cdn.com/flex019/uploads/legato1/original/2X/9/99e8f08afe1a81321bea36c1c7a8a8c879a91738.png)

So I have switched off sslCertComponent because this generates certificate only and it has compiled, but now i cannot start the program

 ![image](https://us1.discourse-cdn.com/flex019/uploads/legato1/original/2X/d/d71e2461ff53509bbebf5dfcfcd9ae06f6488322.png)

Error i have got when i try to start it  
 ![image](https://us1.discourse-cdn.com/flex019/uploads/legato1/original/2X/7/7a84a6321b85c2e62f246de152986edfdc144caf.png)

 ![image](https://us1.discourse-cdn.com/flex019/uploads/legato1/original/2X/d/d85e941cc683a3a27a00df69ec507e39c89df5a7.png)

Link [http://192.168.2.2:8080/diagnostics.py](http://192.168.2.2:8080/diagnostics.py) does not work of course. Iptables is setup.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [June 3, 2022, 2:09pm UTC](https://forum.legato.io/t/httpserver-do-not-compile/6218/4 "2022-06-03T14:09:18Z")

</div>

You can try my application, I can compile with swi-fx30-catm\_3.0.0.

1. leaf shell
2. cd httpServer/Target\_Legato\_Debug
3. make

[httpServer\_unsandboxed.zip](https://forum.legato.io/uploads/short-url/fErPYDheZfaX8uPXpWhCkRCCHtU.zip) (9.8 MB)

---

<div class="post-metadata">

**Author:** ![TheGod](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/thegod/32/252_2.png) [@TheGod](https://forum.legato.io/u/TheGod)\
**Post date:** [June 3, 2022, 2:44pm UTC](https://forum.legato.io/t/httpserver-do-not-compile/6218/5 "2022-06-03T14:44:48Z")

</div>

Hi @jyijyi  
Your code has worked straight away. Thanks!!!  
I will check other platforms.

 ![image](https://us1.discourse-cdn.com/flex019/uploads/legato1/original/2X/3/3f413d051cbd42c175367db905bee53310996dca.png)

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [June 4, 2022, 2:25am UTC](https://forum.legato.io/t/httpserver-do-not-compile/6218/6 "2022-06-04T02:25:36Z")

</div>

Just a reminder, if you want to compile for WP76 module, you need to open the Makefile and change target to wp76xx instead of wp77xx
