News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Errors with Code::Blocks 13.12 and Ubuntu 14.0.4 -- Need Help

Started by cybercoder, December 21, 2014, 01:54:34 PM

Previous topic - Next topic

cybercoder

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


oBFusCATed

Can you run you program in a terminal after you build it with Codeblocks?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

cybercoder

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.




cybercoder

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. 


oBFusCATed

(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

cacb

Quote from: cybercoder on December 21, 2014, 03:38:01 PM
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


oBFusCATed

In fact it means that the shell (/bin/sh) cannot find the executable gcc.
But this is rather strange error.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

cybercoder

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. 



Quote from: cacb on December 21, 2014, 08:31:21 PM
Quote from: cybercoder on December 21, 2014, 03:38:01 PM
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

cybercoder

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. 


Quote from: oBFusCATed on December 22, 2014, 12:05:07 AM
In fact it means that the shell (/bin/sh) cannot find the executable gcc.
But this is rather strange error.

oBFusCATed

Do you have executable files /usr/bin/gcc and /usr/bin/g++? If you have similarly named file, you have to correct your settings.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]