Permission denied for codebloks [duplicate]

i have installed code blocks from Ubuntu software Center. When I create a new project and compile it, in the output window it say "permission denied". How must I run code blocks, or where should I place the project files to remove this error ?!

5

2 Answers

The most likely explanation is that you have selected a codeblocks workspace that is on a non-Linux filesystem (such as an external NTFS hard drive). Such filesystems don't natively support Unix-style permission bits, so there's no way to mark files as executable (except globally, at mount time).

If that is the case here, then the easiest solution is to move your workspace to your regular Linux home directory.

1

Make sure you're the owner of the files. If you're not, you can run this:

sudo chown usrname:username /path/to/your/file

Also make sure it's executable:

chmod +x /path/to/your/file

You Might Also Like