On Saturday, 1 February 2020 at 10:35:52 UTC, seany wrote:
Hi
I want to start a small server, that will be accessible form
outside. Not a huge deal right?
Not quite.
My machine: 4.15.0-66-generic #75-Ubuntu SMP Tue Oct 1 05:24:09
UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
DMD : DMD64 D Compiler v2.090.0
Copyright (C) 1999-2019 by The D Language Foundation, All
Rights Reserved written by Walter Bright
Now, I try to install dub from the official repo.
Then I do
* dub init server -t vibe.d
* cd server
* dub
I hit this issue : https://github.com/dlang/dub/issues/1712
As suggested, i try to build dub from github, following:
https://github.com/dlang/dub/releases
I call ./build.d - and everything stops, and machine crashes.
I then try to install DaNode:
https://github.com/DannyArends/DaNode
It breaks with : module std.algorithm import 'mean' not found
Then I try to install the Hunt Framework. It breaks with :
basic type
expected, not foreach
Please help. I really want this issue to be resolved-
Hey Seany,
DaNode author here, the mean function is only used to compute
some server statistics. I am sorry to hear it didn't compile out
of the box with the latest DMD compiler, I only tested up-to
2.088.0
I just installed the latest version 2.090.0 but also using this
version it compiles fine. Looking into the dlang docs it seems it
was moved from std.algorithm to std.algorithm.iteration, I wonder
why it doesn't find this function.
However I just added a mean function to the web server since it
should always find this function.
Could you pull the latest master branch and try compiling it
again ?
dub -- -p=8080
then see if the web server works by navigating to
http://localhost:8080/
let me know if you run into any other issues
Kind regards,
Danny