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! |
: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 |
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. |
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! |
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). |
debian isnt for newbies neither
http://www.tuxtalk.org/index.php?module=tuxiso not saying you are a newbie like, |
Quote:
Quote:
|
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. |