Find the answer to your Linux question:
Results 1 to 5 of 5
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Please help, gcc won't install!!!

    hey everyone,
    I've been tying to build gcc for quite some time now and I've followed all the instructions and everything seemed to be going just fine until I got an error saying that it was unable to determine the suffix for the object files. I checked the config.log file and uncovered that the problem is actually being cause by "cc1" not finding "" which I find very weird since I've already install MPFR as well as GMP. During the configuration, I got a warning saying that "libgmp" and "gmp.h" may have different versions. I don't know if this could be what is cause the problem but if even this is the problem I don't how this happened because all I did was install the libraries right out of the box.
    Any help would be greatly appreciated.

  2. #2
    Just Joined!
    Join Date
    Dec 2009
    Maryland, USA
    Why didn't (don't) you just install gcc from the repositories or whatever install command (like 'apt-get install . . .') you might have in your distro?

    Assuming you absolutely HAVE to build your own gcc, then someone with lots of patience and experience (not me x 2) will probably need specific cut and paste error messages to help you and then possibly lots more info to determine the root causes and corrections.

    Good luck.

  3. #3
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    As GregBrannon asked, why not install from the system package manager? It will deal with the appropriate dependencies a lot better. The only reason to build your own gcc is if you want to install an unsupported version, such as the latest 4.5.1, on your system. That is not an easy task, and some dependencies will likely conflict with needed components on your system, so you will have to install them (the different versions of dependent components) in an alternative location on your system. I had to do that with 4.5.1 and all the little things it needed that conflicted with my standard system configuration.

    FWIW, it took me almost a week to sort it all out, and my wife took about 2 weeks on her lab systems (more complex than my workstation/server). She is a PhD physicist and also a professional Linux wizard...
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  4. $spacer_open
  5. #4
    Linux Enthusiast sgosnell's Avatar
    Join Date
    Oct 2010
    Baja Oklahoma
    What distro are you using? If it's Debian based, you want to install 'build-essential', which is a metapackage which installs everything you need for compiling and building packages. I'm not sure what other distros use, but there should be something similar. It should be in the package manager.

  6. #5
    never mind i got it to work. The problem was that gcc apparenty doesn't search for the mpfr libraries in the folder that mpfr defaultly installs them, it apparently looks for them in "/usr/lib" not too sure though. What i did was i installed mpfr and gmp from the debian package, and out of curiosity i looked in "/usr/lib" and there were the library files.

Posting Permissions

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