D ubuntu 7.10
Neil Vice
sardonicpresence at gmail.com
Wed Feb 6 23:24:22 PST 2008
> I can only run dmd as root, or i get the error:
> main.d: module main cannot read file 'main.d'
This is also the error you get when you run the compiler from a directory
that is not the root of the source tree without the -I flag. Given that you
only get it as root I would assume that it relates to the file permissions
of your source file(s) and or the directories containing them.
> And when I run dmd as root on main.d I get a compile complete:
> gcc main.o -o main -m32 -lphobos -lpthread -lm
>
> and it makes a .o file and binary, but when i type: main to run the binary
> I doesn't recognize the command as a program...
This may or may not seem obvious but unless you have . in your PATH you may
have to use ./main to execute your program. If this isn't your problem more
information as to the error messages your are encountering might be useful.
Neil
More information about the Digitalmars-d-learn
mailing list