Author Topic: Errors with Code::Blocks 13.12 and Ubuntu 14.0.4 -- Need Help  (Read 5148 times)

Offline cybercoder

  • Single posting newcomer
  • *
  • Posts: 5
Errors with Code::Blocks 13.12 and Ubuntu 14.0.4 -- Need Help
« 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


Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Errors with Code::Blocks 13.12 and Ubuntu 14.0.4 -- Need Help
« Reply #1 on: December 21, 2014, 03:08:11 pm »
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!]

Offline cybercoder

  • Single posting newcomer
  • *
  • Posts: 5
Re: Errors with Code::Blocks 13.12 and Ubuntu 14.0.4 -- Need Help
« Reply #2 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.




Offline cybercoder

  • Single posting newcomer
  • *
  • Posts: 5
Re: Errors with Code::Blocks 13.12 and Ubuntu 14.0.4 -- Need Help
« Reply #3 on: December 21, 2014, 04:42:03 pm »
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. 


Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Errors with Code::Blocks 13.12 and Ubuntu 14.0.4 -- Need Help
« Reply #4 on: December 21, 2014, 06:49:34 pm »
This is really strange error.
Do you have a project?
(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!]

Offline cacb

  • Lives here!
  • ****
  • Posts: 536
Re: Errors with Code::Blocks 13.12 and Ubuntu 14.0.4 -- Need Help
« Reply #5 on: December 21, 2014, 08:31:21 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


Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Errors with Code::Blocks 13.12 and Ubuntu 14.0.4 -- Need Help
« Reply #6 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.
(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!]

Offline cybercoder

  • Single posting newcomer
  • *
  • Posts: 5
Re: Errors with Code::Blocks 13.12 and Ubuntu 14.0.4 -- Need Help
« Reply #7 on: December 22, 2014, 01:29:14 pm »
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

Offline cybercoder

  • Single posting newcomer
  • *
  • Posts: 5
Re: Errors with Code::Blocks 13.12 and Ubuntu 14.0.4 -- Need Help
« Reply #8 on: December 22, 2014, 01:34:26 pm »
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.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Errors with Code::Blocks 13.12 and Ubuntu 14.0.4 -- Need Help
« Reply #9 on: December 27, 2014, 01:19:50 pm »
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!]