LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-17-2006, 07:40 PM   #1
nectron101
Member
 
Registered: Nov 2004
Distribution: SuSE 9.1 Personal
Posts: 41

Rep: Reputation: 15
gcc cannot create executables?!


Hello,

I've just installed gcc for the first time, in order to compile programs.

On the first test drive of gcc, here's what I got:

Code:
linux:/home/Nectron/Documents/Programs/gtk+-2.8.0 # ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... no
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for native Win32... no
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.

The log file:
Code:
configure:2099: result: no
configure:2153: checking for gcc
configure:2169: found /usr/bin/gcc
configure:2179: result: gcc
configure:2423: checking for C compiler version
configure:2426: gcc --version </dev/null >&5
gcc (GCC) 3.3.5 20050117 (prerelease) (SUSE Linux)
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2429: $? = 0
configure:2431: gcc -v </dev/null >&5
Using built-in specs.
Configured with: ../configure --enable-threads=posix --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --enable-languages=c,c++,f77,objc,java,ada --disable-checking --libdir=/usr/lib --enable-libgcj --with-slibdir=/lib --with-system-zlib --enable-shared --enable-__cxa_atexit i586-suse-linux
Thread model: posix
gcc version 3.3.5 20050117 (prerelease) (SUSE Linux)
configure:2434: $? = 0
configure:2436: gcc -V </dev/null >&5
gcc: `-V' option must have argument
configure:2439: $? = 1
configure:2462: checking for C compiler default output file name
configure:2465: gcc    conftest.c  >&5
gcc: installation problem, cannot exec `cc1': No such file or directory
configure:2468: $? = 1
configure: failed program was:



What could be the problem? What should I do?

Please respond, it's the first time I run gcc on a linux machine! I'm pretty excited and have a bunch of software to install tonight!

Thanks in advnace
 
Old 04-17-2006, 09:32 PM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
You havn't installed everything you need ... how did you install gcc?
(On SuSE you should be using YaST.)

To install source tarballs, you also need things like gnu-make.
 
Old 04-22-2006, 11:27 PM   #3
nectron101
Member
 
Registered: Nov 2004
Distribution: SuSE 9.1 Personal
Posts: 41

Original Poster
Rep: Reputation: 15
Hello anyone ?!?!?
 
Old 04-23-2006, 01:56 AM   #4
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Hello yourself. If you want help, why don't you try answering the questions.
 
Old 04-23-2006, 02:24 AM   #5
LMAC
LQ Newbie
 
Registered: Apr 2006
Location: Sydney
Distribution: Ubuntu
Posts: 3

Rep: Reputation: 0
Yeah probally ahve to reinstall GCC though if you installed it through whatever package manager suse uses it should be right. Is it possible to try another package manager ?
 
  


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
gcc gives error C compiler cannot create executables ADD Linux - Newbie 6 01-03-2006 05:43 AM
./configure fails because gcc can't create executables? anachron Linux - Newbie 3 03-01-2005 11:07 PM
C compiler cannot create executables JanDeMan Debian 7 04-20-2004 02:10 AM
Cannot create executables under 9.1 pyrombca Slackware 5 12-29-2003 06:48 PM
C compiler cannot create executables... Sfpiano Linux - Software 9 12-11-2003 10:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:21 AM.

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
Open Source Consulting | Domain Registration