Planet Gnerator on Raspberry Pi

Planet Gnerator on Raspberry Pi

Return to topic list

Thu Jan 28 04:50:15 2016   by   C.O.S.
I am wondering if this code is executable on a Raspberry Pi 2. I compiled it and made it executable with gcc, but
$ ./planet

gets me

bash: ./planet: Permission denied

and

$ sudo ./planet

gets me

sudo: ./planet: command not found

Is it possible this won't work with the ARM-developed kernel?

P.S. I am a complete noob and want to make this work.
 
Thu Jan 28 21:28:39 2016   by   Ron Vantreese
Looks like an admin issue.... It looks like you can read it and modify it, but can't run it. Admin can't read or modify or run it either.

Try this:
chmod 700 ./planet
This will let you read, modify, and run it.

chmod 755 ./planet
Same as above, but will also allow other users (including admin) to read and run it.
 
Thu Feb 11 21:05:00 2016   by   C.O.S.
Thanks for the suggestion Ron, but no go. I get the same results after the chmod.

Best,
C.o.
 
Fri Feb 12 00:51:56 2016   by   Ron Vantreese
I'll ask a friend who regularly uses Raspberry Pi.
 
Fri Feb 12 02:27:07 2016   by   Ron Vantreese
Do "ls -al" in the same directory where planet exists... you should see it beginning something similar like ...

-rwxr-xr-x

or

-rwx------

Do that command and copy/paste the output here.
 

Return to topic list



New message:
Topic:
Posted by:

Type the values of the dice shown below:

Return to topic list