LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-29-2010, 10:09 PM   #1
larrypoynor
LQ Newbie
 
Registered: Jan 2010
Location: East Texas
Distribution: Ububtu
Posts: 3

Rep: Reputation: 0
Smile 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
 
Old 01-30-2010, 06:36 AM   #2
cdnLilwolf
Member
 
Registered: Jan 2006
Location: Canada
Distribution: Kubuntu 11.10
Posts: 31

Rep: Reputation: 15
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.
 
Old 01-30-2010, 09:17 AM   #3
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,669

Rep: Reputation: 498Reputation: 498Reputation: 498Reputation: 498Reputation: 498
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Anjuta, C++, VB Petromaco Linux - Newbie 0 11-07-2007 03:51 PM
Anjuta Help TridentKing Programming 2 11-12-2006 01:34 AM
has anybody tried anjuta 2.0? ingerul Linux - Software 6 05-19-2005 12:18 PM
Anjuta lackluster Programming 7 02-25-2005 03:51 PM
Anjuta gg4 Linux - Software 3 02-04-2003 12:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration