Reputation: 81
I want to compile a listener which connects the apache webserver with an arduino chip. To compile this listener it requires to have a D compiler installed. It is possible to install D on an apache webserver, compile the program and then execute it?
Upvotes: 1
Views: 71
Reputation: 19822
For what you want you need a module for the Apache Httpd that does something similar to what Martin Nowak's DREPL does (compile, link and execute the D source on the fly). I could be wrong, but this looks like a terrible idea for anything serious...
A much better (proven, rock solid) solution would be to use FastCGI, SCGI or even good, old CGI. There are implementations of all three in D on the Internet.
Adam Ruppe's arsd.cgi
module implements support for all the mentioned protocols: https://github.com/adamdruppe/arsd/blob/master/cgi.d
Upvotes: 1