There are some other bad news, I switched from rdmd to dub
package manager since I need a package from Adam D. Ruppe.
It is all good and well: this one works perfectly.
#!/usr/bin/env dub
/+ dub.sdl:
name "hello"
+/
import std.stdio;
void main()
{
writeln(`Content-type: text/html`);
writeln(``);
writeln(`<body style="background: lightgreen">CGI D
Example</body>`);
}
But, once I add dub dependency, the error appears: Internal
Server Error
#!/usr/bin/env dub
/+ dub.sdl:
name "hello"
dependency "arsd-official" version="~>4.0.1"
+/
import std.stdio;
void main()
{
writeln(`Content-type: text/html`);
writeln(``);
writeln(`<body style="background: lightgreen">CGI D
Example</body>`);
}
This seems to work well when running not from cgi, so there is no
syntax error.