/etc/ocaml/ld.conf
The system administrator configuration file.
Small utility to manage ocaml ld.conf path
ocaml-ldconf [options]
ocaml-ldconf [options] -l
ocaml-ldconf [options] -ppackage -a/-r dirs ...
This manual page documents briefly the ocaml-ldconf command. This manual page was written for the Debian distribution because the original program does not have a manual page.
ocaml-ldconf is a program that handles the ocaml specific ld.conf paths. It can be invoked in three different ways.
Without argument, it will generate a new /usr/lib/ocaml/ld.conf file using the content of the system administrator defined /etc/ocaml/ld.conf and the dpkg handled /var/lib/ocaml/ld.conf.
With the -l argument, it will simply list the currently active path (well only those in /usr/lib/ocaml/ld.conf for now).
In the -a/-r variant, ocaml-ldconf will add or remove a list of directories to the dpkg handled /var/lib/ocaml/ld.conf file for the package named with the -ppackage argument.
Notice that after having manually updated the /etc/ocaml/ld.conf file, the system administrator should recreate the /usr/lib/ocaml/ld.conf file by running ocaml-ldconf without arguments.
-a
Adds given paths to the dynamic loading standard path
-r
Removes given paths from the dynamic loading standard path
-p
Gives the package name which adds/removes the paths
-l
Displays the current dynamic loading paths
-v
Display more verbose messages.
-n
Don't update the /usr/lib/ocaml/ld.conf file
-help, --help
Show summary of options.
All three handled files are a list of lines, each containing a directory (for /usr/lib/ocaml/ld.conf) or a directory plus some other stuff, separated by a space or tabulation (for the two other files). A line begining by a # is considered a comment and ignored.
The /etc/ocaml/ld.conf file format is :
Where command can be one of :
|
Adds the directory before the dpkg managed ones. |
|---|---|
|
Adds the directory after the dpkg managed ones. |
|
If the directory is present in the dpkg managed file, then it get removed. |
The /var/lib/ocaml/ld.conf file format is :
/etc/ocaml/ld.conf
The system administrator configuration file.
/var/lib/ocaml/ld.conf
The dpkg managed configuration file.
/usr/lib/ocaml/ld.conf
The true ld.conf file taken in account by the ocaml runtime system.