Go Back   TechArena Community > Software > Operating Systems
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 13-03-2010
Member
 
Join Date: Nov 2009
Posts: 518
C compiler can't create executables

Hello ,
I am a new guy to operate the Linux world (Red Hat 8.0 kernal 2.4.18-14 ) and when I would like to be able to use this system but when trying to install almost anything I got different error messages trying to configure.

during running ./configure gives me these errors and it says that a local through auto header is missing and gcc isn't there and neither is cc and I am getting such error :

configure: error: installation or configuration problem: C compiler cannot create executable's.
Reply With Quote
  #2  
Old 13-03-2010
Member
 
Join Date: Jan 2008
Posts: 3,384
C compiler can't create executables

hey !
You are running with linux (Red hat Linux ) and have you installed the build-essential package,The build-essential is capable to restrict this error.try this one and post me the contents generated by the "config.log".

Now try to use this command as -

Code:
sudo apt-get install build-essential
Reply With Quote
  #3  
Old 13-03-2010
Member
 
Join Date: May 2008
Posts: 4,080
C compiler can't create executables

I think also the same that you need to install the build-essential to get away from this error.If you are getting the same error then you need to take a look on the log file,which type of error it is generating.

If your log file generate this content like -

configure:559: checking for a BSD compatible install
configure:612: checking whether build environment is sane
configure:669: checking whether make sets ${MAKE}
configure:715: checking for working aclocal
configure:728: checking for working autoconf
configure:741: checking for working automake
configure:754: checking for working autoheader
configure:767: checking for working makeinfo
configure:785: checking for gcc
configure:815: checking for cc


Then you can use another utility called libc6-dev g++ gcc which takes the command form as follows -

Code:
apt-get install toolchain-source
apt-get install gcc-4.0
Reply With Quote
  #4  
Old 13-03-2010
Member
 
Join Date: Apr 2008
Posts: 3,260
C compiler can't create executables

Hello,
I did a lot of search on the Internet to find the solution related to this error and got something which is quite easy and can help you to restrict the error.

Add the following line into the source:
Code:
n -s /usr/bin/c++ /usr/bin/g++
- Result: ln: "/usr/bin/g++": Filen finns
ln -s /usr/bin/cc /usr/local/bin/gcc
ln -s /usr/bin/c++ /usr/local/bin/g++
ln -s /usr/bin/cc /usr/bin/gcc
- Result: ln: "/usr/bin/gcc": Filen finns
Reply With Quote
  #5  
Old 13-03-2010
Member
 
Join Date: Nov 2009
Posts: 518
C compiler can't create executables

I installed the gcc but getting some error during installation and implementation,would you tell me the exact way and if you have any possible solution to view this error.

The error demo generated by the source like this -

sudo apt-get install libc6-dev g++ gcc
Password:
Reading Package Lists... Done
Building Dependency Tree... Done
libc6-dev ?r redan den senaste versionen.
g++ ?r redan den senaste versionen.
gcc ?r redan den senaste versionen.
0 uppgraderade, 0 nyinstallerade, 0 att ta bort och 0 ej uppgraderade.


But ,there is nothing gonna happen after this and having the same problem as before.
Reply With Quote
  #6  
Old 13-03-2010
Member
 
Join Date: Apr 2008
Posts: 3,291
C compiler can't create executables

Before executing the above suggested technique by the Solomon and now you are getting the same error then you should try to configure and declare the environmental variables.

You need to define the environmental variable as suggested below to execute the Solomon script.Just define the variable from the prompt using export command -

set the CC vble

$export CC=gcc
Reply With Quote
Reply

  TechArena Community > Software > Operating Systems
Tags: , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "C compiler can't create executables"
Thread Thread Starter Forum Replies Last Post
Problem in running shared executables using Embedded Linux uClibc X-quisite Operating Systems 4 19-11-2010 07:34 AM
Autorun CD using Batch file for Multiple Executables DANIEL 602 Windows Software 5 19-01-2010 09:54 PM
How do I convert my C programs to executables? Damien25 Software Development 5 16-01-2010 08:29 PM
error: C++ compiler cannot create executables Unix'EM Operating Systems 4 15-09-2009 06:27 PM
Problem with running Executables Suzane Software Development 2 17-04-2009 03:34 PM


All times are GMT +5.5. The time now is 05:17 PM.