Find the answer to your Linux question:
Results 1 to 6 of 6
hi, i didnt install gcc along wit fedora core installation.i downloaded it separately and unzipped it.but i get error wen i try to install it using "./configure , make test ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2006
    Posts
    19

    problem installing gcc4.2.2 in fc6


    hi,
    i didnt install gcc along wit fedora core installation.i downloaded it separately and unzipped it.but i get error wen i try to install it using "./configure , make test ,make install".the error msg i get is as follows.

    [root@localhost gcc-4.2.2]# ./configure
    loading cache ./config.cache
    checking host system type... i686-pc-linux-gnu
    checking target system type... i686-pc-linux-gnu
    checking build system type... i686-pc-linux-gnu
    checking for a BSD compatible install... /usr/bin/install -c
    checking whether ln works... yes
    checking whether ln -s works... yes
    checking for gcc... no
    checking for cc... no
    configure: error: no acceptable cc found in $PATH
    [root@localhost gcc-4.2.2]# make test
    make: *** No rule to make target `test'. Stop.


    plz help me to fix this.

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    You haven't installed C and C++ compiler.
    Execute this
    Code:
    su -
    yum -y install gcc gcc-c++
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Just Joined!
    Join Date
    Dec 2006
    Posts
    19

    still getting error

    [root@localhost ~]# yum -y install gcc gcc-c++
    Loading "installonlyn" plugin
    Existing lock /var/run/yum.pid: another copy is running. Aborting.
    [root@localhost ~]#

  4. $spacer_open
    $spacer_close
  5. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Are you running any other instance of Package Manager like Add/Remove, Pirut or Yum Extender?
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  6. #5
    Just Joined!
    Join Date
    Dec 2006
    Posts
    19
    i dont understand wt u mean by c and c++ compiler not installed.sorry if my doubt is silly.gcc is a c,c++ compiler.so i was trying to install it.but how can i get an error saying c ,c++ compiler not installed?

  7. #6
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Okk ! I didn't read your post correctly. You can compile any package without C/C++ compiler. Either install gcc using yum as I have suggested earlier.
    Or download gcc in rmp format and install it. You will face a lot of dependency problems during rpm format installation.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

Posting Permissions

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