简体   繁体   中英

Is it possible to install a D compiler on the apache webserver?

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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM