Darwinports and Mono incompabilities

Die Installation von Darwinports Dia schlug fehl, bis pkg-config von Darwinports nachinstalliert wurde. Grund war ein installiertes Mono.

I wanted to give dia a go and tried to install from Darwinports with sudo port install dia. I had a small problem during the install: after a couple of dependencies had been compiled, it aborted with this message:

--->  Installing glib2 2.8.4_0
--->  Activating glib2 2.8.4_0
--->  Cleaning glib2
--->  Configuring atk
Error: Target com.apple.configure returned: configure failure:
[... a couple of lines omitted ...]
checking for pkg-config... /usr/bin/pkg-config
checking for GLIB - version >= 2.5.7...
*** 'pkg-config --modversion glib-2.0' returned 2.6.3, but GLIB (2.8.4)
*** was found! [... rest omitted ...]

I couldn’t find anything about this specific message. Because glib was just installed before pkg-config failed to find it, I tried installing the Darwinports pkg-config and then restarted the installation… and it worked this time!

According to a post in the darwinports list, the problem should have been solved long ago. I just re-installed the recent DarwinPorts-1.2-10.4.dmg release over an older installation and trusted this Installation to be current. Why should this problem still bite me?

Most probable answer: because I installed the Mono Framework (Version 1.1.10), but not the Darwinports version. The Mono Framework comes with its own pkg-config (and a bunch of other tools that are installed in /usr/bin).

This entry was posted in OS X/Windows/Linux. Bookmark the permalink.

One Response to Darwinports and Mono incompabilities

  1. I faced the same issue with pkg-config, while playing with ruby-gtk2. And that’s how I landed at your page. The DarwinPorts port solved the glib problem for me too. Thanks!