GCC compiler installation

This is a discussion on GCC compiler installation within the Tech Board forums, part of the Community Boards category; I have SUSE 9.3 installed on my comp. My GCC compiler got accidenatlly removed.. The locate command returns nothing .. ...

  1. #1
    Eager young mind
    Join Date
    Jun 2006
    Posts
    342

    GCC compiler installation

    I have SUSE 9.3 installed on my comp. My GCC compiler got accidenatlly removed.. The locate command returns nothing .. I have downloaded the tar- ball for GCC-4.0.2 and I have extracted it .. But , I find the installation to be pretty cryptic and different from the other installations I have done so far ( i am fairly new to linux).. CAn some one help me out of this..

  2. #2
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    Grab an RPM. If you have an installation CD, there should be one on it. If not, download it from the net.

    Compiling GCC by hand is indeed very complicated.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  3. #3
    ... kermit's Avatar
    Join Date
    Jan 2003
    Posts
    1,528
    You ought to be able to use YaST to reinstall it - that way all of the required dependencies should be installed as well.

  4. #4
    User
    Join Date
    Jan 2006
    Location
    Canada
    Posts
    498
    Yeah, downloading a tarball won't do any good, because a tarball usually means it's in source code format–exactly why you need GCC in the first place.

  5. #5
    Eager young mind
    Join Date
    Jun 2006
    Posts
    342
    ok ,so u mean to say install or update my linux ? well, I tried that once already .. I had re-installed the whole thing.. Ok, I will try again..
    I found this link though,
    http://www.faqs.org/docs/ldev/0130091154_71.htm ... IS it worth giving it a try, I dont want to end up wasting the whole day on this.. Please let me know which one is a better option..

  6. #6
    ... kermit's Avatar
    Join Date
    Jan 2003
    Posts
    1,528
    As joeprogrammer said, it won't do you any good if you don't already have a working compiler. This is the documentation for your particular distribution (it's a pdf). Have a look at:

    Installation --> System Configuration with YaST --> Software --> Installing and Removing Software

    This should tell you what you need to do in order to get your compiler back.
    Last edited by kermit; 07-21-2006 at 09:27 PM.

  7. #7
    Eager young mind
    Join Date
    Jun 2006
    Posts
    342
    but , my gcc is not working.. I am not even able to locate it..

  8. #8
    ... kermit's Avatar
    Join Date
    Jan 2003
    Posts
    1,528
    Yes, you have told us that - and we are telling you that is why you are not able to compile a compiler because you don't have a compiler. You need to get a binary (already compiled) version of gcc, and I would suggest that you use the YaST tool to do so. I am not an expert on SuSE, but I did use YaST once to install gcc on a friend's computer, and it seemed to work nicely. Now read the documentation, follow the instructions, and grab a compiler.

  9. #9
    Eager young mind
    Join Date
    Jun 2006
    Posts
    342
    ok .. thanks for the help

  10. #10
    Eager young mind
    Join Date
    Jun 2006
    Posts
    342
    awesome.. Its working.. thanks a lot.. I have one more problem, my GUI wont work. The screen goes (white) when I type startx at the prompt.. I had tried SAX2, ended up with the same result.. and I just tried doing something about the display in YAST,
    tried reprobing it and then i selected the change option, the screen went white again..
    Last edited by kris.c; 07-22-2006 at 04:46 AM.

  11. #11
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,558
    Since you seem to have done a fantastic job of hosing your compiler and several other things (and yet more things to be discovered no doubt), why not just cut to the chase and reinstall the whole thing from your CD's ?
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  12. #12
    Eager young mind
    Join Date
    Jun 2006
    Posts
    342
    I have lost track of the number of times I have tried installing it ...I have installed using the same CD's on one of my friends comps, it works fine there.. sTell me, what I should do differently to get it right this time ..

  13. #13
    ... kermit's Avatar
    Join Date
    Jan 2003
    Posts
    1,528
    I am not sure of what the system installer does for reformatting the partition you are installing on, but you might want to look into making sure the partition is properly formatted. In other words, make sure that the installer is not trying to do an upgrade or a repair by forcing it to have to do a complete install from scratch.

  14. #14
    Eager young mind
    Join Date
    Jun 2006
    Posts
    342
    When I boot from the cd, it asks me if i want to do a new installation or repair or upgrade or rescue.. If , I choose the new installation it asks me to specify the partition and swap area correctly and then it proceeds with the formatting the partition..So, what exactly should I do be doing to find out what exactly is happening ?

  15. #15
    User
    Join Date
    Jan 2006
    Location
    Canada
    Posts
    498
    Make sure in the package selection window that you have the following checked:

    X Windows System
    Either KDE or GNOME (If you don't want to use X)

    You should also make sure that xdm is added to the default runlevel. Most Linux distributions do this automatically, and if it worked before, you probably don't have to worry about this. You can also try running (as root) nano -w /etc/inittab, and then make sure that the default runlevel is set to 5 (or 4 on Slackware-based systems).

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 4
    Last Post: 09-02-2007, 08:47 PM
  2. GCC compiler giving syntax error before 'double' error
    By dragonmint in forum Linux Programming
    Replies: 4
    Last Post: 06-02-2007, 05:38 PM
  3. Compiles on gcc 3.3 but not on gcc 4.0.3
    By cunnus88 in forum C++ Programming
    Replies: 5
    Last Post: 03-29-2007, 12:24 PM
  4. gcc not for C++?
    By tin in forum C++ Programming
    Replies: 4
    Last Post: 09-15-2004, 08:26 AM
  5. Modifying the GNU GCC 2.95 compiler
    By shp in forum Linux Programming
    Replies: 2
    Last Post: 03-07-2004, 09:45 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21