Can't compile - trouble with glib

Tim Frost timfrost at xtra.co.nz
Sun Sep 13 05:08:16 EDT 2009


On Sun, 2009-09-13 at 19:03 +1200, V Spagnolo wrote:
> I thought I would install 2.2.9 on Ubuntu 9.04 and am now stuck.
> 
> My first attempt to make 2.2.9 resulted in:
>     checking for GLIB - version >= 2.6.0... no
>     configure: error:
>     *** GLIB >= 2.6 is required to build Gnucash; please make sure you
> have the
>     *** development headers installed. The latest version of GLIB is
>     *** always available at ftp://ftp.gnome.org/pub/gnome/sources/glib/.

In Ubuntu, software that provides libraries is broken up into multiple
packages:
* the production shared libraries
* the development libraries
* optionally, debug libraries

This has caused a lot of confusion to people who are used to getting all
of the libraries (except possibly the debugging versions) in a single
package.

If you want to compile gnucash 2.2.9 from source, you need to install
all of the development packages that gnucash needs.  Because the changes
between gnucash 2.2.6 and 2.2.9 don't affect the required libraries,
this can be done with
   sudo apt-get build-dep gnucash
(that command will install all of the packages that are needed to build
gnucash 2.2.6, including the glib2 development package libglib2.0-dev)

As an alternative, one of the Ubuntu developers has packaged gnucash
2.2.9 for both 8.10 and 9.04, and they are available in his personal
archive (see https://launchpad.net/~saivann/+archive/ppa for details)

> 
> So, I got glib 2.9.6, installed and tried ./config again. Now I have:
>     checking for GLIB - version >= 2.6.0...
>     *** 'pkg-config --modversion glib-2.0' returned 2.9.6, but GLIB (2.20.1)
>     *** was found! If pkg-config was correct, then it is best
>     *** to remove the old version of GLib. You may also be able to fix
> the error
>     *** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing
>     *** /etc/ld.so.conf. Make sure you have run ldconfig if that is
>     *** required on your system.
>     *** If pkg-config was wrong, set the environment variable
> PKG_CONFIG_PATH
>     *** to point to the correct configuration files
> 
> 
> Advice please. It has been a very long time since I mucked around like this.

I assume that your install of glib 2.9.6 went into a 'local' directory
(probably /usr/local), so that it  didn't overwrite the Ubuntu package
files.

I advise you to remove it, because it is causing confusion to the build
process.



Tim

-- 
Tim Frost <timfrost at xtra.co.nz>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <http://lists.gnucash.org/pipermail/gnucash-user/attachments/20090913/111ac084/attachment.bin>


More information about the gnucash-user mailing list