dmd on ubuntu installation

grauzone none at example.net
Sun May 10 19:17:45 PDT 2009


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:
>>>>>>
>>>>>> michael at ubuntu:~$ dmd
>>>>>> bash: /usr/local/bin/dmd: Permission denied
>>>>>> michael at 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:
>>>> michael at 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
>>>> michael at 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.
>>
>> michael at ubuntu:~/d$ cd ..
>> michael at ubuntu:~$ sudo chmod u+x /usr/local/bin/{dmd,dumpobj,obj2asm,rdmd}
>> [sudo] password for michael: 
>> michael at ubuntu:~$ dmd
>> bash: /usr/local/bin/dmd: Permission denied
>> michael at 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*
>> michael at ubuntu:~$ dmd
>> bash: /usr/local/bin/dmd: Permission denied
>> michael at 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".


More information about the Digitalmars-d-learn mailing list