LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   gcc install problem (https://www.linuxquestions.org/questions/linux-newbie-8/gcc-install-problem-363474/)

gear 09-14-2005 09:42 PM

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!

nadroj 09-14-2005 09:47 PM

:confused:
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

gear 09-14-2005 09:50 PM

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.

gear 09-14-2005 09:55 PM

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!

nadroj 09-14-2005 10:10 PM

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).

xpression 09-14-2005 10:14 PM

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

not saying you are a newbie like,

tkedwards 09-15-2005 01:58 AM

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)

b0nd 09-15-2005 03:44 AM

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

regards


All times are GMT -5. The time now is 07:06 PM.