libcairo2-dev is the latest version of the Cairo graphics library (1.10.2). Is there any way I can install version 1.8.10?
I'm running 11.10, but would be interested in a general solution if possible.
|show 1 more comment|
If you want to test out an old version of Cairo, you can build it in a temporary prefix in your home directory.
First of all, make sure you've got Cairo's build dependencies installed. You can do this with the following command:
Now download and unpack the old version of Cairo:
Now you want to build Cairo into a temporary prefix. I've used
Now you need to make your own software use this version of Cairo. If the software uses
If it isn't using
Finally, to run your program using the custom version of Cairo you will need to configure the dynamic linker so it looks for shared libraries in your temporary prefix:
Once that is set, you can verify that your program is linking against your copy of Cairo using
Once you're done with this temporary install, cleaning up is pretty easy. Just reset the environment variables and remove the temporary install prefix:
You may need to reconfigure/rebuild your program after doing this to make it use the system Cairo again.