Hi everyone,
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[0] = source/
import path[1] = /usr/include/dmd/phobos
import path[2] = /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:
sudo dub
The build worked!
Does anyone know why I have to build as root? Has anyone encountered this before?
Thanks,
fennellstyle