Project

General

Profile

Hello World Starter Guide Permission Issue

Added by Tim Eastham about 12 years ago

I am a newbie to the arm environment and quite green on linux as well. I have been going through the hello world example located here (http://support.criticallink.com/redmine/projects/arm9-platforms/wiki/Starter_Guide). I have worked my way to the point where I am attempting to launch the application. I ssh to the root and get a password prompt. I type mitydsp for the password and it drops me to the root@mityomapl138:~# prompt. I type "cd /tmp" and I get the root@mityomapl138:/var/volatile/tmp# prompt. When I execute the program with "./hello.o", I get an error that says "-sh: ./hello.o: Permission denied" What am I doing wrong?

Thanks.


Replies (2)

RE: Hello World Starter Guide Permission Issue - Added by Gregory Gluszek about 12 years ago

Hi Tim,

First, the reason you're getting the "-sh: ./hello.o: Permission denied" error is because the file you are trying to execute does not have execute permissions set. (You can see a file's permissions using the "ls -l" command and modify them using the "chmod" command (The Linux man pages or Google will be much more effective in explaining the finer details of these commands, so I will not attempt to elaborate here)). However, before we just change the permissions on "hello.o," I'm wondering if you're trying to run the correct file or not. The *.o extension typically designates a file as an object file and not the compiled executable. Did you modify the name of the executable to have the *.o extension? If you didn't, there should be an executable file created as part of building the example project (it might just be called "hello").

Hope this helps you get on right track. Let us know if it doesn't or if you have any other questions or issues.

Thanks,
\Greg

RE: Hello World Starter Guide Permission Issue - Added by Tim Eastham about 12 years ago

You rock! It was the file that was the problem. I found the executable and it worked. Thanks!

    (1-2/2)
    Go to top
    Add picture from clipboard (Maximum size: 1 GB)