gcc configure error: C compiler cannot create executables

While doing an installation of PNP4Nagios from source on an Ubuntu Intrepid box I came across the following error while trying to compile it by doing a “./configure”

configure:2825: error: C compiler cannot create executables
See `config.log' for more details.

I therefore read a few blogs and tried several ideas on how to solve this. What worked for me was this.

$ sudo aptitude update
$ sudo aptitude install libc6-dev g++ gcc

Nice and simple, that fixed my problem.
hope this would save someone some valuable time.

Advertisements

3 thoughts on “gcc configure error: C compiler cannot create executables

  1. mj1531 says:

    Just helped me compile Ruby 1.9.3 on Ubuntu. Thanks.

  2. Matthew says:

    Thanks for the tips mate. They really helped me out and got me going again.

  3. jmartin2279 says:

    except for the fact that you have to use “apt-get” instead of “aptitude” on Ubuntu 12.04, this worked great!! on track with rails!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: