LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 09-14-2005, 09:42 PM   #1
gear
LQ Newbie
 
Registered: Sep 2005
Posts: 3

Rep: Reputation: 0
gcc install problem


The linux is really driving me nuts.
I try to install the GCC 3.2.3, but it want me to have GCC or CC installed.
Isn't this funny, if I have GCC installed, why do I bother to install it.
I try to install it using apt-get, but everytime it sotpped at setting up and no gcc programm installed actually. Is there someway to reinstall the apt-get? I'm usting debian I think.
Is there someone can save me from this hell?
Thanks a lot!

Last edited by gear; 09-14-2005 at 09:43 PM.
 
Old 09-14-2005, 09:47 PM   #2
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 60

i dunno.. are you running the program as root? copy and paste the commands you type and the output/error that is displayed at the terminal
 
Old 09-14-2005, 09:50 PM   #3
gear
LQ Newbie
 
Registered: Sep 2005
Posts: 3

Original Poster
Rep: Reputation: 0
javelina:/home/peng/Desktop/gcc-3.2# ./configure
Configuring for a i686-pc-linux-gnu host.
Created "Makefile" in /home/peng/Desktop/gcc-3.2 using "mt-frag"
./configure: line 7: gcc: command not found
*** The command 'gcc -o conftest -O2 conftest.c' failed.
*** You must set the environment variable CC to a working compiler.
 
Old 09-14-2005, 09:55 PM   #4
gear
LQ Newbie
 
Registered: Sep 2005
Posts: 3

Original Poster
Rep: Reputation: 0
This is what happened when I try to apt-get the GCC

javelina:/home/peng/Desktop/gcc-3.2# apt-get install gcc
Reading Package Lists... Done
Building Dependency Tree... Done
Suggested packages:
autoconf automake libtool flex bison gdb gcc-doc
The following NEW packages will be installed:
gcc
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 0B/4906B of archives.
After unpacking 28.7kB of additional disk space will be used.
Selecting previously deselected package gcc.
(Reading database ... 91540 files and directories currently installed.)
Unpacking gcc (from .../gcc_4%3a3.3.5-3_i386.deb) ...
Setting up gcc (3.3.5-3) ...

javelina:/home/peng/Desktop/gcc-3.2# gcc
bash: gcc: command not found


And apprently the gcc wasn't installed at all.

Thanks a lot!
 
Old 09-14-2005, 10:10 PM   #5
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 60
try getting and installing the latest version instead.. not that this will solve your problem, although possible, but you should always have the latest _stable_ version of any peice of software. also check the gcc site for 3rd party binaries, maybe, which are made for your distro.
or lastly, read fully the documentation, if not already. specifically, at least, about the configuration part: here

youll need a compiler to compile the compiler (lol, sorry for that).

Last edited by nadroj; 09-14-2005 at 10:11 PM.
 
Old 09-14-2005, 10:14 PM   #6
xpression
Member
 
Registered: Sep 2005
Distribution: Mandrake 10.2
Posts: 58

Rep: Reputation: 15
debian isnt for newbies neither
http://www.tuxtalk.org/index.php?module=tuxiso

not saying you are a newbie like,
 
Old 09-15-2005, 01:58 AM   #7
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
Quote:
I try to install the GCC 3.2.3, but it want me to have GCC or CC installed.
Isn't this funny, if I have GCC installed, why do I bother to install it.
Yeah if you want to install GCC from source you have to do follow instructions from the GCC site about doing a special 'bootstrap install'. Unless you're a masochist or really want to compile everything yourself trying to build important system components like this is a long and difficult and very error prone process.

Quote:
javelina:/home/peng/Desktop/gcc-3.2# apt-get install gcc
This should have worked (I think - not being a Debian user). Can you post your apt sources list file(s)? (they're in /etc)

Last edited by tkedwards; 09-15-2005 at 02:01 AM.
 
Old 09-15-2005, 03:44 AM   #8
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
hello there,
not very sure.......but can't you install "gcc" packages from your cd ( from which you installed the debian ) ???

regards
 
  


Reply



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 3.2.2 install problem bhuvanagoud Linux - Newbie 1 10-21-2005 11:26 AM
yum install gcc problem malibuguy Linux - Newbie 1 01-15-2005 05:11 PM
gcc compiler install problem mla Linux - Software 4 10-11-2003 07:03 AM
Weird problem encountered while trying to install GCC sykopath Linux - Software 3 08-08-2003 03:08 AM
Problem with CVS gcc-3.2 install... jambeck Linux From Scratch 34 06-14-2003 10:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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