Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to compile Midnight Commander on a KUbuntu 9.10 (Karmic) box with no root access. I've set up a directory under $HOME, downloaded the mc source package and various stuff required for building, such as autotools. I've unpacked the CONTENTS of all those packages into this working directory such that I have the usual ./usr, ./lib, ./etc hierarchy. I manage to get configure through a lot of tests, but I can't seem to fool it into finding glib.

checking for glib-2.0... checking for glib-config... no
checking for glib12-config... no
checking for glib-config... no
checking for GLIB - version >= 1.2.6... no
*** The glib-config script installed by GLIB could not be found
*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GLIB_CONFIG environment variable to the
*** full path to glib-config.
configure: error: Test for glib failed.
GNU Midnight Commander requires glib 1.2.6 or above.

My system has glib installed:


... and I've also downloaded and unpacked the glib package into my working directory:


... but still the elusive glib-config is nowhere to be found. It's not in any debian package for Karmic, either.

So I'd appreciate any help getting over this hurdle. Please note, again, that I don't have root, so I can't just merrily apt-get stuff.

share|improve this question

You mayu be out of luck. You need libglib 1, and you have libglib2. I see that while old version (version 1) existed in ubuntu 9.04, they've removed it from 9.10.

share|improve this answer
up vote 0 down vote accepted

I managed to solve this problem myself, but I'm embarrassed to admit I don't remember exactly how. Here's an approximation:

For my second attempt, I created a complete "build filesystem" under my home directory and copied into this the content portions of all dependencies (including glib2). With that, and correct use of the flags on configure, and the inclusion of a couple of include directories in the CFLAGS environment variable, I managed to get configure to complete without error. A bit of fiddling later, Make fell into place as well. Thanks to having my own directory tree for all my utilities and the results of building, I was even able to make install.

Of course the resulting program was dependent on the support of that home-built directory tree.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.