Find the answer to your Linux question:
Results 1 to 5 of 5
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    C compiler cannot create executables

    Alright! I downgrade to openSUSE 11.1 on my VM (VMWare sever). I installed gcc and gcc-c++. When I try to configure a program I get the error:

    checking for c compiler default output file name...
    configure: error: C compiler cannot create executables
    See 'config.log' for more details.

    I have searched forums and figured out I need to install build-essential. I found the equivalent for that would be:
    zypper install -t pattern devel_C_C++

    I also installed kernel-source and kernel-syms.

    It's really getting on my nerve

    Is there any solution?


  2. #2
    Linux Guru gogalthorp's Avatar
    Join Date
    Oct 2006
    West (by God) Virginia
    You should only need Kernel headers to build programs. Unless they are drivers.

    Are you sure you have full permissions on the directories that you are building things in??

    Did you install gcc through Yast or some other way?

    What are you trying to compile? Are you sure that there is no binary in the repositories??

  3. #3
    the kernel-sources are need sometimes for compiling some app and i have get the same message whan leak of apps needed.

  4. $spacer_open
  5. #4
    I was facing similar problem few days back in SLES. I was trying to install gcc manually but i had no luck. I was getting the C compiler error again and again. So what i did atlast i installed gcc from YAST. I must say YAST is one powerfull tool for managing softwares in SLES. I am thankful to novell bringing YAST to SLES.

  6. #5
    to use Yast for installing a package use

    # yast2 -i $packagename

    simple like that!

Posting Permissions

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