Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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 recently upgraded to Ubuntu 11.10. Ubuntu 11.10 comes with gtk(2, 24, 6).

I want to test one of my program with gtk (2,16,1), so how can I install gtk(2,16,1) and compile my pygtk program?

I try to install gtk(2,16,1) using:

gtk+-2.16.1$ ./configure --prefix ~/Home/opt/gtk2.16

However it results in the following error:

checking for BASE_DEPENDENCIES... configure: error: 
Package requirements (glib-2.0 >= 2.19.7 atk >= 1.13.0 pango >= 
1.20 cairo >= 1.6) were not met:

Is there any way to install multiple version of gtk on Ubuntu?

share|improve this question

migrated from Nov 19 '11 at 3:01

This question came from our site for professional and enthusiast programmers.

I'd suggest you save yourself some potential trouble due to libraries getting mixed up, and install a virtual machine with the lowest version of the OS that you want your program to run on... – ptomato Nov 18 '11 at 11:23

That will work fine. You just need to install the dev packages for glib, atk, pango, cairo and other dependencies of gtk+ (which you will discover as you go).

share|improve this answer

You must log in to answer this question.