On Fri, 18 Jul 2014 07:50:01 GMT, Sönke Ludwig wrote:

On Fri, 18 Jul 2014 07:16:20 GMT, Dimitar Dimitrov wrote:

On Thu, 17 Jul 2014 21:30:26 GMT, Dimitar Dimitrov wrote:

On Thu, 17 Jul 2014 22:26:43 +0200, Sönke Ludwig wrote:

Am 17.07.2014 18:42, schrieb Dimitar Dimitrov:

Hello,

I am having troubles running the default vibe.d application on Ubuntu 12.04.

I installed dmd, dub, vibe.d and all dependencies. I tried to compile a "Hello world" application with dmd and it works as expected.

With dub i created a new project dub init <project-name> vibe.d The project is created as expected and when i run 'dub' from project's folder i get the following:
(...)

Which version of DMD do you have installed? Seems like the code for
appender() differs from the one I'm using.

DMD32 D Compiler v2.063.2

I upgraded to DMD32 D Compiler v2.065

Now i am getting the following:

vibe-d: ["vibe-d", "libevent", "openssl"]
dwww: ["dwww", "vibe-d", "libevent", "openssl"]
Building vibe-d configuration "libevent", build type debug.
Running dmd...
FAIL ../../root/.dub/packages/vibe-d-0.7.20/.dub/build/libevent-debug-linux.posix-x86-dmd-EABE55AD321D1A1F9C45B04757FEEB8C vibe-d staticLibrary
Error executing command run: DMD compile run failed with exit code -9

This indicates that the compiler may have run out of memory. Unfortunately, the build process can be quite memory hungry. A way to work around that would be to get the latest 0.9.22-rc.1 version of DUB here and then use --build-mode=singleFile. Another possibility would be to enable a swap file, if the platform permits it (assuming this is a VM without a swap file).

I tried both - got DUB 0.9.22-rc.1 and ran dub --build-mode=singleFile It ran out of memory again. Then i created a 4GB swap file and tried with that but again out of memory.

I am using DigitalOcean droplet with 512MB of RAM...