Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 16
I'm having a really hard time installing this package, it won't install without binutils which in turn will not install without CC. After I get this out of the way ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2003
    Location
    Calgary, Alberta, Canada
    Posts
    8

    Problems with GCC


    I'm having a really hard time installing this package, it won't install without binutils which in turn will not install without CC. After I get this out of the way I can start installing some other packages.

    I have downloaded:

    binutils-2.14
    gcc-3.3

    My machine type is an IBM compatible with an AMD Athlon CPU. Which I beleive is considered an i386 box.

    Any help would be greatly appreciated.

  2. #2
    Linux Guru
    Join Date
    Apr 2003
    Location
    London, UK
    Posts
    3,284
    install binutils (rpm?) using the addition switch "--force", which will override the dependency problems. then try installing gcc.

    Jason

  3. #3
    Just Joined!
    Join Date
    Jul 2003
    Location
    Calgary, Alberta, Canada
    Posts
    8
    I was unable to locate a RPM for binutils, I uncompressed it to local disk and tried to install using: ./configure i386

    It also will not build binutils if I do not specify my machine type. I tried adding the --force switch, as you suggested, but it would not reconize it.

  4. #4
    Linux Guru
    Join Date
    Apr 2003
    Location
    London, UK
    Posts
    3,284
    i as you were talking about packages, i assumed you were talking RPM? maybe not.

    Which distro are you using?

    try getting GCC via RPM and installing that with --force before the binutils.

    if your on debian, "apt-cache search binutils | more". find the correct item from the list, then "apt-get install <item>", it will automatically solve the dependencies for you

    Jason

  5. #5
    Just Joined!
    Join Date
    Jul 2003
    Location
    Calgary, Alberta, Canada
    Posts
    8
    Sorry, my lingo is kind of off. I'm running Redhat 9.0.

    I'll try to find GCC as an RPM, but won't I still need binutils?

  6. #6
    Just Joined!
    Join Date
    Jul 2003
    Location
    Calgary, Alberta, Canada
    Posts
    8
    Here's the error I keep on getting:

    *** The command 'cc -o conftest -g conftest.c' failed.
    *** You must set the environment variable CC to a working compiler.

    Am I missing something?

  7. #7
    Linux Guru
    Join Date
    Apr 2003
    Location
    London, UK
    Posts
    3,284
    you definatly need gcc first


    Jason

  8. #8
    Just Joined!
    Join Date
    Jul 2003
    Location
    Calgary, Alberta, Canada
    Posts
    8
    That is the error I get while trying to install GCC, though.

  9. #9
    Linux Engineer Giro's Avatar
    Join Date
    Jul 2003
    Location
    England
    Posts
    1,219
    Are you trying to install GCC from source? If so have you allready got a compiler installed? If you havent you cant compile it, here is a link to some RPM's to install GCC -> http://www.trilithium.com/software/misc/

  10. #10
    Linux Engineer kriss's Avatar
    Join Date
    Jun 2003
    Posts
    1,113
    I think there is gcc in the tarball that comes with gcc.

    But, why not install apt for redhat 9.0?
    It can be found at http://freshrpms.net/apt/

Page 1 of 2 1 2 LastLast

Posting Permissions

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