Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Are these libraries C and C++? Many libraries (such as those that use autoconf) respect setting "prefix" at configure-time, so if you do something like:

mkdir ~/my-installation-root/
cd unpacked-sources-of-library
./configure --prefix=~/my-installation-root/
make
make install

then the "make install" phase will copy the built files into a directory structure below ~/my-installation-root/ and not affect the "system" copies below /usr

You can then set PATH and LD_LIBRARY_PATH accordingly to find them.

Are these libraries C and C++? Many libraries (such as those that use autoconf) respect setting "prefix" at configure-time, so if you do something like:

mkdir ~/my-installation-root/
cd unpacked-sources-of-library
./configure --prefix=~/my-installation-root/
make
make install

then the "make install" phase will copy the built files into a directory structure below ~/my-installation-root/ and not affect the "system" copies below /usr

You can then set PATH and LD_LIBRARY_PATH LD_LIBRARY_PATH accordingly to find them.