Results 1 to 7 of 7

Thread: cannot run C compiled programs

  1. #1
    Join Date
    Jun 2013
    Location
    South Florida
    Posts
    7

    Default cannot run C compiled programs

    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?

  2. #2
    Join Date
    Aug 2008
    Location
    Seattle, WA
    Posts
    1,376

    Default Re: cannot run C compiled programs

    Quote Originally Posted by lobologos View Post
    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?
    I haven't seen this before, but have you read the README and the INSTALL files? There might be a hint there.

  3. #3
    Join Date
    Jun 2013
    Location
    South Florida
    Posts
    7

    Default Re: cannot run C compiled programs

    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.

  4. #4
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,470
    Blog Entries
    2

    Default Re: cannot run C compiled programs

    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

  5. #5
    Join Date
    Jun 2013
    Location
    South Florida
    Posts
    7

    Default Re: cannot run C compiled programs

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

  6. #6
    Join Date
    Aug 2008
    Location
    Seattle, WA
    Posts
    1,376

    Default Re: cannot run C compiled programs

    Quote Originally Posted by lobologos View Post
    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.
    You'll also find it on the build service for openSUSE, FWIW.

    software.opensuse.org:

  7. #7
    josephkk NNTP User

    Default Re: cannot run C compiled programs

    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.

    ?-)

Tags for this Thread

Posting Permissions

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