Wednesday, February 27, 2008

Ubuntu x86_64 C compiler cannot create executables

Today after an update I started to get this error when trying to compile software from source:

C compiler cannot create executables

A bit of searching and I seemed to need some extra packages, you can fix this with:
$ sudo aptitude install libc6-dev-i386

This resulted in the packages gcc-4.1-multilib gcc-multilib getting automatically installed. This was the fix for me.

4 comments:

  1. OH wow. Perfect! I tried

    $ sudo apt-get install libc6-dev-i386

    but for some reason it didn't show up.
    Go aptitude!

    ReplyDelete
  2. If you can't find that version just look for the version you have:

    $ sudo aptitude search libc6

    That might help?

    ReplyDelete
  3. Helped a lot, thank you!

    ReplyDelete