PDA

View Full Version : C compiler cannot create executables



ebtech
Mar 12th 2009, 04:10 PM
I've installed from source in the past but it's been awhile and I would consider myself a noob in this arena.

I'm trying to build a deb pkg of Kmymoney2 .9.3 for Hardy using checkinstall. However when I try to ./configure I get "C compiler cannot create executables" error. What's the problem here? ???

As an aside, is there a way to get a package from the Intrepid repos and install it on Hardy? If so would this be problematic mixing pkgs from intrepid? Is there a way to browse repos with a web browser?

Edit: Answered this one.
http://packages.ubuntu.com/intrepid

Edit: Just found the answer to my question about C compiler also. ;D

sudo apt-get install build-essential

Now I'm getting
checking for X... configure: error: Can't find X libraries. Please check your installation and add the correct paths!

I think I may have a dependency problem. Probably Intrepid X libraries. I was looking at dependencies for Kmymoney2 .9.2 in the Intrepid repos and at least one of them is too old in Hardy.
I knew it couldn't be easy :P

flarson
Mar 12th 2009, 04:47 PM
you might try

sudo apt-get build-dep kmymoney

To get packages from a newer distribution you can add the lines from the newer repository to your sources.list and set the default release in /etc/apt/apt.conf like this
APT {
Default-Release "hardy";
};


You could then try

sudo aptitude install kmymoney/intrepid

and it will try to do that for you. You may be running into a KDE and Kmymoney version issue here though.

Rog131
Mar 12th 2009, 05:22 PM
Now I'm getting

checking for X... configure: error: Can't find X libraries. Please check your installation and add the correct paths!


Maybe > FAQ: Installing from source (http://kubuntuforums.net/forums/index.php?topic=3085626.0)


Packages for DIY compilers - errors and solutions
...
Error message:
checking for X... configure: error: Can't find X includes.
or
checking for X... configure: error: Can't find X libraries. Please check your installation and add the correct paths!

This package helpped here: kdebase-dev

development files for the KDE base module
This package contains headers and other development files needed to
compile software based on the KDE base module.
...