User forums > Help

Permission Denied / No Code Formatting & Auto-Complete

(1/2) > >>

Linuxx:
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

TerryP:

--- 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.

--- End quote ---

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

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

It should repair permissions on your own files.

MortenMacFly:

--- Quote from: TerryP on January 30, 2010, 06:20:22 pm ---What are the permissions on the file(s) in question and the directory?

--- End quote ---
:lol:
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.

Linuxx:
Hi Folks!

Thanks for your answers!

I tried absolutely everything and I cannot seem to get CB to work again! It can't be that I'm the only one out there, struggling with this problem... My only option until now, was to use another machine - a window$ machine! Now, doesn't that somehow hurt?

Look, I'm rather new to linux (despite my user name) and to regularly using CB. I'm really willing to learn and to improve my skills. However, this thing makes me go ballistic! I haven't made any changes to my system (at least not that I am aware of) except that I kept it up to date. I've done all of this chmod and chown thing and I tried a lot more.

Here comes a brief description of my problem again, and I kindly ask you linux / CB cracks to please help me (and all of those other users, reading this thread) by giving "us" a step-by-step description of what there is to be done:
- No auto code completion
- No code formatting (start by entering something simple like #include <iostrem> that should turn green)
- A message, when clicking on "build and run" saying "sh: /home/[user]/[directory]/[prog. name]: Permission denied"

One thing I did, because CB would crash upon startup, was to delete the "default.conf"

Oh, by the way: Files & projects that already exist, run fine and the code formatting is there. Entering new code within one of these even works like it should. When working on an existing file, there seems to be absolutely nothing wrong.

Hope you can help!

Thanks!


Linuxx

Navigation

[0] Message Index

[#] Next page

Go to full version