pkg-config 'too old' (Ubuntu 8.10)???

Asked by Henry Peters

I am trying to rebuild a program, using a clean install of Ubuntu 8.10, from source (Ardour 2.7). I say rebuild because I had the program built & installed when using Ubuntu 8.04.1. & there are a bunch of dependencies involved... one of which is 'glib-2.18.0' (the version I downloaded).

Short of it is, when trying to build the 'glib' dependency, I get an error message saying that my pkg-config is 'too old, version 0.16 or better required'

The problem here is that: Synaptic Package Manager says my version is 0.22-1; the terminal, using apt-get install' says I have the latest version; the terminal, when I do a 'pkg-config --version' says I have version 0.14. What the heck is going on here...??? & I did try, in SPM to do a reinstall... that did not help.

?

Thanks (but frustrated).

Henry

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu pkg-config Edit question
Assignee:
No assignee Edit question
Solved by:
Florian Diesch
Solved:
Last query:
Last reply:
Revision history for this message
Best Florian Diesch (diesch) said :
#1

What does
 type pkg-config
print?

Revision history for this message
Henry Peters (hwpeters) said :
#2

Hi Florian,

I get:
> henry@henry-heron:~$ type pkg-config
> pkg-config is /usr/local/bin/pkg-config

Revision history for this message
Florian Diesch (diesch) said :
#3

So you have installed your own version of pkg-config in /usr/local/ overriding the pkg-config installed by Ubuntu.

Remove it (and the other files that belongs to it).

Revision history for this message
Henry Peters (hwpeters) said :
#4

Hi Florian,

Yes, I forgot I did this... I'm trying to remember, do I cd to the
'/usr/local' ? I thought I remembered that you cd to the folder used to
install, but I tried 'sudo apt-get remove' etc... to no avail. If you
could refresh my memory here as to the exact procedure (I did look up
all the apt-get commands I could find in Ubuntu help, & I have done
similar things before, but couldn't find the reference/s thru all my old
emails), I really would be appreciative.

Thanks.

Henry

Florian Diesch wrote:

Revision history for this message
Florian Diesch (diesch) said :
#5

If you didn't install your version of pkg-config using a .deb file you can't use apt-get to remove it as APT doesn't know anything about it. Instead you have to remove all the files by hand.

If you have the compiled sources you installed pkg-config from still around cd to the source directory and run 'sudo make uninstall'. Otherwise download http://pkgconfig.freedesktop.org/releases/pkgconfig-0.14.0.tar.gz, unpack it, cd to its top-level directory and run './configure' and then 'sudo make uninstall'

If you often install self-compiled programs GNU stow may be worth to have a look at.

Using stow you install your program to e.g. /usr/local/stow/pkg-config-0.14 (by using ./configure --prefix=/usr/local/stow/pkg-config-0.14 instead of ./configure).

Then you cd to /usr/local/stow and run 'stow' to automatically create symlinks from /usr/local/stow/pkg-config-0.14/bin/pkg-config to /usr/local/bin/pkg-config etc.

Using 'stow -D' you can remove this symlinks and then delete /usr/local/stow/pkg-config-0.14 if you don't need it anymore.

Revision history for this message
Henry Peters (hwpeters) said :
#6

Thanks much for your help Florian, I found, shortly after I sent my last
message the item you suggest:

If you have the compiled sources you installed pkg-config from still
around cd to the source directory and run 'sudo make uninstall'.

& it worked very well... I then installed pkg-config-0.22-1 via synaptic
package manager. I got glib 2.18 installed but to get the package I was
really after (Ardour 2.7), had to down load 80+ MB of QT4 stuff via dial
up (I'm determined!).

"All is well that ends well." Saith the poet.

Thanks again.

Henry

p.s., I will look into your other suggestions for sure... & one more
question in relation to this, if you have the time: Is this what some
refer to as a "sandbox?" (GNU Stow)

Florian Diesch wrote:
> Your question #56886 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/56886
>
>
>

Revision history for this message
Henry Peters (hwpeters) said :
#7

Thanks Florian Diesch, that solved my question.