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 02-27-2008, 08:52 AM   #1
Jinouchi
Member
 
Registered: Jul 2007
Location: WI, USA
Distribution: Debian, Lenny
Posts: 111

Rep: Reputation: 19
Installing gcc - need help


Ok, so I've been trying to install several programs lately and they all give me an
Code:
error: C compiler cannot create executables
I downloaded the gcc package from the debian site ( http://packages.debian.org/etch/gcc ) and I don't know how to install it. There's no configure program, and nothing else that means anything to me. This is all that's in the file:
Code:
/gcc-defaults-1.50# dir
c89    c99    classpath.security  gfdl.7  sparc-g++.c
c89.1  c99.1  debian              gpl.7   sparc-gcc.c
/gcc-defaults-1.50# dir debian
changelog         g77.postinst.in       gpc.prerm
chill.substvars   g77.prerm             g++.postinst.in
compat            gcc-doc.postinst      g++.prerm
control           gcc-doc.prerm         lib32gcj-bc.overrides
control.doc       gcc.postinst.in       libgcj-bc.overrides
copyright         gcc.preinst           libgcj-common.postinst
cpp-doc.postinst  gcc.prerm             libgcj-common.prerm
cpp-doc.prerm     gfortran.postinst.in  README.Debian
cpp.postinst      gfortran.prerm        README.Debian.m4
cpp.prerm         gij.prerm             rebuild-gcj-db
disable_64_gcc    gpc-doc.postinst      rebuild-security-providers
g77-doc.postinst  gpc-doc.prerm         rules
g77-doc.prerm     gpc.postinst
How do I install this? Also, what dir are you supposed to install these types of system files in?
 
Old 02-27-2008, 09:32 AM   #2
mahmoud
Member
 
Registered: Apr 2006
Location: UK
Distribution: Mandriva, Debain, Redhat, Fedora, Ubuntu, FreeBSD
Posts: 269

Rep: Reputation: 30
try using aptitude or use apt-get install packagename or
dpkg -i name.deb
 
Old 02-28-2008, 10:19 AM   #3
Jinouchi
Member
 
Registered: Jul 2007
Location: WI, USA
Distribution: Debian, Lenny
Posts: 111

Original Poster
Rep: Reputation: 19
I've tried that, but I always get this error:
Code:
# apt-get install gcc
Reading package lists... Done
Building dependency tree... Done
gcc is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
1 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Setting up lighttpd (1.4.13-4etch4) ...
Starting web server: lighttpd failed!
invoke-rc.d: initscript lighttpd, action "start" failed.
dpkg: error processing lighttpd (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 lighttpd
E: Sub-process /usr/bin/dpkg returned an error code (1)
How do I fix this?
 
Old 02-29-2008, 08:24 AM   #4
Jinouchi
Member
 
Registered: Jul 2007
Location: WI, USA
Distribution: Debian, Lenny
Posts: 111

Original Poster
Rep: Reputation: 19
Bump - need help now fixing lighttpd too. I need to get my C compiler working before i can install almost anything. Can someone help?
 
Old 03-01-2008, 07:29 PM   #5
Jinouchi
Member
 
Registered: Jul 2007
Location: WI, USA
Distribution: Debian, Lenny
Posts: 111

Original Poster
Rep: Reputation: 19
Bump - need to get C compiler installed
 
Old 03-20-2008, 01:54 PM   #6
gr8scot
Member
 
Registered: Jun 2007
Distribution: Debian, kubuntu
Posts: 73

Rep: Reputation: 16
symlink to installed version of GNU C compiler

Quote:
Originally Posted by Jinouchi View Post
Bump - need to get C compiler installed
If you're using gcc-2.96
Code:
ln -s /usr/bin/gcc-2.96 /usr/bin/gcc
 
Old 04-08-2008, 07:52 PM   #7
Jinouchi
Member
 
Registered: Jul 2007
Location: WI, USA
Distribution: Debian, Lenny
Posts: 111

Original Poster
Rep: Reputation: 19
Quote:
Originally Posted by gr8scot View Post
If you're using gcc-2.96
Code:
ln -s /usr/bin/gcc-2.96 /usr/bin/gcc
Well, I tried that, and it worked, but then I had to reformat my drive and reinstall Debian, and now it won't work. I try to install Wine and here's what appears to be the applicable part of the config.log:

Code:
configure:2588: $? = 0
configure:2595: gcc -v >&5
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 --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --with-tune=i686 --enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
configure:2598: $? = 0
configure:2605: gcc -V >&5
gcc: '-V' option must have argument
configure:2608: $? = 1
configure:2631: checking for C compiler default output file name
configure:2658: gcc    conftest.c  >&5
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure:2661: $? = 1
configure:2699: result:
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "Wine"
| #define PACKAGE_TARNAME "wine"
| #define PACKAGE_VERSION "0.9.59"
| #define PACKAGE_STRING "Wine 0.9.59"
| #define PACKAGE_BUGREPORT "wine-devel@winehq.org"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:2706: error: C compiler cannot create executables
See `config.log' for more details.
Looks to my n00bie eyes like a file called crt1.o is missing. Am I correct, and how do I fix this?
 
Old 04-09-2008, 12:24 AM   #8
indikabandara19
LQ Newbie
 
Registered: May 2007
Posts: 18

Rep: Reputation: 0
I'm not familiar with debian, though I came across the same problem with Fedora.
Installing glibc and glibc-devel helped me
 
  


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
help with installing gcc Geminias Linux - Newbie 3 01-04-2006 11:39 PM
Installing GCC holyfeces Linux - Newbie 5 01-10-2005 02:35 PM
Installing GCC skguha Linux - Software 1 04-30-2004 02:38 AM
Installing GCC 3.1 over GCC 2.96...? aaronluke Linux - General 3 09-27-2002 05:28 AM
installing gcc natto34 Linux - Software 5 03-26-2002 04:36 PM

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

All times are GMT -5. The time now is 10:57 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