LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Anjuta (https://www.linuxquestions.org/questions/linux-newbie-8/anjuta-785741/)

larrypoynor 01-29-2010 10:09 PM

Anjuta
 
I'm trying to run a short program in Anjunta but I keep getting
that I don't have execution permission to run the program. What do I need to get execution permission? I didn't start a new Project, I just wanted to run the code to see if it would work. I'm familar with Basic and would like to program in C or C++ so that I can write programs in Linux.

Any help is greatly appricated.

Larry

cdnLilwolf 01-30-2010 06:36 AM

If you're running Ubuntu, then in the Terminal you can use the "sudo" command. IE; sudo /home/larry/yourapp or wherever the location of the application in question. You could also set permissions for the file so that anybody can use it. For example, to set it ot allow everything from anywhere you would enter the command... sudo chmod 777 /home/larry/yourapp, though you can fine tune the parameters easily enough with the available GUI tools.

malekmustaq 01-30-2010 09:17 AM

Quote:

I'm trying to run a short program in Anjunta but I keep getting
that I don't have execution permission to run the program. What do I need to get execution permission?
Sometimes only root can run a program if it was not installed for everyone's use. You will need to run it as root by using 'sudo', example:

user@host-$ sudo /folder/anjunta
<Enter sudoer password> (it should run this way)

If not then it could be that the binary (executable) file lacked 'executable' permission, so you will set it as executable by adding the permission on the binary, that is--

user@host-$ sudo chmod ugo+x /folder/anjunta
<Enter password again>

Then try to run it again as previously given above.

Hope this helps.

Goodluck.


All times are GMT -5. The time now is 04:17 PM.