Code::Blocks Forums
User forums => Help => Topic started by: cybercoder on December 21, 2014, 01:54:34 pm
-
I am using the latest release of Code::Blocks (13.12) on Ubuntu 14.0.4 LTS (fully patched). The IDE opens just fine, I am able to create a C program and compile it, but when I go to run the console application I get a "Permission Denied" in the terminal window when it pops up.
I have read the FAQ and everything that I could find online about this issue. My working directory is $HOME/dev. Not working in the home directory appeared to be the source of many people's issues, but not mine. I haven't changed any configuration options after the install, so maybe I need to change a property or setting to get this to work?
I can compile, link, and run my test program in a terminal window just fine with gcc, so I know there is nothing wrong with the code and it executes just fine without any permissions problems.
I am running Ubuntu in a virtual machine (VMware) just in case there could be any clues here.
Any ideas??
Thanks
CD
-
Can you run you program in a terminal after you build it with Codeblocks?
-
Hi, thanks for asking. The build process fails as you may expect.
I have attached the screen shot of the error I get on the build.
-
Update - it appears to be an issue with Code::Blocks in some way. Likely the way it is configured is my guess. I just downloaded the Geany IDE and compiled, built and ran my sample C programs without any type of errors.
If there are any Ubuntu 14.0.4 users out there and you have Code::Blocks configured properly and working, please let me know.
Thanks.
-
This is really strange error.
Do you have a project?
-
Hi, thanks for asking. The build process fails as you may expect.
I have attached the screen shot of the error I get on the build.
It seems to be looking for gcc in /bin/sh ?
On my Kubuntu 14.10, I find gcc in /usr/bin
Perhaps check "Toolchain executables" setting under Settings -> Compiler
I have "Compiler's installation directory" as /usr
-
In fact it means that the shell (/bin/sh) cannot find the executable gcc.
But this is rather strange error.
-
Hi, it is indeed strange. I went to Settings-Compiler and my path is already set to /usr.
Under Settings->Environment, I have the following:
Shell to run commands in: /bin/sh
Terminal to launch console programs: xterm -T $TITLE -e
Both of the above are the install defaults.
Hi, thanks for asking. The build process fails as you may expect.
I have attached the screen shot of the error I get on the build.
It seems to be looking for gcc in /bin/sh ?
On my Kubuntu 14.10, I find gcc in /usr/bin
Perhaps check "Toolchain executables" setting under Settings -> Compiler
I have "Compiler's installation directory" as /usr
-
This is a default install. I actually installed Code::Blocks on a second Ubuntu 14.0.4 system and I get the exact same set of issues. As I noted above, I installed the Geany IDE and compile, build and run C and Python without error. It must be a simple setting or configuration within Code::Blocks on Ubuntu. Really a shame because I would like to use the IDE.
In fact it means that the shell (/bin/sh) cannot find the executable gcc.
But this is rather strange error.
-
Do you have executable files /usr/bin/gcc and /usr/bin/g++? If you have similarly named file, you have to correct your settings.