digitalmars.D.learn - Permission denied under Ubuntu.
- Charles McAnany (12/12) Aug 08 2011 Hi, all.
- Andrew Wiley (3/15) Aug 08 2011 Try `chmod +x dmd` (when in the same directory as the dmd executable).
- Johannes Pfau (9/11) Aug 09 2011 Shouldn't it be `chmod +x testFile`? If I read his question correctly,
- Andrew Wiley (4/13) Aug 09 2011 If that's the case, we may have found a reason for DMD to emit a warning
Hi, all. I installed dmd_2.054-0_amd64.deb on Ubuntu 11.04, and the compiler seems to work fine, but I can't execute its output. Here's what I'm doing: (ls to show directory contents) $ dmd testFile.d $ ./testFile bash: ./testFile: Permission denied testFile.d is the Hello world program exactly as it appears on page 1 of TDPL. Has anyone else had this issue? If it helps, I let the software center thing do the installing, so if I need to manually change the permission of something, I probably haven't done that.
Aug 08 2011
On Mon, Aug 8, 2011 at 4:30 PM, Charles McAnany <mcanance rose-hulman.edu>wrote:Hi, all. I installed dmd_2.054-0_amd64.deb on Ubuntu 11.04, and the compiler seems to work fine, but I can't execute its output. Here's what I'm doing: (ls to show directory contents) $ dmd testFile.d $ ./testFile bash: ./testFile: Permission denied testFile.d is the Hello world program exactly as it appears on page 1 of TDPL. Has anyone else had this issue? If it helps, I let the software center thing do the installing, so if I need to manually change the permission of something, I probably haven't done that.Try `chmod +x dmd` (when in the same directory as the dmd executable). That should get fixed in the package though.
Aug 08 2011
Andrew Wiley wrote:Try `chmod +x dmd` (when in the same directory as the dmd executable). That should get fixed in the package though.Shouldn't it be `chmod +x testFile`? If I read his question correctly, compiling with dmd worked, only running the compiled program failed. However, dmd always correctly flagged files as executable for me. Charles could you try `chmod +x testFile` and see if it fails? The filesystem testFile is on could be configured to disallow executing programs. -- Johannes Pfau
Aug 09 2011
On Tue, Aug 9, 2011 at 1:40 AM, Johannes Pfau <spam example.com> wrote:Andrew Wiley wrote:Yes, it should be. /me needs to learn him an English for great good.Try `chmod +x dmd` (when in the same directory as the dmd executable). That should get fixed in the package though.Shouldn't it be `chmod +x testFile`? If I read his question correctly, compiling with dmd worked, only running the compiled program failed.However, dmd always correctly flagged files as executable for me. Charles could you try `chmod +x testFile` and see if it fails? The filesystem testFile is on could be configured to disallow executing programs.If that's the case, we may have found a reason for DMD to emit a warning that Walter will approve!
Aug 09 2011