Find the answer to your Linux question:
Results 1 to 6 of 6
Alright guys...I'm using FC2. I have a strange problem. When I'm installing programs (have only been installing from tar balls) It appears that I don't have a C compiler... Whenever ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Nov 2003
    Location
    Maryland
    Posts
    105

    C Compiler


    Alright guys...I'm using FC2. I have a strange problem. When I'm installing programs (have only been installing from tar balls)

    It appears that I don't have a C compiler...

    Whenever I'm installing something, ie: mplayer, xine, even TCC..I always get the same error...

    xine...

    Code:
    [root@fedora dan]# cd /home/dan/xine-lib-1-rc8
    [root@fedora xine-lib-1-rc8]# ./configure
    checking build system type... i686-pc-linux-gnuoldld
    checking host system type... i686-pc-linux-gnuoldld
    checking target system type... i686-pc-linux-gnuoldld
    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)... yes
    checking for style of include used by make... GNU
    checking for gcc... no
    checking for cc... no
    checking for cc... no
    checking for cl... no
    [b]configure: error: no acceptable C compiler found in $PATH[/b]
    See `config.log' for more details.
    mplayer..

    Code:
    [root@fedora dan]# cd /home/dan/mplayer
    [root@fedora mplayer]# ./configure
    Detected operating system: Linux
    Detected host architecture: i386
    Checking for cc version ... not found
    Checking for gcc version ... not found
    Checking for gcc-3.4 version ... not found
    Checking for gcc-3.3 version ... not found
    Checking for gcc-3.2 version ... not found
    Checking for gcc-3.1 version ... not found
    Checking for gcc3 version ... not found
    Checking for gcc-3.0 version ... not found
    Checking for cc version ... not found
     
    *** Please downgrade/upgrade C compiler to version gcc-2.95.x or gcc-3.x! ***
     
    You are not using a supported compiler. We do not have the time to make sure
    everything works with compilers other than the ones we use.  Use either the
    same compiler as we do, or use --disable-gcc-checking but DO *NOT* REPORT BUGS
    unless you can reproduce them after recompiling with a 2.95.x or 3.x version!
     
    Note for gcc 2.96 users: Some versions of this compiler are known to miscompile
    mplayer and lame (which is used for mencoder).  If you get compile errors,
    first upgrade to the latest 2.96 release (minimum 2.96-85) and try again.
    If the problem still exists, try with gcc 3.x (or 2.95.x) *BEFORE* reporting
    bugs!
     
            GCC 2.96 IS NOT AND WILL NOT BE SUPPORTED BY US !
     
        *** For details please read DOCS/HTML/en/users-vs-dev.html ***
     
     
    Error: Bad gcc version
     
    Check "configure.log" if you do not understand why it failed.
    And when I try to install another C Complier, I get past ./configure, but not "make". I tried 'gmake' as well to no avail...

    Code:
    [root@fedora tcc-0.9.22]# ./configure
    big/little test failed
    Binary  directory   /usr/local/bin
    Library directory   /usr/local/lib
    Include directory   /usr/local/include
    Manual directory    /usr/local/man
    Doc directory       /usr/local/share/doc/tcc
    Source path      /home/dan/tcc-0.9.22
    C compiler       gcc
    make             make
    CPU              x86
    Big Endian       no
    gprof enabled    no
    Creating config.mak and config.h
    config.h is unchanged
    [root@fedora tcc-0.9.22]# make
    gcc -O2 -g -Wall -mpreferred-stack-boundary=2 -m386 -malign-functions=0 -o tcc_g tcc.c -ldl
    make: gcc: Command not found
    make: *** [tcc_g] Error 127
    [root@fedora tcc-0.9.22]# gmake
    gcc -O2 -g -Wall -mpreferred-stack-boundary=2 -m386 -malign-functions=0 -o tcc_g tcc.c -ldl
    gmake: gcc: Command not found
    gmake: *** [tcc_g] Error 127
    What the heck is wrong? Shouldn't FC2 have come with a compiler?

    Go easy on me, I'm still new :P

  2. #2
    Linux Guru lakerdonald's Avatar
    Join Date
    Jun 2004
    Location
    St. Petersburg, FL
    Posts
    5,035
    you need to download a gcc rpm, since you can't make it from source
    try rpm.pbone.net

  3. #3
    Banned
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    1,120
    Open your terminal
    Become root (su)
    type: yum install gcc

  4. #4
    Linux Newbie
    Join Date
    Nov 2003
    Location
    Maryland
    Posts
    105
    Worked like a Charm..I searched yum for tcc, I don't know why I didn't think to look for gcc. Well anyway, thanks for the quick reply!

    While I'm at it, I'll hijack my own thread, this time about Firefox and Mozilla...

    Whenever I log out and then back in, Firefox doesn't work. Not the GUI buttons or from /usr/bin/...Same with the normal Mozilla browser...any ideas on that?

  5. #5
    Just Joined!
    Join Date
    Dec 2004
    Location
    Among the stars...
    Posts
    49
    Or if you still have your 4 CDs from FC2, you can install GCC from them... Click Applications -> System Settings -> Add/Remove Applications. Don't forget to install the development packages too if you want to build programs from source!

    taurus

  6. #6
    Just Joined!
    Join Date
    Jan 2005
    Location
    Los Angeles, CA
    Posts
    5

    How to install gcc

    Hello,

    I am having the same problem, I tired >yum install gcc but got an error, I am not on the machine so I cant post the error. I also tried installing from CD view the add application but the list from the developer tools does not show gcc.

    I am new, could some one tell me how I can install gcc, where and how can I download and what commands I should be typing. I would really appreciate this help.

    I am using Fedora Core 2.

    Thanks
    Mike

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •