digitalmars.D.learn - Permission denied under Ubuntu.
- Charles McAnany <mcanance rose-hulman.edu> Aug 08 2011
- Andrew Wiley <wiley.andrew.j gmail.com> Aug 08 2011
- Johannes Pfau <spam example.com> Aug 09 2011
- Andrew Wiley <wiley.andrew.j gmail.com> Aug 09 2011
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
--0016362852564a7c4a04aa09af17 Content-Type: text/plain; charset=ISO-8859-1 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. --0016362852564a7c4a04aa09af17 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <div class=3D"gmail_quote">On Mon, Aug 8, 2011 at 4:30 PM, Charles McAnany = <span dir=3D"ltr"><<a href=3D"mailto:mcanance rose-hulman.edu">mcanance = rose-hulman.edu</a>></span> wrote:<br><blockquote class=3D"gmail_quote" = style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"> Hi, all.<br> I installed =A0dmd_2.054-0_amd64.deb on Ubuntu 11.04, and the compiler<br> seems to work fine, but I can't execute its output. Here's what I&#= 39;m<br> doing: (ls to show directory contents)<br> <br> $ dmd testFile.d<br> $ ./testFile<br> =A0 bash: ./testFile: Permission denied<br> <br> testFile.d is the Hello world program exactly as it appears on page 1<br> of TDPL.<br> <br> Has anyone else had this issue? If it helps, I let the software center<br> thing do the installing, so if I need to manually change the<br> permission of something, I probably haven't done that.<br></blockquote>= <div><br></div><div>Try `chmod +x dmd` (when in the same directory as the d= md executable).</div><div>That should get fixed in the package though.</div=
</div><br> --0016362852564a7c4a04aa09af17--
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
--001636ed6ca8e625a304aa0ea225 Content-Type: text/plain; charset=ISO-8859-1 On Tue, Aug 9, 2011 at 1:40 AM, Johannes Pfau <spam example.com> wrote: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.
Yes, it should be. /me needs to learn him an English for great good.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.
that Walter will approve! --001636ed6ca8e625a304aa0ea225 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <div class=3D"gmail_quote">On Tue, Aug 9, 2011 at 1:40 AM, Johannes Pfau <s= pan dir=3D"ltr"><<a href=3D"mailto:spam example.com">spam example.com</a=></span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 =
<div class=3D"im">Andrew Wiley wrote:<br> >Try `chmod +x dmd` (when in the same directory as the dmd executable).<= br> >That should get fixed in the package though.<br> <br> </div>Shouldn't it be `chmod +x testFile`? If I read his question corre= ctly,<br> compiling with dmd worked, only running the compiled program failed.<br></b= lockquote><div><br></div><div>Yes, it should be. /me needs to learn him an = English for great good.=A0</div><div><br></div><blockquote class=3D"gmail_q= uote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1e= x;"> <br> However, dmd always correctly flagged files as executable for me.<br> Charles could you try `chmod +x testFile` and see if it fails? The<br> filesystem testFile is on could be configured to disallow executing<br> programs.<br> <font color=3D"#888888"> <br></font></blockquote><div><br></div><div>If that's the case, we may = have found a reason for DMD to emit a warning that Walter will approve!=A0<= /div></div><br> --001636ed6ca8e625a304aa0ea225--
Aug 09 2011









Andrew Wiley <wiley.andrew.j gmail.com> 