Code::Blocks
March 11, 2010, 11:55:56 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Code::Blocks 8.02 has been released!
 
   Home   Help Search Login Register  :: WebsiteWiki  
Pages: [1]
  Send this topic  |  Print  
Author Topic: Permission Denied / No Code Formatting & Auto-Complete  (Read 285 times)
Linuxx
Newcomer
*
Posts: 3


« on: January 30, 2010, 05:20:11 pm »

Hello Everyone!

Since autumn I go to class for learning C++ and since then I am using CB. Must admit, it is a very nice piece of software and I really enjoy using it! I have it installed on three machines; two running window$ and one running ubuntu 9.10

However, some time ago it started creating more and more problems. The ones I'm struggling with now, are the following:
- When coding, up till now CB would always give me auto-complete options for what I was typing and the code was highlighted (e.g. "int" would always be blue and so on...).
- Next thing is that , when clicking on "build and run", I get an error message saying "sh: /home/[user]/[directory]/[prog. name]: Permission denied.

You should perhaps know that, not very long ago, CB would crash upon startup, and based on a recommendation from the forum, I deleted  "default.conf". After that CB started up again and I was really pleased to see that! However, I never used it again on that particular machine, so I believe that the latest error was present ever since and that it may have something to do with the above mentioned deleting of the config file.

As you can see by the error message, this thread is about CB running on my ubuntu machine.

And yes, I searched the internet before bothering you people! However, the comments I found did not exactly match my situation, because they mostly talk about a newly installed copy of CB; mine was running for about four months...

Hope you can help me...

Thanks!


Linuxx
« Last Edit: January 30, 2010, 05:25:50 pm by Linuxx » Logged
TerryP
Advanced newcomer
*
Posts: 26


WWW
« Reply #1 on: January 30, 2010, 06:20:22 pm »

Quote from: linuxx
Next thing is that , when clicking on "build and run", I get an error message saying "sh: /home/[user]/[directory]/[prog. name]: Permission denied.

What are the permissions on the file(s) in question and the directory?
Logged

Just Another Computer Geek
Folco
Advanced newcomer
*
Posts: 20



WWW
« Reply #2 on: January 30, 2010, 06:31:12 pm »

Perhaps you could do, as root :
chown -R [user]:[user] /home/[user]

It should repair permissions on your own files.
Logged

Sorry for my english, I'm french
MortenMacFly
Administrator
Lives here!
*****
Posts: 4298



WWW
« Reply #3 on: January 30, 2010, 08:29:38 pm »

What are the permissions on the file(s) in question and the directory?
Laughing
Why do you think we can tell? It's your PC/installation. However, just type:
ls -lisa
...on a shell and find out yourself. Most interesting are the parent directories, too. If you are not allowed to write in any of the parents, you won't be able to create child directories.
Logged

Logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
Compiling help
Debugging help
Portable C::B
Pages: [1]
  Send this topic  |  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!