Michael P. wrote:
Michael P. Wrote:
Mike Parker Wrote:
Michael P. wrote:
Frits van Bommel Wrote:
Michael P. wrote:
But when I type dmd in the terminal, I get this:
mich...@ubuntu:~$ dmd
bash: /usr/local/bin/dmd: Permission denied
mich...@ubuntu:~$
Do you know why?
Looks like you didn't "chmod +x" it. Zip files don't store *nix permissions...
Okay, but what should I do to fix that? I tried:
mich...@ubuntu:~$ chmod u+x /usr/local/bin/{dmd,dumpobj,obj2asm,rdmd}
chmod: changing permissions of `/usr/local/bin/dmd': Operation not permitted
chmod: changing permissions of `/usr/local/bin/dumpobj': Operation not permitted
chmod: changing permissions of `/usr/local/bin/obj2asm': Operation not permitted
chmod: changing permissions of `/usr/local/bin/rdmd': Operation not permitted
mich...@ubuntu:~$
but that happened. :(
Try adding 'sudo' to the front of the chmod command line. You have to
execute it as root.
Okay, I still can't run dmd. I get the same thing. But it works when I do sudo
dmd.
mich...@ubuntu:~/d$ cd ..
mich...@ubuntu:~$ sudo chmod u+x /usr/local/bin/{dmd,dumpobj,obj2asm,rdmd}
[sudo] password for michael:
mich...@ubuntu:~$ dmd
bash: /usr/local/bin/dmd: Permission denied
mich...@ubuntu:~$ sudo dmd
Digital Mars D Compiler v1.043
Copyright (c) 1999-2009 by Digital Mars written by Walter Bright
Documentation: http://www.digitalmars.com/d/1.0/index.html
Usage:
*snip*
mich...@ubuntu:~$ dmd
bash: /usr/local/bin/dmd: Permission denied
mich...@ubuntu:~$
Any suggestions now?
BTW, I did get a .d file to compile. Had to use 'sudo dmd' and not just 'dmd'.
The files are probably not readable (r) or executable (x) by all other
users (o). Try "chmod o+rx /usr/local/bin/dmd".