Difference between revisions of "Libraries"

From HCL
Jump to: navigation, search
Line 6: Line 6:
 
* Download a package or export/checkout a repository to <code>$HOME/src/DIR</code>
 
* Download a package or export/checkout a repository to <code>$HOME/src/DIR</code>
 
* Configure with <code>--prefix=$HOME</code>
 
* Configure with <code>--prefix=$HOME</code>
* Update [[Linux]] environment for [[Autotools]] and [[C/C++]]
+
* Update [[Linux]] run-time environment
 +
<source lang="bash">
 +
PATH=$HOME/bin:$PATH
 +
LD_LIBRARY_PATH=$HOME/lib:$LD_LIBRARY_PATH
 +
</source>
 +
* Update [[Linux]] compile-time environment (for [[Autotools]] and [[C/C++]])
 
<source lang="bash">
 
<source lang="bash">
 
CPATH=$HOME/include:$CPATH
 
CPATH=$HOME/include:$CPATH
 
LIBRARY_PATH=$HOME/lib:$LIBRARY_PATH
 
LIBRARY_PATH=$HOME/lib:$LIBRARY_PATH
 
</source>
 
</source>

Revision as of 12:29, 23 February 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 with --prefix=$HOME
  • 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