This is my first time using dub. I kept getting build failures trying to build the stub application
dub init creates.
[fennellstyle@localhost ~/dev/test]$ dub
Performing "debug" build using dmd for x86_64.
test ~master: building configuration "application"...
Error: module app is in file 'source/app.d' which cannot be read
import path = source/
import path = /usr/include/dmd/phobos
import path = /usr/include/dmd/druntime/import
dmd failed with exit code 1.
Eventually, I figured "cannot be read" may mean some permissions issue. Running as root:
The build worked!
Does anyone know why I have to build as root? Has anyone encountered this before?