Find the answer to your Linux question:
Results 1 to 8 of 8
Hello every body please please help 1) how can understand that gcc is installed or not[ without type gcc ]? 2) how can i install gcc? [command] [no yum way]...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2009
    Posts
    5

    Question about gcc


    Hello every body
    please please help
    1) how can understand that gcc is installed or not[ without type gcc ]?
    2) how can i install gcc? [command] [no yum way]

  2. #2
    Linux Engineer GNU-Fan's Avatar
    Join Date
    Mar 2008
    Posts
    935
    Quote Originally Posted by g2eenday View Post
    1) how can understand that gcc is installed or not[ without type gcc ]?
    GNU Autoconf - Creating Automatic Configuration Scripts - GNU Project - Free Software Foundation (FSF)

    Quote Originally Posted by g2eenday View Post
    2) how can i install gcc? [command] [no yum way]
    This depends on the distribution in use. That's the reason why you should give that info whenever you ask a technical question.
    Debian GNU/Linux -- You know you want it.

  3. #3
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    Well, since yum was mentioned, I'm guessing Fedora or Redhat/Redhat clone. In which case, I believe the following will give you all the basic tools needed to compile, such as gcc.

    Code:
    yum groupinstall 'Development Tools'

  4. #4
    Just Joined!
    Join Date
    Oct 2009
    Posts
    5
    i downloaded gcc-4.4.1.tar.gz for install compiler, but want install gcc with it!
    i typed:
    # tar -xzf gcc-4.4.1.tar.gz
    # cd gcc-4.4.1
    # ./configure

    and got this error:
    no acceptable c compiler found in path

    i want install gcc!!! but why got this error?!

  5. #5
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    You need gcc installed to compile gcc. One of the enduring mysteries of the universe.

    Here are instructions for building gcc.
    Installing GCC - GNU Project - Free Software Foundation (FSF)

    But there is really no good reason to do so for the vast majority of users.

  6. #6
    Linux Newbie
    Join Date
    Nov 2007
    Location
    Planet Earth
    Posts
    152
    Also, if you don't want to use yum because you don't have an available network, you can always download on other machine the precompiled packages (rpm, deb, etc) and transfer to your box ... I'ts extremely strange that you need to compile the compiler
    EOF

  7. #7
    Just Joined!
    Join Date
    Oct 2009
    Posts
    5

    Thanks

    Thanks from all

  8. #8
    Linux Newbie Tom Varghese's Avatar
    Join Date
    Apr 2008
    Posts
    101

    install gcc

    Since it is most mysterious as archlinux said, most of distro DVD contains gcc. itself. If you installed a minimal version, try to find out a bigger DVD version and browse it for installation.

Posting Permissions

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