Difference between revisions of "Libraries"
From HCL
Line 9: | Line 9: | ||
./configure --prefix=$HOME | ./configure --prefix=$HOME | ||
</source> | </source> | ||
− | If there | + | If there are alternatives for the third-party software or if the third-party software may be built with alternative middleware (for example, MPI: LAM, Open MPI, MPICH-1, MPICH-2), configure to a subfolder |
<source lang="bash"> | <source lang="bash"> | ||
./configure --prefix=$HOME/SUBDIR | ./configure --prefix=$HOME/SUBDIR |
Revision as of 05:47, 16 March 2010
Installation from packages
- Install a development package
*-dev
, which includes header files and static libraries. Base packages will be installed automatically - Headers and libraries can be found in standard paths, which are searched by compilers by default
Manual installation
- Download a package or export/checkout a repository to
$HOME/src/DIR
- Configure
./configure --prefix=$HOME
If there are alternatives for the third-party software or if the third-party software may be built with alternative middleware (for example, MPI: LAM, Open MPI, MPICH-1, MPICH-2), configure to a subfolder
./configure --prefix=$HOME/SUBDIR
- Build and install
make all install
- Update Linux run-time environment
PATH=$HOME/bin:$PATH
LD_LIBRARY_PATH=$HOME/lib:$LD_LIBRARY_PATH
CPATH=$HOME/include:$CPATH
LIBRARY_PATH=$HOME/lib:$LIBRARY_PATH