On Mon, 30 Jun 2014 09:22:45 GMT, donald wrote:
Just doing
rm -rf /home/donald/.dub/packages/libevent-master
should do the trick. With recent versions of DUB, its also possible to specify the--force-remove
option to let DUB ignore any untracked files (also mentioned as a suggestion in the error message there).Still the same issue:
$cd vibenews $sudo rm -rf ~/.dub/packages/libevent-master $dub run Building vibe-d configuration "libevent", build type debug. Running dmd... FAIL .dub/packages/vibe-d-0.7.21-alpha.1/.dub/build/libevent-debug-linux.posix-x86_64-dmd-AB0707232CA963B5DA23C2232BBED51B vibe-d staticLibrary Error executing command run: DMD compile run failed with exit code -9
$cd ~/.dub/packages/vibe-d-0.7.21-alpha.1 $dub run FAIL .dub/build/libevent-debug-linux.posix-x86_64-dmd-2494B3E0AC5A6FFE1AD0A6AEA442D8E6 vibe-d staticLibrary Error executing command run: DMD compile run failed with exit code -9
Then I tried to build latest dub:
git clone github.com/D-Programming-Language/dub.dub cd dub ./build.sh Running dmd... Unable to fork: Cannot allocate memory
How much RAM does that machine have? The exit codes, as well as the last error message indicate that it runs out of memory (the kernel then kills the process with SIGKILL (9)).
In this case you could either just copy the binary over to that machine, or set up a swap file, but that may of course result in very slow compilation.