LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-20-2008, 01:09 PM   #1
hemabhala
LQ Newbie
 
Registered: Jun 2008
Posts: 1

Rep: Reputation: 0
Post C compiler cannot create executables


Gurus,

I am getting a compiler error when trying to configure....

root@Nitima-Linux:~/opt/nfast/driver# ./configure
loading cache ./config.cache
checking for gcc... gcc
checking whether the C compiler (gcc ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
root@Nitima-Linux:~/opt/nfast/driver#

tried
gcc - v

gives the following output

root@Nitima-Linux:/usr/include# gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.1.3 --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)


However I am unable to understand what the problem is

The version is after running uname -r
2.6.22-14-generic


The kernel headers are in the following directory
root@Nitima-Linux:/usr/src/linux-headers-2.6.22-14-generic/include# ls
acpi asm-frv asm-mips asm-sparc64 keys rxrpc
asm asm-generic asm-parisc asm-um linux scsi
asm-alpha asm-h8300 asm-powerpc asm-v850 math-emu sound
asm-arm asm-i386 asm-ppc asm-x86_64 media video
asm-arm26 asm-ia64 asm-s390 asm-xtensa mtd
asm-avr32 asm-m32r asm-sh config net
asm-blackfin asm-m68k asm-sh64 crypto pcmcia
asm-cris asm-m68knommu asm-sparc Kbuild rdma
root@Nitima-Linux:/usr/src/linux-headers-2.6.22-14-generic/include#

I was told that the kernel headers environment are not set properly
I am unsure what I am doing wrong...

Please help...

Thanks in advance

Hema
 
Old 06-20-2008, 01:50 PM   #2
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
Check if you have g++,build-essential and libc6-dev packages installed.If not,install them.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
C compiler cannot create executables freemanty Ubuntu 1 02-13-2007 03:42 PM
c compiler cannot create executables karphead Slackware 8 09-30-2005 11:20 PM
My C compiler cannot create executables, help rbmako69 Linux - Software 15 06-16-2004 03:22 PM
C compiler cannot create executables... Sfpiano Linux - Software 9 12-11-2003 11:28 AM
C compiler cannot create executables chrismiceli Linux - General 2 05-11-2003 04:21 PM


All times are GMT -5. The time now is 02:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration