site-lib

Name

site-lib -- [Location of package directories]

HIERARCHY

...somewhere in the filesystem hierarchy...
   |
   \ 
     site-lib
     |
     +- package1
     |  |
     |  +- META
     |  +- archive files
     |  +- interface definitions
     |
     +- package2
     +
     :
     :
     \
        packageN

DESCRIPTION

Every installation of "findlib" has a default location for package directories, which is normally a directory called "site-lib". The location is compiled into "findlib".

It is possible to specify additional locations by setting the OCAMLPATH environment variable. The value must a colon-separated list of absolute path names (Windows: semicolon-separated list). In order to find a package, first all locations in OCAMLPATH are tested in turn, and then the default location is checked.

The name of a package is the name of the package directory; neither the META file nor any other file in the package directory contains the name again.

MODULE FINDLIB

Findlib.default_location
Findlib.package_directory