linux - Install multiple versions of a package -


I want to install several versions of a package (say libX) to create package (libX) from src To use the Autotools, therefore .configure adheres to, create, create the conference to install. Installed by default goes to / usr / local / bin and / usr / local / lib and I want to install the second version in / home / user / libX.

The other problem is that libX is a dependency for another package (called plagiarism) which uses autotulge. How do I create libY points for the version set in / home / user / libX? It is also possible that one system package such as ffmpeg and I would like to use the latest SVN version for my SRcode code and so make it with src. What do I do in that case? What is the best practice in this case so that I will break system libraries?

I am using Ubuntu 10.04 and OpenSUSE 10.3.

You usually set the - prefix option to another location You can configure to say. Therefore, for a private version, you can generally run it:

  ./config --prefix = $ HOME / usr / libX  

And this will be $ HOME / usr / libX / bin , $ HOME / usr / libX / lib , $ HOME / usr / libX / etc And

If you are creating a Libil from the source, then the configured script usually detects the pkg-config device where the package is stored. One in libex The PC file should be included in the directory $ HOME / usr / libX / lib / pkgconfig , where the header and library files are configured to be viewed. You will need to tell the pkg-config tool to first look at your directory.

This is done by setting PKG_CONFIG_PATH to include your directory for the first time. When libY is configured,

  PKG_CONFIG_PATH = $ HOME / usr / libX / lib / pkgconfig: / usr / local / lib / pkgconfig. / Configure  

man should give description to pkg-config .


Comments