cannot run C compiled programs

I get an error when running the ./configure for installing dnscrypt-proxy.


configure: error: cannot run C compiled programs

Everything that I’ve researched about the issue has pointed me to checking if gcc works, and it does. I was able to compile libsodium from source without any errors using the ./configure->make->sudo make install method. But just to be sure I wrote a little test C program, and sure enough gcc compiled it and it ran perfectly.

Does anybody have any idea why this could be happening? Or is there a package for dnscrypt-proxy available?

I haven’t seen this before, but have you read the README and the INSTALL files? There might be a hint there.

I actually managed to find an rpm for dnscrypt-proxy. It’s just not made for openSUSE, but it works the same way. It works perfectly now. But thank you.

Just a FYI since you found a pre-compiled packagge,
The version of C compiler can be important.
Hopefully in these cases there is a useful error message, source documentation is good enough or a Google searh turns up something, but nothing is guaranteed.

TSU

Thank you TSU. I’ll keep that in mind.

You’ll also find it on the build service for openSUSE, FWIW.

software.opensuse.org:

On Sat, 29 Jun 2013 03:46:01 GMT, lobologos
<lobologos@no-mx.forums.opensuse.org> wrote:

>
>I get an error when running the ./configure for installing
>dnscrypt-proxy.
>
>Code:
>--------------------
>
> configure: error: cannot run C compiled programs
>
>--------------------
>
>
>Everything that I’ve researched about the issue has pointed me to
>checking if gcc works, and it does. I was able to compile libsodium from
>source without any errors using the ./configure->make->sudo make install
>method. But just to be sure I wrote a little test C program, and sure
>enough gcc compiled it and it ran perfectly.
>
>Does anybody have any idea why this could be happening? Or is there a
>package for dnscrypt-proxy available?

Iam not sure, but this may indicate that you do not proper development
patterns installed. In yast->software_management select patterns instead
of search. Then select base and c/c++ and any other development patterns
that float your boat. Accept and let Yast do its job for a while (maybe
an hour).

Second, whenever you compile from scratch, build an rpm if you can. It
makes software configuration management soo much easier.

?-)