> -rw-r--r-- 1 mictadlo mictadlo 14K Apr 6 23:49 hello Notice, there, that your hello binary is *still* not executable.
I don't think that this has anything to do with rustc at this point. On Fri, Apr 6, 2012 at 5:00 PM, Mic <[email protected]> wrote: > Hello, > Thank you, but I get still permission denied. > > $ umask > 0022 > $ chmod +x hello > $ ./hello > bash: ./hello: Permission denied > $ ls -ahl > total 32K > drwx------ 2 mictadlo mictadlo 4.0K Apr 6 23:54 . > drwx------ 27 mictadlo mictadlo 8.0K Jan 1 1970 .. > -rw-r--r-- 1 mictadlo mictadlo 14K Apr 6 23:49 hello > -rw-r--r-- 1 mictadlo mictadlo 77 Apr 6 23:46 hello.rs > > $ rustc -v > rustc 0.2 > host: x86_64-unknown-linux-gnu > > I am using Sabayon linux 8 64 bit. > > On Sat, Apr 7, 2012 at 1:16 AM, Rick Richardson <[email protected]> > wrote: >> >> Also, out of curiosity, what is your umask? and if you 'chmod +x >> hello' does it work then? >> >> >> On Fri, Apr 6, 2012 at 11:08 AM, Rick Richardson >> <[email protected]> wrote: >> > Your code works perfectly for me (except there are two newlines >> > between each print (the \n is redundant)) >> > >> > What is your platform and rustc version? >> > >> > On Fri, Apr 6, 2012 at 9:53 AM, Mic <[email protected]> wrote: >> >> Hello, >> >> I am getting by executing the bellow code with Permission denied >> >> >> >> fn main() { >> >> for i in [1, 2, 3] { >> >> io::println(#fmt("hello %d\n", i)); >> >> } >> >> } >> >> >> >> $ rustc hello.rs >> >> $ ./hello >> >> bash: ./hello: Permission denied >> >> $ ls -ahl >> >> total 44K >> >> drwx------ 2 mictadlo mictadlo 4.0K Apr 6 23:49 . >> >> drwx------ 27 mictadlo mictadlo 8.0K Apr 6 23:43 .. >> >> -rw-r--r-- 1 mictadlo mictadlo 14K Apr 6 23:49 hello >> >> >> >> What did I do wrong? >> >> >> >> Thank you in advance. >> >> >> >> Cheers, >> >> >> >> _______________________________________________ >> >> Rust-dev mailing list >> >> [email protected] >> >> https://mail.mozilla.org/listinfo/rust-dev >> >> > > _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
